-
Hello Rank Math!
We are using your plugin to our site. However, when doing a search, it throws an error:
Fatal error: Uncaught Error: Call to undefined method RankMathPaperSearch::set_object() in /wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php:110This happens on prod environment. So as a workaround, I’ve tried going through the plugin files and commented out the line that causes the Fatal Error.
In seo-by-rank-mathincludesfrontendpaperclass-paper.php line 106
if ( Post::is_home_static_page() ) { $this->paper->set_object( get_queried_object() ); } elseif ( Post::is_simple_page() ) { $post = Post::get( Post::get_simple_page_id() ); //$this->paper->set_object( $post->get_object() ); }
Please help out. I’ve also attached system info in Sensitive Data.
Thank you so much!
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The ticket ‘Error when searching’ is closed to new replies.