• Resolved sean66

    (@sean66)


    Hi there

    There seems to be a conflict with the latest update and the asset cleanup plugin. Causes a critical error when trying to login to the backend. After debugging its clear the two plugins cant be installed at the same time.

    Is there a way to resolve this?

    This is from the error log:

    An error of type E_ERROR was caused in line 100 of the file /home/allauudv/public_html/wp-content/plugins/wordpress-seo/admin/capabilities/class-register-capabilities.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/allauudv/public_html/wp-content/plugins/wordpress-seo/admin/capabilities/class-register-capabilities.php:100

    Stack trace:

    #0 /home/allauudv/public_html/wp-content/plugins/wordpress-seo/admin/capabilities/class-register-capabilities.php(100): in_array('wpseo_manager', NULL, true)

    #1 /home/allauudv/public_html/wp-includes/class-wp-hook.php(326): WPSEO_Register_Capabilities->map_meta_cap_for_seo_manager(Array, 'administrator')

    #2 /home/allauudv/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)

    #3 /home/allauudv/public_html/wp-includes/capabilities.php(842): apply_filters('map_meta_cap', Array, 'administrator', 0, Array)

    #4 /home/allauudv/public_html/wp-includes/class-wp-user.php(782): map_meta_cap('administrator', 0)

    #5 /home/allauudv/public_html/wp-includes/capabilities.php(985): WP_User->has_cap('administrator')

    #6 /home/allauudv/public_html/wp-includes/capabilities.php(877): user_can(Object(WP_User), 'administrator')

    #7 /home/allauudv/public_html/wp-content/plugins/wp-asset-clean-up/classes/Settings.php(608): current_user_can('administrator')

    #8 /home/allauudv/public_html/wp-content/plugins/wp-asset-clean-up/classes/Settings.php(595): WpAssetCleanUp\Settings::filterSpecialSettings(Array)

    #9 /home/allauudv/public_html/wp-content/plugins/wp-asset-clean-up/classes/Settings.php(366): WpAssetCleanUp\Settings->filterSettings(Array)

    #10 /home/allauudv/public_html/wp-content/plugins/wp-asset-clean-up/classes/Main.php(245): WpAssetCleanUp\Settings->getAll()

    #11 /home/allauudv/public_html/wp-content/plugins/wp-asset-clean-up/wpacu-load.php(43): WpAssetCleanUp\Main->loadAllSettings()

    #12 /home/allauudv/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php(106): require_once('/home/allauudv/...')

    #13 /home/allauudv/public_html/wp-settings.php(517): include_once('/home/allauudv/...')

    #14 /home/allauudv/public_html/wp-config.php(79): require_once('/home/allauudv/...')

    #15 /home/allauudv/public_html/wp-load.php(50): require_once('/home/allauudv/...')

    #16 /home/allauudv/public_html/wp-admin/admin.php(34): require_once('/home/allauudv/...')

    #17 /home/allauudv/public_html/wp-admin/edit-comments.php(10): require_once('/home/allauudv/...')

    #18 {main}

      thrown
    • This topic was modified 1 month, 2 weeks ago by sean66.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @sean66

    I’m sorry about the error you encountered. Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Thread Starter sean66

    (@sean66)

    @maybellyne thanks for your response.

    As mentioned the conflict was identified with the plugin “Asset Cleanup”. I also posted what the error log says. Seems to be user permission related but am not sure

    Plugin Support Mushrit Shabnam

    (@611shabnam)

    Hi @sean66

    Does your site meet the plugin requirements?

    In my test site, I installed and activate Yoast SEO and the Asset CleanUp: Page Speed Booster plugin and noticed there is no critical error. Can you kindly uninstall Yoast SEO and reinstall and activate Yoast SEO on your site?

    We recommend creating regular backups of your site and database for your site’s health and safety. A backup is crucial before making important changes on your website and provides you with a safety net if something were to go wrong. Learn more about the benefits of regular backups.

    Let us know what you see.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.