Title: PHP Fatal error
Last modified: December 26, 2016

---

# PHP Fatal error

 *  [Salvatore Cordiano](https://wordpress.org/support/users/parallelit/)
 * (@parallelit)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-95/)
 * I moved my WP to a new hosting with nginx and PHP7. When I try to empty only 
   the disk cache
    (w3tc_flush_file) I see a blank page. I found this on error.log:
 * 2016/12/26 22:01:19 [error] 11916#11916: *3 FastCGI sent in stderr: “PHP message:
   PHP Fatal error: Uncaught Error: Call to undefined method W3TC\Generic_AdminActions_Flush::
   flush_pgcache() in /apps/webserver/mydomain.com/httpdocs/wp-content/plugins/w3-
   total-cache/Generic_AdminActions_Flush.php:250
    Stack trace: #0 /apps/webserver/
   mydomain.com/httpdocs/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.
   php(297): W3TC\Generic_AdminActions_Flush->flush(‘file_generic’) #1 /apps/webserver/
   mydomain.com/httpdocs/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.
   php(55): W3TC\Generic_AdminActions_Flush->flush_file() #2 /apps/webserver/mydomain.
   com/httpdocs/wp-content/plugins/w3-total-cache/Root_AdminActions.php(25): W3TC\
   Generic_AdminActions_Flush->w3tc_flush_file() #3 /apps/webserver/mydomain.com/
   httpdocs/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(159): W3TC\
   Root_AdminActions->execute(‘w3tc_flush_file’) #4 /apps/webserver/mydomain.com/
   httpdocs/wp-includes/class-wp-hook.php(298): W3TC\Generic_Plugin_Admin->load(”)#
   5 /apps/webserve” while reading response header from upstream, client: 79.27.50.75,
   server: mydomain.com, request: “POST /wp-admin/admin.php?page=w3tc_dashboard 
   HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “mydomain.
   com”, referrer: “[http://mydomain.com/wp-admin/admin.php?page=w3tc_dashboard&w3tc_note=flush_opcode&#8221](http://mydomain.com/wp-admin/admin.php?page=w3tc_dashboard&w3tc_note=flush_opcode&#8221);
   2016/12/26 22:02:12 [error] 11916#11916: *3 FastCGI sent in stderr: “PHP message:
   PHP Fatal error: Uncaught Error: Call to undefined method W3TC\Generic_AdminActions_Flush::
   flush_pgcache() in /apps/webserver/mydomain.com/httpdocs/wp-content/plugins/w3-
   total-cache/Generic_AdminActions_Flush.php:250 Stack trace: #0 /apps/webserver/
   mydomain.com/httpdocs/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.
   php(296): W3TC\Generic_AdminActions_Flush->flush(‘file’) #1 /apps/webserver/mydomain.
   com/httpdocs/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.php(
   55): W3TC\Generic_AdminActions_Flush->flush_file() #2 /apps/webserver/mydomain.
   com/httpdocs/wp-content/plugins/w3-total-cache/Root_AdminActions.php(25): W3TC\
   Generic_AdminActions_Flush->w3tc_flush_file() #3 /apps/webserver/mydomain.com/
   httpdocs/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(159): W3TC\
   Root_AdminActions->execute(‘w3tc_flush_file’) #4 /apps/webserver/mydomain.com/
   httpdocs/wp-includes/class-wp-hook.php(298): W3TC\Generic_Plugin_Admin->load(”)#
   5 /apps/webserver/gioias” while reading response header from upstream, client:
   79.27.50.75, server: mydomain.com, request: “POST /wp-admin/admin.php?page=w3tc_dashboard
   HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “mydomain.
   com”, referrer: “[http://mydomain.com/wp-admin/admin.php?page=w3tc_dashboard&#8221](http://mydomain.com/wp-admin/admin.php?page=w3tc_dashboard&#8221);
   2016/12/26 22:02:25 [error] 11916#11916: *3 FastCGI sent in stderr: “PHP message:
   PHP Fatal error: Uncaught Error: Call to undefined method W3TC\Generic_AdminActions_Flush::
   flush_pgcache() in /apps/webserver/mydomain.com/httpdocs/wp-content/plugins/w3-
   total-cache/Generic_AdminActions_Flush.php:250 Stack trace: #0 /apps/webserver/
   mydomain.com/httpdocs/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.
   php(296): W3TC\Generic_AdminActions_Flush->flush(‘file’) #1 /apps/webserver/mydomain.
   com/httpdocs/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.php(
   55): W3TC\Generic_AdminActions_Flush->flush_file() #2 /apps/webserver/mydomain.
   com/httpdocs/wp-content/plugins/w3-total-cache/Root_AdminActions.php(25): W3TC\
   Generic_AdminActions_Flush->w3tc_flush_file() #3 /apps/webserver/mydomain.com/
   httpdocs/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(159): W3TC\
   Root_AdminActions->execute(‘w3tc_flush_file’) #4 /apps/webserver/mydomain.com/
   httpdocs/wp-includes/class-wp-hook.php(298): W3TC\Generic_Plugin_Admin->load(”)#
   5 /apps/webserver/gioias” while reading response header from upstream, client:
   79.27.50.75, server: mydomain.com, request: “POST /wp-admin/admin.php?page=w3tc_dashboard
   HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “mydomain.
   com”, referrer: “[http://mydomain.com/wp-admin/admin.php?page=w3tc_dashboard&w3tc_note=flush_opcode&#8221](http://mydomain.com/wp-admin/admin.php?page=w3tc_dashboard&w3tc_note=flush_opcode&#8221);
 * Can you help me?
    Thanks!

Viewing 1 replies (of 1 total)

 *  [nigro.simone](https://wordpress.org/support/users/nigrosimone/)
 * (@nigrosimone)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-95/#post-8629509)
 * this issue is fixed into the community version of w3 total cache, see this PR:
   [https://github.com/szepeviktor/w3-total-cache-fixed/commit/f0416a6b22e0ebbb5ec922651d742e66ba67ffc8](https://github.com/szepeviktor/w3-total-cache-fixed/commit/f0416a6b22e0ebbb5ec922651d742e66ba67ffc8)

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nigro.simone](https://wordpress.org/support/users/nigrosimone/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-95/#post-8629509)
 * Status: not resolved