Error

#627046
  • Resolved Anonymous
    Rank Math free

    Please fix this bug: Warning: Array to string conversion in /home/profiler/profiler-plus.com/academy/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 606

    Appears on one of my pages here: https://academy.profiler-plus.com/courses/

Viewing 1 replies (of 1 total)
  • Hi there,

    We appreciate you reaching out to us and we apologize for any trouble you may have experienced with our plugin.

    The problem you are facing is caused by the inability of the archive page of your course post type to get the image from the first post in that archive and use it as the og:image for the page. The og:image is the image that appears when you share a link on social media platforms like Facebook.

    To solve this problem, you need to do two things:

    • First, you need to set a default image for your course post type in Rank Math > Titles & Meta > Post Types: > Courses > Thumbnail for Facebook. This image will be used as the og:image for your course archive page and any course post that does not have a featured image.
    • Second, you need to turn off the PHP warnings on your website. These warnings are not harmful, but they can clutter your website and make it look unprofessional. They shuldn’t be showing on your frontend. To turn them off, you need to edit your wp-config.php file and make sure that display_errors and WP_DEBUG_DISPLAY are both disabled, like this:
      ini_set('display_errors','Off');
      ini_set('error_reporting', E_ALL );
      define('WP_DEBUG', false);
      define('WP_DEBUG_DISPLAY', false);

      You can find more information on how to do this here: https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/

    We hope this helps you resolve the issue and improve your website performance. If you have any other questions or concerns, please feel free to contact us anytime. We are always happy to help.

    Thank you for choosing Rank Math. Have a great day!

    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 ‘Error’ is closed to new replies.