Title: undefined function W3TC\getmypid()
Last modified: February 2, 2024

---

# undefined function W3TC\getmypid()

 *  Resolved [moeclone](https://wordpress.org/support/users/moeclone/)
 * (@moeclone)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-function-w3tcgetmypid/)
 * Hello, please tell me why this error occurs?
   FastCGI sent in stderr: “PHP message:
   PHP Fatal error: Uncaught Error: Call to undefined function W3TC\getmypid() in……./
   wp-content/plugins/w3-total-cache/Cache_File_Generic.php:51

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-function-w3tcgetmypid/#post-17394166)
 * Hello [@moeclone](https://wordpress.org/support/users/moeclone/)
 * Thank you for reaching out and I am happy to help!
   Can you please share when 
   you started to see this php message, and also, have you made any changes in your
   environment or the plugin settings before you started seeing this?
 * Thanks!
 *  Thread Starter [moeclone](https://wordpress.org/support/users/moeclone/)
 * (@moeclone)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-function-w3tcgetmypid/#post-17394186)
 * Hello, [@vmarko](https://wordpress.org/support/users/vmarko/), no changes were
   made. Today I looked at the log and saw that the same error appears on all pages
   when opening them.
 * P.S.Another fact is that all pages have cache (x-cache: HIT) and on the product
   page x-cache: MISS
    -  This reply was modified 2 years, 4 months ago by [moeclone](https://wordpress.org/support/users/moeclone/).
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-function-w3tcgetmypid/#post-17394493)
 * Hello [@moeclone](https://wordpress.org/support/users/moeclone/)
 * Thank you for your feedback.
   Not all hosting configurations allow the function
   getmypid().  It can be checked if the function is available or not by looking
   at “disable_functions” in the PHP configuration. If you are unsure about this
   please check with your hosting provider.
 * As for the  (x-cache: HIT) this is not a W3 Total Cache header, and this means
   that you have another layer of caching, most likely some server side caching 
   is active.
 * Thanks!
 *  Thread Starter [moeclone](https://wordpress.org/support/users/moeclone/)
 * (@moeclone)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-function-w3tcgetmypid/#post-17394570)
 * PHP does not enforce explicit restrictions on the use of certain functions
   from
   php -i
 *  [izeepengeurboetiek](https://wordpress.org/support/users/izeepengeurboetiek/)
 * (@izeepengeurboetiek)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-function-w3tcgetmypid/#post-17394611)
 * hello i have the same problem and can not come in my admin… below the error message:
 * /home/strato/http/premium/rid/14/90/510621490/htdocs/WordPress_SecureMode_01/
   wp-cron.php
   02.02.2024 16:52:59 zeepengeurboetiek.nl [client 3.237.48.0] PHP 
   Warning: file_get_contents(/mnt/web517/d1/90/510621490/htdocs/STRATO-apps/wordpress_09/
   app/wp-content/plugins/w3-total-cache/w3-total-cache.php): Failed to open stream:
   No such file or directory in /mnt/web517/d1/90/510621490/htdocs/STRATO-apps/wordpress_09/
   app/wp-includes/functions.php on line 680502.02.2024 16:53:10 zeepengeurboetiek.
   nl [client 3.237.48.0] PHP Warning: file_get_contents(/mnt/web517/d1/90/510621490/
   htdocs/STRATO-apps/wordpress_09/app/wp-content/plugins/w3-total-cache/w3-total-
   cache.php): Failed to open stream: No such file or directory in /mnt/web517/d1/
   90/510621490/htdocs/STRATO-apps/wordpress_09/app/wp-includes/functions.php on
   line 680502.02.2024 16:54:16 zeepengeurboetiek.nl [client 3.237.48.0] PHP Warning:
   file_get_contents(/mnt/web517/d1/90/510621490/htdocs/STRATO-apps/wordpress_09/
   app/wp-content/plugins/w3-total-cache/w3-total-cache.php): Failed to open stream:
   No such file or directory in /mnt/web517/d1/90/510621490/htdocs/STRATO-apps/wordpress_09/
   app/wp-includes/functions.php on line 680502.02.2024 16:55:24 zeepengeurboetiek.
   nl [client 3.237.48.0] PHP Warning: file_get_contents(/mnt/web517/d1/90/510621490/
   htdocs/STRATO-apps/wordpress_09/app/wp-content/plugins/w3-total-cache/w3-total-
   cache.php): Failed to open stream: No such file or directory in /mnt/web517/d1/
   90/510621490/htdocs/STRATO-apps/wordpress_09/app/wp-includes/functions.php on
   line 680502.02.2024 16:56:09 zeepengeurboetiek.nl [client 2a01:238:200::] End
   of script output before headers: wp-cron.php02.02.2024 16:56:09 zeepengeurboetiek.
   nl [client 2a01:238:200::] End of script output before headers: wp-cron.php02.02.2024
   16:56:09 zeepengeurboetiek.nl [client 2a01:238:200::] End of script output before
   headers: wp-cron.php02.02.2024 16:56:09 zeepengeurboetiek.nl [client 2a01:238:
   200::] End of script output before headers: wp-cron.php02.02.2024 16:56:09 zeepengeurboetiek.
   nl [client 2a01:238:200::] End of script output before headers: wp-cron.php02.02.2024
   16:56:10 zeepengeurboetiek.nl [client 2a01:238:200::] End of script output before
   headers: wp-cron.php02.02.2024 16:56:10 zeepengeurboetiek.nl [client 2a01:238:
   200::] End of script output before headers: wp-cron.php02.02.2024 16:56:10 zeepengeurboetiek.
   nl [client 2a01:238:200::] End of script output before headers: wp-cron.php02.02.2024
   16:56:10 zeepengeurboetiek.nl [client 2a01:238:200::] End of script output before
   headers: wp-cron.php02.02.2024 16:56:10 zeepengeurboetiek.nl [client 2a01:238:
   200::] End of script output before headers: wp-cron.php

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

The topic ‘undefined function W3TC\getmypid()’ 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/)

## Tags

 * [W3TC](https://wordpress.org/support/topic-tag/w3tc/)

 * 5 replies
 * 3 participants
 * Last reply from: [izeepengeurboetiek](https://wordpress.org/support/users/izeepengeurboetiek/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-function-w3tcgetmypid/#post-17394611)
 * Status: resolved