Hello,
This issue cannot be fixed due to the way the search page was created.
The page is returning true for the function is_post_type_archive() and it triggers the function set_archive_image() because of that.
This is happening because the page includes the product and product variation post type in the query var post_type and thus the issue arises.
We would recommend disabling the debugging if you don’t want to have this message appear for your users and allow the plugin to just use the fallback image.
Don’t hesitate to get in touch if you have any other questions.
Did you send me a e-mail? I can’t find the text …
Hi,
Do you have any update on this issue?
Hello,
It appears you have missed the previous replies we sent. Here’s the previous message we shared:
Hello,
This issue cannot be fixed due to the way the search page was created.
The page is returning true for the function is_post_type_archive() and it triggers the function set_archive_image() because of that.
This is happening because the page includes the product and product variation post type in the query var post_type and thus the issue arises.
We would recommend disabling the debugging if you don’t want to have this message appear for your users and allow the plugin to just use the fallback image.
Don’t hesitate to get in touch if you have any other questions.
Here’s a direct link to the reply: https://support.rankmath.com/ticket/error-public_html-wp-content-plugins-seo-by-rank-math-includes-opengraph-class/page/2/?view=all
Regards,
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.