• Resolved ssswebmaster

    (@ssswebmaster)


    I am constantly getting a Yoast SEO fatal error message from WordPress. The error message from WordPress has something to do with an error call to an undefined method Dummy Admin User (??). I cant find anything about the error anywhere. I would much appreciate if anyone has seen this error or knows what to do about it. Thx.

    Error Details
    =============
    An error of type E_ERROR was caused in line 285 of the file /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php. Error message: Uncaught Error: Call to undefined method Dummy_Admin_User::get_role_caps() in /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php:285
    Stack trace:
    #0 [internal function]: Yoast_Notification->has_capability(‘wpseo_manage_op…’)
    #1 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php(262): array_filter(Array, Array)
    #2 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php(213): Yoast_Notification->match_capabilities()
    #3 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(307): Yoast_Notification->display_for_current_user()
    #4 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-admin-init.php(178): Yoast_Notification_Center->add_notification(Object(Yoast_Notification))
    #5 /home/statsskolen/public_html/wp-includes/class-wp-hook.php(287): WPSEO_Admin_Init->yoast_plugin_update_notification(”)
    #6 /home/sta

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @ssswebmaster,

    Thanks for reporting this and we’re sorry to see you’re getting an error.

    To help us troubleshoot, we have a few initial questions:

    1. Can you give us more details about when and where this error appeared? Did you receive this after an update, for example?

    2. Do you have the latest version of Yoast SEO 14.9?

    3. Are all your plugins and themes up-to-date and are you’re using WordPress version 5.4 or greater?

    4. Are there any errors on the frontend of the site? Are there any errors when you visit the Yoast SEO settings or use the Yoast SEO metabox on page edit screens?

    Thread Starter ssswebmaster

    (@ssswebmaster)

    Hi Priscilla,

    1. The error has been constant for the last 4-6 updates. I cant remember on which update it started – as I was hoping a subsequent update would resolve the issue. I believe (but I am not certain) that the error started after an update to the latest WOrdPress version 5.4.

    2. I am using WordPress 5.5.1 and YoastSEO 14.9

    3. All my plugins are updated to their latest versions.

    4. We have no visible errors on our website at all.

    I have noticed that in the WordPress error message, that the message states that I am using PHP 7.3.9, but we are still only using PHP 7.2.22 (??) I amy be misunderstanding the message.

    The full WordPress error message is:

    Hi!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Yoast SEO.

    First, visit your website (https://www.statsskolen.dk/) and check for any visible issues. Next, visit the page where the error was caught (https://www.statsskolen.dk) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://www.statsskolen.dk/wp-login.php?action=enter_recovery_mode&rm_token=xxxx&rm_key=xxxx

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.5.1
    Current theme: Statsskolen-astra (version 1.0.0) Current plugin: Yoast SEO (version 14.9) PHP version 7.3.9-1+0~20190902.44+debian9~1.gbpf8534c

    Error Details
    =============
    An error of type E_ERROR was caused in line 285 of the file /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php. Error message: Uncaught Error: Call to undefined method Dummy_Admin_User::get_role_caps() in /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php:285
    Stack trace:
    #0 [internal function]: Yoast_Notification->has_capability(‘wpseo_manage_op…’)
    #1 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php(262): array_filter(Array, Array)
    #2 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification.php(213): Yoast_Notification->match_capabilities()
    #3 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(307): Yoast_Notification->display_for_current_user()
    #4 /home/statsskolen/public_html/wp-content/plugins/wordpress-seo/admin/class-admin-init.php(178): Yoast_Notification_Center->add_notification(Object(Yoast_Notification))
    #5 /home/statsskolen/public_html/wp-includes/class-wp-hook.php(287): WPSEO_Admin_Init->yoast_plugin_update_notification(”)
    #6 /home/sta

    Any advice on resolving the issue would be great – thanks.

    John

    Hi, @ssswebmaster your website is trying to look for a function that should always exist. The fact that it doesn’t means that there is something altering the behavior of your website.

    From your error I can see that your User object is called Dummy_Admin_User instead of the usual WP_User. This is a sign that you are using some sort of member / role altering plugin that is switching the core behavior of WordPress. Seeing as we are calling a function get_role_caps() that is always present on a normal user, this is now crashing because this altered user does not seem to have this function.

    I’d advise you to check if you are using plugins that are altering memberships / roles / capabilities and see if disabling those would result in this error not reappearing.

    • This reply was modified 5 years, 8 months ago by Pcosta88. Reason: Dummy_Admin_User

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

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

The topic ‘FATAL ERROR Call to undefined method Dummy_Admin_User’ is closed to new replies.