• Resolved tech_ppbh

    (@tech_ppbh)


    Is there any way I can fix this error? The plugin activates, but when I click on JCH Optomize in the settings menu it gives me this:

    Fatal error: Uncaught exception ‘UnexpectedValueException’ with message ‘FilesystemIterator::__construct(/usr/local/www/vhosts/davis_county/wp-content/cache/jch-optimize/) [filesystemiterator.–construct]: failed to open dir: No such file or directory’ in /usr/local/www/vhosts/davis_county/wp-content/plugins/jch-optimize/options.php:625 Stack trace: #0 /usr/local/www/vhosts/davis_county/wp-content/plugins/jch-optimize/options.php(625): FilesystemIterator->__construct(‘/usr/local/www/…’, 4096) #1 /usr/local/www/vhosts/davis_county/wp-content/plugins/jch-optimize/options.php(168): jch_get_cache_info() #2 [internal function]: jch_initialize_settings(”) #3 /usr/local/www/vhosts/davis_county/wp-includes/plugin.php(496): call_user_func_array(‘jch_initialize_…’, Array) #4 /usr/local/www/vhosts/davis_county/wp-admin/admin.php(216): do_action(‘load-settings_p…’) #5 /usr/local/www/vhosts/davis_county/wp-admin/options-general.php(10): require_once(‘/usr/local/www/…’) #6 {main} in /usr/local/www/vhosts/davis_county/wp-content/plugins/jch-optimize/options.php on line 625

    any help is much appreciated!

    https://www.ads-software.com/plugins/jch-optimize/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author codealfa

    (@codealfa)

    It seems the plugin is having some trouble creating or accessing the plugin’s cache folder on your server. Maybe you can try to create it manually and make sure the folder has correct permissions.

    The plugin’s cache directory is at /wp-content/cache/jch-optimize/

    Normally the permissions of the folder should be 755 but check with your host to confirm what permissions you need to set for the plugin to access this folder.

    Thread Starter tech_ppbh

    (@tech_ppbh)

    I created the folder like you said and it has 777 permissions, yet in the plugin page in wordpress admin it says “Error writing files to cache” at the top. Any other suggestions?

    thanks for the quick response by the way.

    Plugin Author codealfa

    (@codealfa)

    Did you check your host for assistance on this? This is more of a server issue because the plugin works on other servers. Check if there’s some restriction on your server regarding plugins creating and saving files and folders on the server.

    Thread Starter tech_ppbh

    (@tech_ppbh)

    When I moved the site to a different server it worked just fine. Not sure why it didn’t work on the other one. Thanks for the help and the plugin!

    Plugin Author codealfa

    (@codealfa)

    Ok great so this confirms what I was thinking about the server. Well happy to know it’s resolved.

    Regards.

    Thank you!

    I had the same problem (permission thing). the folder wasnt created so i created it manually and it was fixed.

    Created the folder manually didnt help, also tried chow user.
    Warning: Missing argument 7 for JchPlatformCache::requestFilesystemCredentials() in /var/www/mysite.com/wp-content/plugins/jch-optimize/platform/cache.php on line 225

    it ask to input my ftp credential?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error on activating plugin’ is closed to new replies.