• Resolved anitalianguy

    (@anitalianguy)


    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 to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    (@anitalianguy)

    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

    (@anitalianguy)

    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

    (@anitalianguy)

    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

    (@optimizingmatters)

    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

    (@anitalianguy)

    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

    (@anitalianguy)

    Actually no, now no error at all in the log. Odd!

    Thread Starter anitalianguy

    (@anitalianguy)

    For some mysterious reason I switched the Cloudfare icon from orange to grey on the website DNS and it worked!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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.