WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
function is_translated_post_type() on a non-object (4 posts)

  1. macelfresh
    Member
    Posted 1 year ago #

    Hi,

    I've just installed relevanssi.

    I indexed my content, so far so great...I tried to search for some content, and patatra :

    Fatal error: Call to a member function is_translated_post_type() on a non-object in mysite\wp-content\plugins\relevanssi\lib\common.php on line 15

    I'm quite embarrassed now...

    Any workaround?

    Thanks a lot

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Are you using WPML? Which version?

    Add

    remove_filter('relevanssi_hits_filter', 'relevanssi_wpml_filter');

    to your functions.php to get rid of the error.

  3. teolives
    Member
    Posted 1 year ago #

    Cool, this solves a similar problem with polylang. What are the implications of removing that filter though (if I can ask)?

  4. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    It disables the WPML support in Relevanssi. If you're not using WPML, you won't notice a thing.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic