Title: Error 520
Last modified: June 9, 2019

---

# Error 520

 *  Resolved [anitalianguy](https://wordpress.org/support/users/anitalianguy/)
 * (@anitalianguy)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/)
 * Hello everyone, it is my first time posting so I hope I am in the right section
   and I am asking the right questions.
 * Since this morning i have been experiencing an Error 520 on my website and this
   is what the log says:
 *     ```
       [09-Jun-2019 09:27:28 UTC] PHP Notice:  Undefined variable: inlined_ccss_block in /web/htdocs/www.aliceceramica.com/home/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 885
       ```
   
 * I am not too experienced and tried both to deactivate Autoptimize (which I assume
   is causing this issue) and restoring the whole Autoptimize folder from a weekly
   backup.
 * Would you know how to get out of this situation?
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-520-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11619809)
 * the notice is probably there because you activated “inline & defer” without having
   inline CSS being available, so deactivating “inline & defer” should fix that.
 * that being said, I would be surprised if that notice is the cause of the HTTP
   520 error to be honest, as notices don’t stop PHP script execution.
 * hope this helps,
    frank
 *  Thread Starter [anitalianguy](https://wordpress.org/support/users/anitalianguy/)
 * (@anitalianguy)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11619814)
 * Thank you for your reply. I don’t seem to be able to access the Admin page of
   my WordPress, would there be any way to deactivate it without accessing the admin?
 * Also, is there any error you may see (or file that I may send you) for you to
   check what is causing the issue?
 * Many thanks in advance once again for your prompt reply.
 *  Thread Starter [anitalianguy](https://wordpress.org/support/users/anitalianguy/)
 * (@anitalianguy)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11619819)
 * Some other lines of error
 *     ```
       [09-Jun-2019 09:55:07 UTC] PHP Warning:  include(): Failed opening '/web/htdocs/www.aliceceramica.com/home/wp-content/advanced-cache.php' for inclusion (include_path='.:/php7.2/lib/php') in /web/htdocs/www.aliceceramica.com/home/wp-settings.php on line 84
       [09-Jun-2019 09:55:15 UTC] PHP Warning:  include(/web/htdocs/www.aliceceramica.com/home/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /web/htdocs/www.aliceceramica.com/home/wp-settings.php on line 84
       [09-Jun-2019 09:55:15 UTC] PHP Warning:  include(/web/htdocs/www.aliceceramica.com/home/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /web/htdocs/www.aliceceramica.com/home/wp-settings.php on line 84
       [09-Jun-2019 09:55:15 UTC] PHP Warning:  include(): Failed opening '/web/htdocs/www.aliceceramica.com/home/wp-content/advanced-cache.php' for inclusion (include_path='.:/php7.2/lib/php') in /web/htdocs/www.aliceceramica.com/home/wp-settings.php on line 84
       ```
   
 *  Thread Starter [anitalianguy](https://wordpress.org/support/users/anitalianguy/)
 * (@anitalianguy)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11619822)
 * The advanced cache file looks like this:
 *     ```
       <?php
       // WP SUPER CACHE 1.2
       function wpcache_broken_message() {
       	global $wp_cache_config_file;
       	if ( isset( $wp_cache_config_file ) == false ) {
       		return '';
       	}
   
       	$doing_ajax     = defined( 'DOING_AJAX' ) && DOING_AJAX;
       	$xmlrpc_request = defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST;
       	$rest_request   = defined( 'REST_REQUEST' ) && REST_REQUEST;
       	$robots_request = strpos( $_SERVER['REQUEST_URI'], 'robots.txt' ) != false;
   
       	$skip_output = ( $doing_ajax || $xmlrpc_request || $rest_request || $robots_request );
       	if ( false == strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) && ! $skip_output ) {
       		echo '<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->';
       	}
       }
   
       if ( false == defined( 'WPCACHEHOME' ) ) {
       	define( 'ADVANCEDCACHEPROBLEM', 1 );
       } elseif ( ! include_once WPCACHEHOME . 'wp-cache-phase1.php' ) {
       	if ( ! @is_file( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {
       		define( 'ADVANCEDCACHEPROBLEM', 1 );
       	}
       }
       if ( defined( 'ADVANCEDCACHEPROBLEM' ) ) {
       	register_shutdown_function( 'wpcache_broken_message' );
       }
       ```
   
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11619931)
 * so this is more a problem with your page cache (which AO does not do)
 * it looks like PHP can’t load advanced-cache.php (a permissions-issue maybe).
   
   you can disable advanced-cache.php being loaded by removing `define('WP_CACHE',
   true);` from your wp-config.php file. and then try re-installing wp super cache
   maybe?
 * frank
 *  Thread Starter [anitalianguy](https://wordpress.org/support/users/anitalianguy/)
 * (@anitalianguy)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11619956)
 * Tried and had this error instead
 * `[09-Jun-2019 11:32:10 UTC] PHP Warning: strpos(): Empty needle in /web/htdocs/
   www.aliceceramica.com/home/wp-includes/plugin.php on line 658`
 * Odd situation all of a sudden. I should perhaps write the Super Cache guys too.
 * In the meantime thanks once again for your help and patience.
 *  Thread Starter [anitalianguy](https://wordpress.org/support/users/anitalianguy/)
 * (@anitalianguy)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11619975)
 * Actually no, now no error at all in the log. Odd!
 *  Thread Starter [anitalianguy](https://wordpress.org/support/users/anitalianguy/)
 * (@anitalianguy)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11620000)
 * For some mysterious reason I switched the Cloudfare icon from orange to grey 
   on the website DNS and it worked!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11620338)
 * very weird things anitalianguy, no idea how cloudflare & DNS were affecting your
   site, but happy is now works! 🙂
 * have a nice Sunday-evening!
    frank

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Error 520’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/error-520-2/#post-11620338)
 * Status: resolved