简体   繁体   中英

Cannot acces wp-admin, one error left, how to solve this?

I probably messed my wordpress site up by updating the site before updating plug ins, and now I cannot acces wp-admin anymore. I got a number of error messages, most of which I could solve by changing something in the given file, but I do not know how to solve this:

Fatal error: Uncaught Error: Class "WP_Widget" not found in …/wp-content/plugins/category-posts/class-widget.php:22 Stack trace: #0.../wp-content/plugins/category-posts/cat-posts.php(38): require_once() #1.../wp-settings.php(359): include_once('...') #2.../wp-config.php(90): require_once('...') #3.../wp-load.php(37): require_once('...') #4.../wp-admin/admin.php(34): require_once('...') #5.../wp-admin/index.php(10): require_once('...') #6 {main} thrown in.../wp-content/plugins/category-posts/class-widget.php on line 22

Any suggestions are greatly appreciated.

It seems like an issue with one of your plugins, category-posts .

I would suggest, if you got access to the site's backend, navigate to .../wp-content/plugins/ and delete the category-posts folder. This will delete the plugin which causes the issue, and hopefully resolve the problem. You can always download the plugin folder before deleting it, just so you've got it backed up.

Can you rename category-posts plugin to any other name so that the plugin will automatically deactivate. After that can you take a look to login to wp-admin. then from there try reinstalling the same plugin or upload latest version of plugin.

Thank your for your replies.

I tried this, and it resulted in new error messages:

Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in .../wp-content/plugins/loco-translate/loco.php on line 162

Fatal error: Uncaught Error: Class "WP_Widget" not found in .../wp-content/plugins/news-manager/includes/widgets.php:38 Stack trace: #0 .../wp-content/plugins/news-manager/news-manager.php(33): include_once() #1 .../wp-settings.php(359): include_once('...') #2 .../wp-config.php(90): require_once('...') #3 .../wp-load.php(37): require_once('...') #4 .../wp-admin/admin.php(34): require_once('...') #5 .../wp-admin/index.php(10): require_once('...') #6 {main} thrown in .../wp-content/plugins/news-manager/includes/widgets.php on line 38

And I still cannot access wp-admin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM