• Resolved treecutter

    (@treecutter)


    Hello

    We have Cache-enabler version 1.7.2 and WordPress 5.7.2 , running on Debian Buster 10, Apache 2.4, and PHP 7.4

    The plugin fails to activate and throws the below error message, unless user www-data has read/write access to folder wp-admin.

    If temporary permission is granted, the plugin activates, but when permissions are reset , the same PHP errors below floods the logs

    Is there some reason the plugin would need read/write access to folder wp-admin, or is there some other reason/workaround ?

    Thank you

    Fatal error: Uncaught RuntimeException: FTP hostname is required in /var/www/html/some-website/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php:887 Stack trace: #0 /var/www/html/some-website/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php(923): Cache_Enabler_Disk::get_filesystem() #1 /var/www/html/some-website/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php(383): Cache_Enabler_Disk::mkdir_p() #2 /var/www/html/some-website/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(323): Cache_Enabler_Disk::create_settings_file() #3 /var/www/html/some-website/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(408): Cache_Enabler::update_backend() #4 /var/www/html/some-website/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(135): Cache_Enabler::each_site() #5 /var/www/html/some-website/public_html/wp-includes/class-wp-hook.php(292): Cache_Enabler::on_activation() #6 /var/www/html/some-website/public_html/wp-i in /var/www/html/some-website/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 900`

    • This topic was modified 3 years, 5 months ago by treecutter.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    Is this issue resolved if define( 'FS_METHOD', 'direct' ); is set in your wp-config.php file?

    Thread Starter treecutter

    (@treecutter)

    Hello Corey

    Yes, perfect !! adding that line, then de-activate/re-active seems to have fixed it, thank you.

    Should we still be adding this line too in wp-config.php ?

    define( ‘WP_CACHE’, true );

    Thread Starter treecutter

    (@treecutter)

    Or this instead ?

    /** Enables page caching for Cache Enabler. */
    if ( ! defined( ‘WP_CACHE’ ) ) {
    define( ‘WP_CACHE’, true );
    }

    Anonymous User 16850768

    (@anonymized-16850768)

    Fantastic! I’m happy to hear defining that constant resolved the issue.

    As for the WP_CACHE constant, it’s required to be set as true for Cache Enabler to cache your pages. In case you’re curious, this constant tells WordPress to include the advanced-cache.php drop-in file, which starts up the cache engine. How you have it defined is up to your preference. You can either define it yourself or allow Cache Enabler to do this automatically for you. (It will only be handled automatically if Cache Enabler doesn’t find WP_CACHE already defined and it believes the wp-config.php file is the default, which in most cases it is.)

    Thread Starter treecutter

    (@treecutter)

    Excellent , thanks very much for the excellent support, highly appreciated !!

    Anonymous User 16850768

    (@anonymized-16850768)

    You’re welcome, happy to help at any time. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permissions Issue’ is closed to new replies.