• Resolved mindsounds

    (@mindsounds)


    This is the message I get: 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

    I have deactivated Rank Math and it goes away. I have also re-downloaded Rank math and installed but same message.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mindsounds,

    Thank you for contacting support.

    Can you please confirm if you have previously imported metadata via a CSV file in our plugin? That error points to incorrect robots meta settings and this usually happens when people import data in the incorrect format.

    We really look forward to hearing back from you.

    Thread Starter mindsounds

    (@mindsounds)

    I’m not aware that I have imported anything.

    I did clone several pages via optimize press OP3

    Regards Jeff

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mindsounds,

    The warning indicates the issue with rank_math_robots and rank_math_advanced_robots entries in the database. Please remove those entries from your database’s postmeta table for the affected page IDs. If you are not sure, you can ask your host to do that for you.

    Let us know how that goes. Looking forward to helping you.

    Hi, I have the same error. Could you please explain what you mean by faulty rank_math_robots and rank_math_advanced_robots entries in postmeta? How can I spot them? Thanks, Frank

    Warning: Invalid argument supplied for foreach() in /var/www/vhosts/hosting155586.a2edc.XY.net/httpdocs/beglaubigte_staging/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php on line 526

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @perlfan,
     
    You need to look inside the postmeta database table and look for the entries we mentioned above to see if they are serialized. If they are not serialized you should delete them because they would trigger this warning message.
     
    Don’t hesitate to get in touch if you have any other questions.

    Thanks a lot – however, deleting the rank_math_advanced_robots entries in the postmeta table didn’t help. As the error didn’t appear on all product pages, I compared the rank math related entries in the postmeta table. I noted that the rank_math_schema_WooCommerceProduct entry was very different to the entry of products where the error didn’t appear. After I copied the entry of a working product to the one with the error, the error disappeared. So I guess there was something wrong with the schema setting? Also I noticed that after copying the working rank_math_schema_WooCommerceProduct entry, I can now open again the Rank Math settings tab on the product editing page (which didn’t open anymore for the products with the error message). Can you confirm that it’s ok to copy the rank_math_schema_WooCommerceProduct entry to all products with the error? Or could this lead to another problem? Thanks, Frank

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @perlfan,
     
    You shouldn’t copy and use the same entry for all the affected products. It will duplicate the Schema. You should remove the corrupted entry and then add the Schema again using the Schema tab of our plugin’s meta box to the affected products.
     
    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Great, I know what to do now – thanks for your help. Frank

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @perlfan,
     
    We are glad that helped.
     
    Please feel free to reach out to us again in case you need any other assistance.
     
    We are here to help.
     
    Thank you.

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

The topic ‘Error message comes up in live site’ is closed to new replies.