Title: php error unlinking /tmp files
Last modified: August 24, 2016

---

# php error unlinking /tmp files

 *  [kech61](https://wordpress.org/support/users/kech61/)
 * (@kech61)
 * [11 years ago](https://wordpress.org/support/topic/php-error-unlinking-tmp-files/)
 * Hi I receive erors in the nginx logs:
 * ‘PHP message: WordPress-Da
    2015/05/27 07:26:43 [error] 1490#0: *35698 FastCGI
   sent in stderr: “PHP message: PHP Fatal error: Uncaught exception ‘RuntimeException’
   with message ‘SplFileInfo::getMTime(): stat failed for /var/www/vhosts/mydomain.
   org/httpdocs/wp-content/tmp/Shariff-e9/Shariff-09b1ec1391b536b215b6e729be920ac5.
   dat’ in /var/www/vhosts/mydomain.org/httpdocs/wp-content/plugins/shariff-sharing/
   backend/vendor/zendframework/zend-cache/Zend/Cache/Storage/Adapter/Filesystem.
   php:154 Stack trace: #0 /var/www/vhosts/mydomain.org/httpdocs/wp-content/plugins/
   shariff-sharing/backend/vendor/zendframework/zend-cache/Zend/Cache/Storage/Adapter/
   Filesystem.php(154): SplFileInfo->getMTime() #1 /var/www/vhosts/mydomain.org/
   httpdocs/wp-content/plugins/shariff-sharing/backend/src/Backend.php(41): Zend\
   Cache\Storage\Adapter\Filesystem->clearExpired() #2 /var/www/vhosts/mydomain.
   org/httpdocs/wp-content/plugins/shariff-sharing/backend/index.php(41): Heise\
   Shariff\Backend->__construct(Array) #3 /var/www/vhosts/mydomain.org/httpdocs/
   wp-content/plugins/shariff-sharing/backend/index.php” while reading response 
   header from upstream, client: 147.86.210.7, server: mydomain.org, request: “GET/
   wp-content/plugins/shariff-sharing/backend/index.php?url=http%3A%2F%2Fwww.mydomain.
   org%2Fdie-mydomain-zieht-um&temp=%2Fvar%2Fwww%2Fvhosts%2Fmydomain.org%2Fhttpdocs%
   2Fwp-content%2Ftmp&ttl=60&service=gftlx HTTP/1.1”, upstream: “fastcgi://unix:/
   var/www/vhosts/system/mydomain.org/php-fpm.sock:”, host: “www.mydomain.org”, 
   referrer: “[http://www.mydomain.org/”&#8216](http://www.mydomain.org/”&#8216);
 * The /tmp directory is 755 and the shariff-folders and files inside are created
   absolutely correct.
 * The plugin seems to work.
    Any idea what is going wrong?
 * Best regards, Christian
 * [https://wordpress.org/plugins/shariff-sharing/](https://wordpress.org/plugins/shariff-sharing/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [kech61](https://wordpress.org/support/users/kech61/)
 * (@kech61)
 * [11 years ago](https://wordpress.org/support/topic/php-error-unlinking-tmp-files/#post-6171110)
 * Solved:
 * The function “sys_get_temp_dir()” is causing problems on VPS-Servers with Plesk
   where the function returns [serverroot]/tmp.
 * So I replaced this function with “WP_CONTENT_DIR . ‘/tmp” – this solved the problem.
 * Best regards
    Christian

Viewing 1 replies (of 1 total)

The topic ‘php error unlinking /tmp files’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shariff-sharing_cccccc.svg)
 * [Shariff for Wordpress](https://wordpress.org/plugins/shariff-sharing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shariff-sharing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shariff-sharing/)
 * [Active Topics](https://wordpress.org/support/plugin/shariff-sharing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shariff-sharing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shariff-sharing/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [kech61](https://wordpress.org/support/users/kech61/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/php-error-unlinking-tmp-files/#post-6171110)
 * Status: not resolved