Woocommerce Error due to Rankmath PRO

#967022
  • zuerichistli
    Rank Math free

    Dear Rankmath Team

    first of all: we have rank math PRO installed, but its now showing up here. Maybe I logged in – in the wrong way.
    however since its kidn of urgent: even after deactivating PRO, we have a huge error in our woocomemrce shop due to the Rankmath Plugin. It only dissappears, when both rankmath plugins are deactivated.

    It shows up, on a few (but not all) of our products in the shop: when clicked on the preview picture, the following error occurs:

    Warning: foreach() argument must be of type array|object, string given in /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php on line 526 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php:73 Stack trace: #0 [internal function]: RankMath\Schema\Frontend->RankMath\Schema\{closure}(‘{“metadata”:{“i…’) #1 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php(70): array_filter(Array, Object(Closure)) #2 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/class-wp-hook.php(324): RankMath\Schema\Frontend->add_schema(Array, Object(RankMath\Schema\JsonLD)) #3 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array) #4 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(106): apply_filters_ref_array(‘rank_math/json_…’, Array) #5 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(149): RankMath\Schema\JsonLD->do_filter(‘json_ld’, Array, Object(RankMath\Schema\JsonLD)) #6 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/class-wp-hook.php(324): RankMath\Schema\JsonLD->json_ld() #7 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #9 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array(‘rank_math/head’, Array) #10 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMath\Frontend\Head->do_action(‘head’) #11 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/class-wp-hook.php(324): RankMath\Frontend\Head->head(”) #12 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #13 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/general-template.php(3064): do_action(‘wp_head’) #15 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/themes/oceanwp/header.php(15): wp_head() #16 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/template.php(810): require_once(‘/home/httpd/vho…’) #17 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/template.php(745): load_template(‘/home/httpd/vho…’, true, Array) #18 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #19 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header() #20 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-includes/template-loader.php(106): include(‘/home/httpd/vho…’) #21 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-blog-header.php(19): require_once(‘/home/httpd/vho…’) #22 /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/index.php(17): require(‘/home/httpd/vho…’) #23 {main} thrown in /home/httpd/vhosts/ericmarschall.com/zuerichistli.ch/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 73
    Es gab einen kritischen Fehler auf Ihrer Website.

    Erfahren Sie mehr über die Problembehandlung in WordPress.

    —-

    Thanks for your help!
    the shop is https://zürichistli.ch/shop

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

    We apologize for the issue you are facing with your WooCommerce shop due to the Rank Math plugin. It seems that the error you are encountering is related to a type mismatch in the code, specifically where a string is being passed instead of an array or object.

    To address this issue, we recommend the following steps:

    1. Update Plugins: Ensure that both Rank Math and WooCommerce plugins are updated to their latest versions. Sometimes, compatibility issues arise from outdated plugins.

    2. Check for Conflicts: Deactivate all other plugins except for WooCommerce and Rank Math to see if the error persists. If it resolves, reactivate the plugins one by one to identify any conflicts.

    3. Repair Action Scheduler: If you haven’t already, consider using the Repair Action Scheduler plugin to fix any underlying issues with scheduled actions that might be affecting your site.

    4. Debugging: If you are comfortable with debugging, you can check the specific lines mentioned in the error message to see what data is being passed and why it might be a string instead of an array or object.

    5. Clear Cache: After making changes, clear your site cache and browser cache to ensure that you are seeing the most recent version of your site.

    If these steps do not resolve the issue, please reply to this ticket, and a human agent from our support team will take over and assist you further. Thank you for bringing this concern to our attention!

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    zuerichistli
    Rank Math free

    we tried all this before, thanks for your investigation.

    Hello,

    You mentioned that you’re using Rank Math PRO but the account you have used to open this ticket is the Rank Math free version.

    Can you please search and forward a receipt from FastSpring.com or the email address you used to purchase so we can locate your account and verify it?

    Looking forward to helping you.

    zuerichistli
    Rank Math free

    Hello Reinelle,
    thanks for the reminder, I see we just didnt connect it. Its now connected. see email i***@s******************

    Hello,

    Please ensure that you’re using the latest version of Rank Math plugins on your site for troubleshooting.

    Could you please confirm if the issue is already resolved?

    Looking forward to helping you.

    Eric
    Rank Math pro

    of course, we even tried with older versions but didnt help. please take a close look into it

    Hello,

    This error is related to the advanced robots settings for your pages and posts showing this error message.

    ​​​​​​​It’s likely that the meta key inside the database called rank_math_advanced_robots is not correct and it’s causing this warning.

    If you would like us to take a closer look please provide us with working WP credentials in the sensitive data section and we’ll gladly correct the situation.

    Looking forward to helping you.

    Eric
    Rank Math pro

    Hi Miguel

    sure, for hat I need an email adress of yours to give access to.
    Thanks in advance and best regards

    Hello,

    You can use s******@r*********** email address and put any First & Lastname.

    Once done, please add the login details in the sensitive data section of this ticket so we can investigate the issue.

    If you will send the login link through email, please include this ticket URL so we can update it here for efficiency.

    Looking forward to helping you.

    Eric
    Rank Math pro

    Ive created a login but there is no such section here for sensitive data.
    So I had to open a new ticket – you find the login link there: ticket number #972061

    many thanks for your help!

    Hello,

    We already replied to that ticket and seems like the issue is resolved.

    Can you please confirm if you still need our assistance with anything else or we can close the ticket?

    Looking forward to hearing back from you.

    Thank you.

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

You must be logged in to reply to this ticket.