Error

#753852
  • Resolved Jeff Moran
    Rank Math free

    Warning: foreach() argument must be of type array|object, string given in /home/customer/www/soundtherapy.co.uk/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php on line 526

    This message comes up on some pages of my live site http://www.soundtherapy.co.uk

    I have re-installed over the existing version but still the error shows up.

    When I deactivate the rean math plugin it goes away.

    Any help much appreciated as dont really want to go back to Yoast

    Kind regards
    Jeff

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    We apologize for the inconvenience you are facing with the Rank Math plugin on your live site at http://www.soundtherapy.co.uk. The warning message you mentioned seems to be related to a specific line of code in the Rank Math plugin.

    This issue could be due to a conflict with another plugin or theme on your website. To troubleshoot this warning message, we recommend following these steps:

    1. Check for Plugin Conflicts:
      Deactivate all plugins except Rank Math and check if the issue persists. If the warning disappears, reactivate each plugin one by one to identify the conflicting plugin.

    2. Theme Conflict:
      Switch to a default WordPress theme like Twenty Twenty-One temporarily to see if the warning still occurs. If it doesn’t, the issue might be with your theme.

    3. Update Everything:
      Ensure that all your plugins, themes, and WordPress core are up to date, including Rank Math.

    If the issue persists after following these steps, please assign this ticket to our support team by clicking the button below so that a human agent can assist you further.

    Thank you for bringing this to our attention, and we appreciate your patience while we resolve this issue for you.

    Assign Ticket to Support Team

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    How to Fix Undefined Offset: 0 Warning » Rank Math
    Sorry, You Are Not Allowed to Access This Page » Rank Math

    When I switch Rank math off the error goes away

    The error does not come up on all the pages
    It does here: https://soundtherapy.co.uk/sound-therapy-for-adhd/

    Hello,

    In this case, we might need to take a closer look at the 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.

    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.

    Hello,

    There was a corrupted entry in the database for the rank_math_robots and rank_math_advanced_robots in the postmeta table for the affected page. I removed that entry and now the error is no longer present.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    We removed the invalid robots meta tag entities from your database and now the pages are working properly without any errors.

    Now, please try to clear your website cache including any server-level cache, and check again.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Will Rank Math still work on those pages?

    Thanks
    jeff

    Hello,

    Yes, the plugin will work correctly on those.

    After the incorrect entries are removed, correct ones are added and everything works as expected.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)

The ticket ‘Error’ is closed to new replies.