-
Hi,
I installed your plugin a few days ago and it’s been great so far. I am having one issue however.
If you go to my posts page http://www.cliniconex.com/blog I now get a warning message stating “There has been a critical error on your website.”
I’ve deactivated your plugin and this error goes away, so something in your plugin is conflicting. Can you please help me figure out how to resove this? I’d like to continue using RankMath but can’t if it breaks my blog!
Thanks,
Chris
- This topic was modified 5 years ago by Cliniconex Marketing.
-
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Could you please install the plugin below and follow the prompts to enable error logging and then let us know the kind of errors that are reported on the dashboard widget:
https://wordpress.org/plugins/error-log-monitor/Looking forward to helping you. Thank you.
​​​​​​​
Thanks for your help! Here’s what I got as an error log.
Dec 05, 12:31:27
Fatal error: Uncaught Error: Cannot use object of type WP_Query as array in /var/www/wp-includes/class-wp-query.php:3252
Stack Trace
1.
WP_Query->next_post()
/var/www/wp-includes/class-wp-query.php:3281
2.
WP_Query->the_post()
/var/www/wp-includes/query.php:937
3.
the_post()
/var/www/wp-content/plugins/seo-by-rank-math/includes/modules/rich-snippet/class-jsonld.php:245
4.
RankMath\RichSnippet\JsonLD->get_post_collection(Array)
/var/www/wp-content/plugins/seo-by-rank-math/includes/modules/rich-snippet/snippets/class-blog.php:39
5.
RankMath\RichSnippet\Blog->process(Array, Object(RankMath\RichSnippet\JsonLD))
/var/www/wp-content/plugins/seo-by-rank-math/includes/modules/rich-snippet/class-jsonld.php:104
6.
RankMath\RichSnippet\JsonLD->add_context_data(Array)
/var/www/wp-includes/class-wp-hook.php:290
7.
WP_Hook->apply_filters(Array, Array)
/var/www/wp-includes/plugin.php:249
8.
apply_filters_ref_array(‘rank_math/json_…’, Arr in /var/www/wp-includes/class-wp-query.php on line 3252
/var/www/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php:103Fatal error: Uncaught Error: Cannot use object of type WP_Query as array in /var/www/wp-includes/class-wp-query.php:3252
Stack Trace
1.
WP_Query->next_post()
/var/www/wp-includes/class-wp-query.php:3281
2.
WP_Query->the_post()
/var/www/wp-includes/query.php:937
3.
the_post()
/var/www/wp-content/plugins/seo-by-rank-math/includes/modules/rich-snippet/class-jsonld.php:245
4.
RankMath\RichSnippet\JsonLD->get_post_collection(Array)
/var/www/wp-content/plugins/seo-by-rank-math/includes/modules/rich-snippet/snippets/class-blog.php:39
5.
RankMath\RichSnippet\Blog->process(Array, Object(RankMath\RichSnippet\JsonLD))
/var/www/wp-content/plugins/seo-by-rank-math/includes/modules/rich-snippet/class-jsonld.php:104
6.
RankMath\RichSnippet\JsonLD->add_context_data(Array)
/var/www/wp-includes/class-wp-hook.php:290
7.
WP_Hook->apply_filters(Array, Array)
/var/www/wp-includes/plugin.php:249
8.
apply_filters_ref_array(‘rank_math/json_…’, Arr in /var/www/wp-includes/class-wp-query.php on line 3252
/var/www/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php:103hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi there,
Thanks for getting back to us.
There is a conflict between Rank Math and your current theme that is causing this error.
I have passed this on to our dev team for closer investigation and we will be circling back to you in a short while.We appreciate your patience. Thank you.
Hello,
Could you please share the FTP access details too in the Sensitive Data field? We need it so we can try some changes in the plugin code.
Thank you. Looking forward to helping you.
Appreciate all your help!
- This reply was modified 5 years ago by Cliniconex Marketing.
- This reply was modified 5 years ago by Cliniconex Marketing.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi, any update on this please? My blog page is still down, unfortunately..
Hello,
Thank you for contacting Rank Math today.
Apologies for the delay, I have just alerted my colleague about the sense of urgency on this one and we will be checking this ASAP.
Looking forward to helping you. Thank you.
​​​​​​
Hello,
Thank you for sharing the details. I have accessed your site through FTP to investigate the issue, and it looks like your theme is using some non-standard solutions in its code, which makes it incompatible with the Rich Snippet module Rank Math.
I have now made a small change in a plugin file to fix it temporarily, but whenever you update Rank Math, my changes will be lost. For future reference, I added this line inincludes/modules/rich-snippet/class-jsonld.php
:return array();
I added it right after this line:
public function get_post_collection( $data ) {
The only permanent solution I can think of would be to disable the Rich Snippet module in Rank Math.
Hope that helps.
- This reply was modified 5 years ago by Balazs.
Amazing thank you so much!!!
I will keep that in mind
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
The ticket ‘Critical Error on Posts Page’ is closed to new replies.