• Hello,
    I am trying to enable wp-super-cache on a Windows Hosting Server 2012 R2. Trying to activate the plugin in the entire WordPress site goes into error. Apparently this is the only plug-in cache enabled running for Windows. Via the phpinfo we verified that WinCache is enabled.

    Any suggestion is welcome.
    Thank you. Best Regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @rbergonzini
    Thank you for your support question, sorry to hear enabling WP-Super-Cache (WPSC) breaks your site.

    Does this happen right after enabling WPSC? Or after saving some settings? When you enable PHP error_reporting, and WP_DEBUG, does that provide you with more to go on? Because “goes into error” is too generic as you might have guessed.

    Depending on your hosting environment, you can add the following to wp-config.php to enable error reporting:

    ini_set( 'log_errors', 'on' );
    ini_set( 'error_log', 'd:/path/to/your/website/log.txt' );
    ini_set( 'display_errors', 'on' );

    Add this somewhere near WP_DEBUG. And don’t forget to enable that as well:

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', false );
    // Enable Debug logging to the wp-content/debug.log file
    define( 'WP_DEBUG_LOG', false );
    // Disable display of errors and warnings 
    define( 'WP_DEBUG_DISPLAY', false );

    Here (https://www.saotn.org/?s=wp-super-cache) I have more tips and tricks about using WP-Super-Cache on Windows Server 2012 and 2016 (IIS 8.5, IIS 10.0)

    Thread Starter rbergonzini

    (@rbergonzini)

    hello Jan Reilink,
    Thank for your reply! WPSC breaks oursite at least we enable it. But now we can perform steps for enable debug and try to execute instruction of saotn web site!

    We post an updated feedback as soon as possible!
    Thanks a lot!
    Best Regards.

    Thread Starter rbergonzini

    (@rbergonzini)

    hello Jan Reilink,
    we have enable debug. Here the log content.

    
    [02-Mar-2017 16:44:45 UTC] PHP Warning:  file(D:\Inetpub\vhosts\mysite.it\httpdocs/wp-content/wp-cache-config.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2061
    [02-Mar-2017 16:44:45 UTC] PHP Warning:  Invalid argument supplied for foreach() in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2062
    [02-Mar-2017 16:44:47 UTC] PHP Notice:  get_currentuserinfo è <strong>deprecata</strong> dalla versione 4.5.0! Utilizzare al suo posto wp_get_current_user(). in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-includes\functions.php on line 3828
    [02-Mar-2017 16:44:51 UTC] PHP Warning:  file(D:\Inetpub\vhosts\mysite.it\httpdocs/wp-content/wp-cache-config.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2061
    [02-Mar-2017 16:44:51 UTC] PHP Warning:  Invalid argument supplied for foreach() in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2062
    

    Can you help us?
    Thanks a lot!
    Best Regards.

    • This reply was modified 7 years, 1 month ago by rbergonzini.
    Thread Starter rbergonzini

    (@rbergonzini)

    hello Jan Reilink,
    we have enable debug. Here the log content.

    [02-Mar-2017 16:44:45 UTC] PHP Warning: file(D:\Inetpub\vhosts\mysite.it\httpdocs/wp-content/wp-cache-config.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2061
    [02-Mar-2017 16:44:45 UTC] PHP Warning: Invalid argument supplied for foreach() in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2062
    [02-Mar-2017 16:44:47 UTC] PHP Notice: get_currentuserinfo è deprecata dalla versione 4.5.0! Utilizzare al suo posto wp_get_current_user(). in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-includes\functions.php on line 3828
    [02-Mar-2017 16:44:51 UTC] PHP Warning: file(D:\Inetpub\vhosts\mysite.it\httpdocs/wp-content/wp-cache-config.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2061
    [02-Mar-2017 16:44:51 UTC] PHP Warning: Invalid argument supplied for foreach() in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2062

    Can you help us?
    Thanks a lot!
    Best Regards.

    Thread Starter rbergonzini

    (@rbergonzini)

    hello Jan Reilink,
    Here the log content afer debug enabled.

    [02-Mar-2017 16:44:45 UTC] PHP Warning: file(D:\Inetpub\vhosts\mysite.it\httpdocs/wp-content/wp-cache-config.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2061
    [02-Mar-2017 16:44:45 UTC] PHP Warning: Invalid argument supplied for foreach() in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2062
    [02-Mar-2017 16:44:47 UTC] PHP Notice: get_currentuserinfo è deprecata dalla versione 4.5.0! Utilizzare al suo posto wp_get_current_user(). in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-includes\functions.php on line 3828
    [02-Mar-2017 16:44:51 UTC] PHP Warning: file(D:\Inetpub\vhosts\mysite.it\httpdocs/wp-content/wp-cache-config.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2061
    [02-Mar-2017 16:44:51 UTC] PHP Warning: Invalid argument supplied for foreach() in D:\Inetpub\vhosts\mysite.it\httpdocs\wp-content\plugins\wp-super-cache\wp-cache.php on line 2062

    Can you help us?
    Thanks a lot!
    Best Regards.

    Thread Starter rbergonzini

    (@rbergonzini)

    hello Jan Reilink,
    do have some suggestion about reported logs?

    PS: excuse me for duplicate post!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP Super Cache on Windows Server 2012 hosting’ is closed to new replies.