• Today I did the manual upgrade of WordPress from 5.9 to 5.9.2, per these instructions: https://www.ads-software.com/support/article/updating-wordpress/

    Part of these instructions are to Deactivate Plugins before making changes and then Reactivate Plugins after changes are made. When I went to reactive CacheEnabler I receive an error [1].

    Per some great support responses, I added this to the wp-config.php file above the “/** Sets up WordPress vars and included files. */” section:
    define( 'FS_METHOD', 'direct' );

    And I’m still getting the same error when I try to Active the CacheEnabler after the manual upgrade.

    All other plugins activated as expected. I’ve never setup FTP on this WordPress instance and don’t plan on it.

    Any other suggestions to get this plugin activated?

    Thanks!

    T

    [1]
    `Fatal error: Uncaught RuntimeException: FTP hostname is required in /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php:1247 Stack trace: #0 /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php(1296): Cache_Enabler_Disk::get_filesystem() #1 /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php(426): Cache_Enabler_Disk::mkdir_p(‘/var/www/html/w…’) #2 /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(412): Cache_Enabler_Disk::create_settings_file(Array) #3 /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(366): Cache_Enabler::on_update_backend(‘cache_enabler’, Array) #4 /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(609): Cache_Enabler::update_backend() #5 /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(137): Cache_Enabler::each_site(”, ‘self::update_ba…’) #6 /var/www/html/wp-includes/class-wp-hook.php(307): Cache_Enabler::on_activation in /var/www/html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 1260

Viewing 1 replies (of 1 total)
  • Thread Starter tessando

    (@tessando)

    It turns out this was related to permissions. I used the following method to reset all the Permission this instance:

    from /wordpress directory you need to be Root:

    find . -type d -print0 | xargs -0 chmod 755
    
    find . -type f -print0 | xargs -0 chmod 644
    
    chown -R apache:apache .

    This, of course, assumes that you are running apache and the ownership is for the web server. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Getting Fatal Error on CacheEnabler After Manual Upgrade’ is closed to new replies.