• Resolved beatom

    (@beatom)


    Dear Yoast Seo Team,

    after my last update to 10.0 I got some problems.
    I deactivated seo plugins and now I would like to active it again. Unfortunately I have a fatal error info and cant active the plugin.

    Fatal error: Uncaught Error: Class ‘WPSEO_Capability_Manager_Factory’ not found in /home//public_html/../wp-content/plugins/wordpress-seo/admin/capabilities/class-register-capabilities.php:32 Stack trace: #0 /…/wp-includes/class-wp-hook.php(286): WPSEO_Register_Capabilities->register(”) #1 /home…/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 …/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /…/wp-content/plugins/wordpress-seo/wp-seo-main.php(196): do_action(‘wpseo_register_…’) #4 /…/wp-content/plugins/wordpress-seo/wp-seo-main.php(116): _wpseo_activate() #5 …/wp-includes/class-wp-hook.php(286): wpseo_activate(”) #6 /…/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, in /home/…/wp-content/plugins/wordpress-seo/admin/capabilities/class-register-capabilities.php on line 32

    Pleas help me to solve this problem.

    Thanks a lot
    Beata

Viewing 15 replies - 1 through 15 (of 22 total)
  • Hi @beatom,
    Thank you for reporting this issue. However, I have a hard time reproducing it.

    Because you mention that you have used SEO plugins before (I assume you mean Yoast SEO specifically), and were in the process of activating them again, it could be the case that our upgrade routine in combination with a caching plugin causes the error. Do you by any chance use a caching plugin? If so, can you try clearing the cache and try activating Yoast SEO again?

    If that doesn’t solve the issue, can you tell us what other plugins are active on your site, and what was the latest Yoast SEO version you used before upgrading to 10.0?

    Thread Starter beatom

    (@beatom)

    Hi@ireneyoast

    I am usung yoast seo already for 2 years.
    Yesterday I did update to 10.0 (I can not remember which I had before, but for sure not older than 9.5 or sth because I update all plugins regullary in 2 weeks).
    After making yoast seo update was all ok, than I did woocommerce update and I got some warnings fehler (ay() expects parameter 1 to be a valid callback, class ‘WC_Helper_Compat’ does not have a method ‘admin_menu’ in /home/…/public_html/senzat/wp-includes/class-wp-hook.php on line 286).
    Than I started to deactivate all pluging to search for problem.

    Now, I could not activate yoast seo again because I had this Fehler what I send you in last message.

    I clean cache already I tried again, but still the same problem.
    I use: WooCommerce, WP Super Cache, Autoptimize, Kadence Slider, Regenerate Thumbnails.
    My hp: senzaconfini.at

    Hi,

    We would like some specific information.

    A. Can you confirm you are using WordPress 5.1.1? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider.?Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast.?This guide explains more:?https://yoast.com/why-we-dont-support-old-wordpress-versions/.

    B.Were you able to update your WooCommerce plugin to v3.5.6?

    C. If all are update, does the issue happen if Yoast is the only plugin active on your site AND your theme is 2019? If you are not sure how to perform a conflict please use this guide: https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts/. You can also use a plugin to help do the conflict check without having your site be affected for your users. The link explains more.

    Thread Starter beatom

    (@beatom)

    Hi,

    A. yes I am using WP 5.1.1–de_DE
    B. yes, WooCommerce Version 3.5.6 (I could updated yesterday)
    C. all is update, all plugin are deacitveted (inc. Yoast seo).
    Than I try first to activate yoast seo and can not because again I got this information about fatal error…
    (I am using new version von Kathence theme premium).

    What can I do next?

    Greets

    Hi,

    Just to clarify, the issue happens when all non-Yoast plugins are deactivated and your theme is 2019?

    If you go to activate Yoast with your theme as 2019 and all other plugins deactivated, do you still get the same error?

    Thread Starter beatom

    (@beatom)

    yes, all plugins was deactivated and the problem still appears. I go to activate yoast seo and I couldnt because of the same error.
    But what do you mean theme 2019? I have pinnacle premium (updated to new version)

    Hi,

    We want to rule out the theme you currently have as causing the issue.

    In this manner, we ask that you please go to Appearance-Themes and add the theme 2019 by searching for it. See image: https://pasteboard.co/I5ydlJk.png.

    Then mouse over the theme to activate it.

    Once you do that are you able to activate Yoast? Do the errors remain?

    Sa?a

    (@stodorovic)

    Did you try to update PHP version if your hosting supports PHP 7.2? Also, it’s possible that’s related to OPCache, but it should expire (after some time). I’ve noticed some similar errors related to OPCache. It’s possible that’s activated opcache-file. In this case you can locate .opcache direcotry in public_html (or home) directory. You can remove everything inside this directory.

    Also, it’s possible to check is OPCache activated if you create simple phpinfo.php (or install plugin Health Check & Troubleshooting) and check PHP Information.

    Did you try to manually re-install Yoast SEO plugin?

    Thread Starter beatom

    (@beatom)

    Thank you, I will try to re-install Yoast Seo manually.
    Do I lost my settings during removing and installing again?

    Sa?a

    (@stodorovic)

    No, it’s safe because your settings are in database. More details – https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/#ftp

    I just checked updating from 9.6 to 10.0 and I was able to reproduce issue related to opcache, but error is different. Also, it’s VPS and I’ve restarted php-fpm to clear OPCache. Anyway, it works (Yoast 10.0, Woo 3.5.6, WP 5.1.1).

    Thread Starter beatom

    (@beatom)

    Thanks a lot. I re-install manually yoast seo and its active now:)

    Thread Starter beatom

    (@beatom)

    @stodorovic
    The only problem is I can not come to settings of yoast seo.
    When i click on the button setting from yoast seo plugin, comes the empty site with information:
    Du bist leider nicht berechtigt, auf diese Seite zuzugreifen.

    Sa?a

    (@stodorovic)

    It could be issue related to browser cache. Did you try to delete cache in browser and logout/login in WordPress?
    Also, please check errors in PHP error_log (you could try to find them on CPanel). It’s possible that’s again fatal error.

    Sa?a

    (@stodorovic)

    I see resolved status. Did you fix issue related to “Sorry, you are not allowed to access this page.”?

    Anyway, incomplete update could be an issue related to WooCommerce. Only deactivate woocommerce (don’t run uninstall because it could remove woocommerce pages,…) and try to refresh WooCommerce files manually (force update existing files). After this, you could activate WooCommerce again.

    I see that your server has installed PHP 7.0.27 which is outdated. Latest version is PHP 7.0.33, but it isn’t more supported (more details – https://php.net/eol.php ). It’s recommended to update PHP to 7.2.

    Thread Starter beatom

    (@beatom)

    @stodorovic
    yes I deleted cache and logout/login again.
    I can not find PHP error? Where exactely I should look?
    (My server provider is telling that I have 7.2).

    I also can not come to setting from woocommerce now, same problem what with yoast seo ??

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Uncaught Error: Class ‘WPSEO_Capability_Manager_Factory’’ is closed to new replies.