Array to string conversion Open Graph related error

#341032
  • Resolved Jp
    Rank Math free

    Hello,

    I’m enjoying Rank Math very much but there’s an error that’s driving me insane. The search results for Woo Products are displaying on a Woo Archive Template, all the other product category archives work well, but the search results page keeps throwing this error at me:

    Array to string conversion in .../wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 531 (full stack trace in sensitive data)

    I assume it’s got something to do with social networks, but I can’t figure out what. Could you please help out?

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please remove the social image from this page and see if that fixes the issue?

    If not, assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Here is a video you can follow as well: https://www.youtube.com/watch?v=FcIWRhcUP2c

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    I hope that helps.

    Thank you.

    Jp
    Rank Math free

    Hello Reinelle,

    thanks for the quick reply – unfortunately, none of these suggestions solved the problem. :/

    The issue happens between Rank Math and WooCommerce, only on the Shop template (not the Product archive, actually), but only when the Shop template is used to display search results.

    Also, I haven’t set any social images for the Shop or Search Results page so I’m not sure if they’re the issue. :/

    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.

    Thank you.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Array to string conversion Open Graph related error’ is closed to new replies.