CRITICAL Uncaught TypeError: Illegal offset type in isset or empty

#538657
  • Resolved Matthew
    Rank Math free

    Hello,

    I am receiving this exception on a fairly regular basis. Submitting it for your assessment.

    
    2023-03-04T23:53:58+00:00 CRITICAL Uncaught TypeError: Illegal offset type in isset or empty in /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/class-user.php:46
    Stack trace:
    #0 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/class-user.php(66): RankMathUser::get(Object(WP_Post_Type))
    #1 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(111): RankMathUser::get_meta('facebook_title')
    #2 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(83): RankMathOpenGraphOpenGraph->_title()
    #3 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(185): RankMathOpenGraphOpenGraph->get_title()
    #4 /nas/content/live/xxxxxxxx/wp-includes/class-wp-hook.php(308): RankMathOpenGraphFacebook->title(Object(RankMathOpenGraphFacebook))
    #5 /nas/content/live/xxxxxxxx/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('profile', Array)
    #6 /nas/content/live/xxxxxxxx/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #7 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array('rank_math/openg...', Array)
    #8 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(74): RankMathOpenGraphOpenGraph->do_action('opengraph/faceb...', Object(RankMathOpenGraphFacebook))
    #9 /nas/content/live/xxxxxxxx/wp-includes/class-wp-hook.php(308): RankMathOpenGraphOpenGraph->output_tags()
    #10 /nas/content/live/xxxxxxxx/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #11 /nas/content/live/xxxxxxxx/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #12 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array('rank_math/head', Array)
    #13 /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(156): RankMathFrontendHead->do_action('head')
    #14 /nas/content/live/xxxxxxxx/wp-includes/class-wp-hook.php(308): RankMathFrontendHead->head('')
    #15 /nas/content/live/xxxxxxxx/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #16 /nas/content/live/xxxxxxxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #17 /nas/content/live/xxxxxxxx/wp-includes/general-template.php(3043): do_action('wp_head')
    #18 /nas/content/live/xxxxxxxx/wp-content/themes/Divi/header.php(27): wp_head()
    #19 /nas/content/live/xxxxxxxx/wp-includes/template.php(783): require_once('/nas/content/li...')
    #20 /nas/content/live/xxxxxxxx/wp-includes/template.php(718): load_template('/nas/content/li...', true, Array)
    #21 /nas/content/live/xxxxxxxx/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #22 /nas/content/live/xxxxxxxx/wp-content/plugins/learning-management-system-pro/templates/archive-instructor-courses.php(17): get_header('instructor-cour...')
    #23 /nas/content/live/xxxxxxxx/wp-includes/template-loader.php(106): include('/nas/content/li...')
    #24 /nas/content/live/xxxxxxxx/wp-blog-header.php(19): require_once('/nas/content/li...')
    #25 /nas/content/live/xxxxxxxx/index.php(17): require('/nas/content/li...')
    #26 {main}
      thrown in /nas/content/live/xxxxxxxx/wp-content/plugins/seo-by-rank-math/includes/class-user.php on line 46

    `

    Thank you.

    Matthew

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

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

    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:

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

    If the issue persists, 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/

    Looking forward to helping you.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for providing additional information.

    Would you please share the website URL so that we can look into it.

    Also, before we deep dive into the issue would you please ensure you are using the latest version of all the plugins and the themes (please update if not yet), and run the following guide.

    The troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Looking forward to helping you.

    Thank you

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Good day,

    Yes of course, I forgot that bit. URL added to the above.

    Thank you.

    Hello,

    I’ve checked your site, and it seems that Rank Math is currently activated. Could you please share the steps you have done when the issue occurred so we can test it?

    Also, the FTP logins you have shared in the sensitive data section are not working. Please check again the login details so we can troubleshoot the issue further.

    Looking forward to helping you.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi there,

    Yes, all running.
    I saw the error in the logs: WooCommerce -> Status -> Logs
    I updated the user details.

    Thank you Reinelle.

    Hello,

    We’ve checked your site, and it seems that the error occurred once due to a membership/user registration 4 days ago on your site, in which the user instance/data could not be retrieved by Rank Math.

    It also could have happened during a transition or user creation, however, we’re no longer seeing the error on your site after it occurred.

    Let us know if the issue still persists and which user was registered on the specific date/time of the error so we can investigate the issue further.

    Looking forward to helping you.

    Thank you.

    Hello Reinelle, OK, will do. Thanks for your help.

    Hello,

    Let us know how it goes.

    Meanwhile, if you have any other questions, please feel free to ask.

    We are here to help you.

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

You must be logged in to reply to this ticket.