• Resolved Fabrizio Betti

    (@tutto-windows)


    Hi,

    In my Apache Error Log (/var/log/apache2/error.log) I have found some php errors. I found the problem in this rows:

    
    add_action('amp_init','ampforwp_cache_compatible_activator');
    function ampforwp_cache_compatible_activator(){
        add_action('template_redirect','ampforwp_cache_plugin_compatible');
    }
    function ampforwp_cache_plugin_compatible(){
        $ampforwp_is_amp_endpoint = ampforwp_is_amp_endpoint();
        if ( ! $ampforwp_is_amp_endpoint ) {
            return;
        }
        /**
         * W3 total cache
         */
        add_filter( 'w3tc_minify_js_enable', array( $this, '_return_false' ) );
        add_filter( 'w3tc_minify_css_enable', array( $this, '_return_false' ) );
    }
    

    I don’t use W3 total Cache Plugin so i deleted them. Now no errors.

    I hope it help you to improve your fantastic plugin!

    Thank You so much.

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

The topic ‘Php Error after update: /var/log/apache2/error.log PHP 7.1’ is closed to new replies.