Fatal Error in class-user.php on line 46

#658126
  • Resolved Anonymous
    Rank Math free

    Hi! We’re having an issue on one of our websites, where we are receiving this error:

    [24-Oct-2023 23:29:12 UTC] PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/class-user.php:46
    Stack trace:
    #0 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/class-user.php(66): RankMath\User::get()
    #1 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(111): RankMath\User::get_meta()
    #2 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(83): RankMath\OpenGraph\OpenGraph->_title()
    #3 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(185): RankMath\OpenGraph\OpenGraph->get_title()
    #4 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/class-wp-hook.php(310): RankMath\OpenGraph\Facebook->title()
    #5 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #6 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/plugin.php(565): WP_Hook->do_action()
    #7 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array()
    #8 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(74): RankMath\OpenGraph\OpenGraph->do_action()
    #9 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/class-wp-hook.php(310): RankMath\OpenGraph\OpenGraph->output_tags()
    #10 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #11 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/plugin.php(565): WP_Hook->do_action()
    #12 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array()
    #13 /sites/mcgrathwidebay.com.au/files/web/app/plugins/seo-by-rank-math/includes/frontend/class-head.php(172): RankMath\Frontend\Head->do_action()
    #14 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/class-wp-hook.php(310): RankMath\Frontend\Head->head()
    #15 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #16 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
    #17 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/general-template.php(3053): do_action()
    #18 /sites/mcgrathwidebay.com.au/files/web/app/themes/mcgrath-theme/header.php(29): wp_head()
    #19 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/template.php(785): require_once('...')
    #20 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/template.php(720): load_template()
    #21 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/general-template.php(48): locate_template()
    #22 /sites/mcgrathwidebay.com.au/files/web/app/themes/mcgrath-theme/archive-listing.php(58): get_header()
    #23 /sites/mcgrathwidebay.com.au/files/web/wp/wp-includes/template-loader.php(106): include('...')
    #24 /sites/mcgrathwidebay.com.au/files/web/wp/wp-blog-header.php(19): require_once('...')
    #25 /sites/mcgrathwidebay.com.au/files/web/index.php(6): require('...')
    #26 {main}

    I’m not sure what would be causing this 🙁 any ideas?
    The link in question is this one:

    https://mcgrathwidebay.com.au/for-sale/?action=epl_search&post_type=property&property_status=current&author_name=ainsley-driver

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

    We apologize for any trouble you might be facing due to this issue.

    First of all, please make sure that you have the latest versions of Rank Math and your theme and other plugins installed on your website. If not, please update them as soon as possible.

    The most likely cause of this issue is a conflict with another plugin or your theme. To find out which one is causing the problem, you need to do some troubleshooting steps. Don’t worry, it’s not hard and it won’t affect your visitors.

    Here’s what you need to do:

    If the issue is still there:

    Before you share any information with us, please make sure you have a full backup of your website. This is very important in case something goes wrong.

    We look forward to helping you troubleshoot this issue.

    Anonymous
    Rank Math free

    Thanks for the prompt reply. I appreciate you offering to help by jumping into my site, but I showed you what the issue is already. There is 100% a conflict with another plugin, but the conflicting plugin isn’t at fault. Rank Math is trying to access an offset of an object that doesn’t exist. It shouldn’t be trying to do that in the first place.

    sorry, I just realised I posted this in the wrong account and didn’t delete this one. Check the user w**********@s*************** where there are more details on the issue. Thanks!

    I’ll mark this one as complete.

    Hello,

    We understand the situation.

    In this case, please continue in that ticket so we can check and investigate the issue further.

    Looking forward to helping you.

    Thank you.

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

The ticket ‘Fatal Error in class-user.php on line 46’ is closed to new replies.