Caching error

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Tanoshi
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Sep 15, 2015 6:00 am

Caching error

Post by Tanoshi »

Okay so i recently updated a script im using for a gmod donation system and its now getting some kind of cache error or something im not familliar with and i have no idea what to do to fix it....

the error: Fatal error: Uncaught exception 'Exception' with message 'Sorry, Please create /tmp/auto/ and SET Mode 0777 or any Writable Permission!' in /usr/www/poe/public/donate/cache/phpfastcache.php:757 Stack trace: #0 /usr/www/poe/public/donate/cache/phpfastcache.php(488): phpFastCache->getPath() #1 /usr/www/poe/public/donate/cache/phpfastcache.php(452): phpFastCache->autoDriver() #2 /usr/www/poe/public/donate/cache/phpfastcache.php(22): phpFastCache->__construct('', Array) #3 /usr/www/poe/public/donate/inc/functions.php(160): phpFastCache() #4 /usr/www/poe/public/donate/index.php(9): include('/usr/www/poe/pu...') #5 {main} thrown in /usr/www/poe/public/donate/cache/phpfastcache.php on line 757
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Caching error

Post by Edge100x »

It looks like it's trying to use a specific world-accessible temporary folder in an unsafe way. You should find the place in the code that specifies /tmp/auto and change it to use a temporary folder within your directory structure (/usr/www/yourusername/somethinghere) instead. Make sure that the folder you choose has been created, chmod'ed to 700, and isn't publicly-accessible (e.g., not somewhere downstream of "public").
Post Reply