Title: Php Error after update: /var/log/apache2/error.log PHP 7.1
Last modified: March 21, 2017

---

# Php Error after update: /var/log/apache2/error.log PHP 7.1

 *  Resolved [Fabrizio Betti](https://wordpress.org/support/users/tutto-windows/)
 * (@tutto-windows)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-error-after-update-varlogapache2error-log-php-7-1/)
 * 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.
    -  This topic was modified 9 years, 1 month ago by [Fabrizio Betti](https://wordpress.org/support/users/tutto-windows/).

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

 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-error-after-update-varlogapache2error-log-php-7-1/#post-8943181)
 * hey [@tutto-windows](https://wordpress.org/support/users/tutto-windows/)
 * I am so sorry for the delay. We are already aware of this, we have fixed this
   issue yesterday update i.e., 0.9.45.3
 * Could you please confirm us, whether the issue is resolved or not?
 *  Thread Starter [Fabrizio Betti](https://wordpress.org/support/users/tutto-windows/)
 * (@tutto-windows)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-error-after-update-varlogapache2error-log-php-7-1/#post-8943210)
 * Yes,
 * I Confirm, after your upgrade the plugin working well!
 * Thank You so much!
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-error-after-update-varlogapache2error-log-php-7-1/#post-8955015)
 * Hey [@tutto-windows](https://wordpress.org/support/users/tutto-windows/)
 * We are glad to have you as a user. Without you, we couldn’t have resolved this
   issue. We really appreciate your support and cooperation.
 *  Thread Starter [Fabrizio Betti](https://wordpress.org/support/users/tutto-windows/)
 * (@tutto-windows)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-error-after-update-varlogapache2error-log-php-7-1/#post-8960124)
 * Thank to You for your incredible plugin!
 * By 🙂

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.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [apache-error-log](https://wordpress.org/support/topic-tag/apache-error-log/)
 * [php 7.1](https://wordpress.org/support/topic-tag/php-7-1/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [Fabrizio Betti](https://wordpress.org/support/users/tutto-windows/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php-error-after-update-varlogapache2error-log-php-7-1/#post-8960124)
 * Status: resolved