• Resolved Nate

    (@goseongguy)


    Hello,

    After updating to WP 5.8, I have many errors on the widgets editor page, and apparently Rank Math might be involved, because when I click one of the error files in the console, it jumps to a part of the script underlined in red with Rank Math stuff in that part from wp-content/plugins/seo-by-rank-math/assets/admin/js/blocks.js?ver=1.0.68.1:

    ,rankMath.canUser.snippet&&!Object(r.isUndefined)(rankMath.schemas)&&function(){var e=[Object(l.__)(“Schema”,”rank-math”),Object(l.__)(“Markup”,”rank-math”),

    This error is displayed in the console as:

    blocks.js?ver=1.0.68.1:1 
    Uncaught TypeError: Cannot read property 'snippet' of undefined
        at Module.75 (blocks.js?ver=1.0.68.1:1)
        at n (blocks.js?ver=1.0.68.1:1)
        at blocks.js?ver=1.0.68.1:1
        at blocks.js?ver=1.0.68.1:1

    I can’t remove any widgets. Many strange things on the widgets page. Any ideas?

    Thank you!
    Nate

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @goseongguy,

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

    It seems to be working fine on our end and must be related to the latest changes brought by WP in their core and some theme developers missing to update the way they handle widgets.

    Assuming you are using the latest version of all the plugins, themes, and WordPress (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/

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

    You can follow this video tutorial as well:

    Looking forward to helping you.

    Thread Starter Nate

    (@goseongguy)

    Thank you for the reply. Yes I am using the latest versions of all plugins, themes, and WP.

    Unfortunately a strange unrelated DNS issue came up today making my admin area inaccessible. This could take a few days to figure out with Cloudflare and my hosting support, so please allow me to report back in the coming days. Thank you.

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @goseongguy

    Sure, please take your time.

    We are here to assist.

    Thread Starter Nate

    (@goseongguy)

    Thank you. It seems not related to Rank Math. I installed the Health Check plugin and entered Troubleshooting mode with all plugins deactivated and using the default twenty-twenty theme. Now when I visit the widgets admin area, I do still get console errors, but they are different now. Perhaps this is an issue with my server/hosting.

    Thank you for helping me troubleshoot anyway!
    Nate

    Some of the errors, just for reference:
    Failed to load resource: the server responded with a status of 406 () load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.8

    Uncaught ReferenceError: jQuery is not defined
    at load-scripts.php?c=0&load[chunk_0]=hoverIntent,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8:2
    at load-scripts.php?c=0&load[chunk_0]=hoverIntent,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8:2

    Failed to load resource: the server responded with a status of 406 () print.css?ver=1.8

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @goseongguy

    Glad you found the culprit.

    If you need any further assistance, please feel free to reach out to us. We are here to assist.

    Thank you.

    This issue is faced when your wordpress updates to 5.8 version.
    There is a simple solution to this. You only have to install & activate “Classic Widgets” plugin. It would resolve the issue.

    Thread Starter Nate

    (@goseongguy)

    I did add a couple of lines of code to functions.php to use the old Widgets editor.
    Thanks for comment, that is true and it does help but this is still just a workaround, and it avoids keeping up with WordPress’ development. I don’t know what causes the issue because it seems not related to Rank Math nor any plugin or theme. Many don’t seem to have this issue. But it’s a temporary fix. Maybe in future WP versions it will resolve itself.
    Cheers!

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @goseongguy

    The widget area is handled by the themes and not the Rank Math plugin.

    Did you check if disabling the Rank Math plugin helped?

    If not, then you need to contact the theme developer.

    Hope that helps. Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Widget errors after WP 5.8’ is closed to new replies.