Hello,
We apologize for the issue you are facing with the PHP warnings. These warnings typically indicate that the code is trying to access properties of an object that does not exist or is not defined. In this case, it seems to be related to the breadcrumbs functionality in Rank Math.
To resolve this issue, we recommend checking the following:
- Update Rank Math: Ensure that you are using the latest version of the Rank Math plugin, as updates often include bug fixes.
- Check for Conflicts: There may be a conflict with another plugin or your theme. You can follow our troubleshooting guide to identify any potential conflicts.
- Review User Roles: The warnings suggest that the code is trying to access user properties. Make sure that the user roles and permissions are correctly set up in your WordPress installation.
If the problem persists after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for bringing this to our attention!
Sources:
How to Fix "Invalid object type for field ‘item’" » Rank Math
Hello,
Both the Archive Format and Search Results Format should have the padding character %s
.
If you already have that and the issue persists, then we might need to take a closer look at your settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
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.
Hi
[moved to sensitive data section]
thanks
Hello,
It seems like the error was occurring because of the character mismatch. However, we changed the format again and now the new error is no longer getting logged.
The last error was logged on 30-Aug-2024 09:29:24 UTC
and if you see the error again, please let us know here so that we can check the issue further for you.
Looking forward to helping you.
Thank you.
Hello
the errors are still there
Thanks
Hello,
We checked your website again but were not able to reproduce the error. Could you please share the exact steps before the error is logged so that we can check the issue further for you?
Looking forward to helping you.
Thank you.
Hello
I can’t help you much because I don’t know what causes the error
For today the last time the error appeared …. around the time of your answer ….. if that can help you
[01-Sep-2024 14:00:14 UTC] PHP Warning: Attempt to read property “display_name” on false in /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 445
[01-Sep-2024 14:07:51 UTC] PHP Warning: Attempt to read property “ID” on false in /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 445
[01-Sep-2024 14:07:51 UTC] PHP Warning: Attempt to read property “display_name” on false in /home/jardinerieanimal/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 445
Hello,
The login link has expired. Please reactivate it or share a new login link so we can check this further.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
The warning seems to be related to the author profiles. Can you please allow us to enable the debug display on the site so we can figure out which page is throwing the warning?
Looking forward to helping you.
Hello,
We cannot replicate this exact error on the website so we will need to log it to the error log of the website.
Please add the following code on line 445 of the file wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php
:
error_log(get_queried_object_id());
There should be a code already there but you can press enter to create a line space and add that piece we mentioned above.
After doing that, when the error appears again it will also show the ID of the page causing this and then we can pinpoint exactly why that is happening.
Looking forward to hearing back from you.
Hello,
It appears the WP_DEBUG and WP_DEBUG_LOG are disabled, so the errors will not populate the debug log.
Please on lines 65 and 66 of your wp-config.php file set the following:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true);
Once you notice that error again let us know here.
Also, share the FTP login details to your site in the sensitive data section. If you don’t have it handy, your web host can help you with it.
Thanks.