Critical error on website after disabling WooCommerce plugin

[ad_1]

Hi,

first step to solving this issue is to get a good error message, please activate the WordPress Debug mode: https://projectdmc.org/documentation/article/debugging-in-wordpress/

With the error message we can figure out what is causing the problem. (Please post the error)

If we don’t get a good error message a great way to start debugging your problem would be to deactivate all your plugins and see if the problem persists, if it doesn’t reactivate them one by one and you will see which plugin causes the problem.

Deactivating a plugin can be done by renaming it’s folder in /wp-content/plugins/ and reactivating can be done by renaming it back to its original name.

Hi Marina,

I understand that you are encountering a critical error on your site and couldn’t access the admin panel.

The first step on solving this is to activate the debug mode of WordPress. You can learn how by following this article: https://projectdmc.org/documentation/article/debugging-in-wordpress/

Once the debug mode is enabled, the error will show up and from there you can perform necessary action to solve the issue.

Hope this helps.

Hi @robfrtlz, @benniledl

Thanks for your reply, I would like to activate debug mode, but it seems I need some sort of cPanel or myPHPAdmin to do this, which requires to know the FTPS details, which I don’t have for now. Also I recovered the admin site email – it was inactive for long time, but now I paid and activated it again, but still have not received WordPress instructions to recover the site.

Still on it…

Okay, @robfrtlz, @benniledl, I got the detailed error in debug log file:

Stack trace: 0

PHP Fatal error: Uncaught Error: Call to undefined function is_woocommerce() in /home/domains/xyz.co.uk/public_html/wp-content/themes/functions.php:402

Will go from this now

Nice, this file is not a WordPress core file but probably from your theme, please open that file, in the first few lines there should be some comments about the author/origin of this file, there we can figure out what theme caused this error and then you can contact their support.

Oh @benniledl, @robfrtlz, I solved it =)
Thank you both so much!
Summary:
I restored access to hostinger and accessed the hpanel, so I could see my WP site files. There I activated the DEBUG mode and finally was able to see the error. Then I referred to the code line mentioned in the error and commented a block of code causing the error. This restored my access to WP admin panel so I could activate the missing critical WooCommerce plugin again.

Ufff… thank you again =)

  • This reply was modified 1 minute ago by marinamuse.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer