PHP Warning: Array to string conversion

#570212
  • Resolved Anonymous
    Rank Math free

    1. PHP Warning: Array to string conversion in /home4/jpelelff/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 606

    2. [08-May-2023 07:04:03 UTC] PHP Warning: Array to string conversion in /home4/jpelelff/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 606

    error show in error.log WordPress file manager

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    That issue happens when the archive page of any given post type is not able to fetch the image from the first post of that archive to set it as the og:image of the archive page.

    Please make sure that all the custom post types on the website have a fallback thumbnail for Facebook under WordPress Dashboard > Rank Math > Titles & Meta settings to get rid of this warning.

    Also, please note that this is simply a warning so it won’t cause any issues on the normal functionality of the website, but it won’t include the metadata property we mentioned above on the archive pages where the CPT doesn’t include this option set.

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

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

The ticket ‘PHP Warning: Array to string conversion’ is closed to new replies.