All pages inc wp-admin 500 ISError after .htaccess modified

I stupidly deleted the W3 Total Cache block from .htaccess before disabling the plugin which causes all pages to return 500 server error including wp-admin. 

Email body:

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, W3 Total Cache.

First, visit your website ( and check for any visible issues. Next, visit the page where the error was caught ( 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.

*** Link removed ***

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 6.1.1
Active theme: Twenty Seventeen (version 3.1)
Current plugin: W3 Total Cache (version 2.3.0)
PHP version 7.4.33

Error Details

An error of type E_ERROR was caused in line 83 of the file /var/www/html/smtpauthenticator/wp-content/plugins/w3-total-cache/Root_Environment.php. Error message: Uncaught W3TC\Util_Environment_Exceptions in /var/www/html/smtpauthenticator/wp-content/plugins/w3-total-cache/Root_Environment.php:83
Stack trace:

0 /var/www/html/smtpauthenticator/wp-content/plugins/w3-total-cache/Util_Activation.php(205): W3TC\Root_Environment->fix_after_deactivation()

1 /var/www/html/smtpauthenticator/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(178): W3TC\Util_Activation::deactivate_plugin()

2 /var/www/html/smtpauthenticator/wp-includes/class-wp-hook.php(308): W3TC\Generic_Plugin_Admin->admin_init()

3 /var/www/html/smtpauthenticator/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

4 /var/www/html/smtpauthenticator/wp-includes/plugin.php(517): WP_Hook->do_action()

5 /var/www/html/smtpauthenticator/wp-admin/admin.php(175): do_action()

6 /var/www/html/smtpauthenticator/wp-admin/plugins.php(10): require_once('/var/www/html/s…')

7 {main}


Sorry for the inconvenience - I was careless. :(

Kind Regards

The page I need help with: [log in to see the link]


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