wei.buyithere Posted April 30, 2015 Share Posted April 30, 2015 My problem is: I write a new payment module and controller. When my controller execute validateOrder function, there comes the warning "Warning: touch() [function.touch]: Utime failed: Permission denied in /raid/vhost/moxbii.com/www/prestashop/classes/Tools.php on line 3139" I can not figure out which file's permission I need to change. My prestashp version is 6.0.14, without using cache and smarty cache. I have search forum post to find the solution, but I failed. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 30, 2015 Share Posted April 30, 2015 (edited) Unless you are not the server administrator you cannot change the permissions, as it is a not correct configured thing on your server. The run permissions for the server file named 'touch' are not set correctly. Assuming this is your server, find 'touch' and chmod it to 755. You need to set the appropriate permissions for that file in order for PHP to be able to run it. sudo chmod 755 /bin/touch Moreover configure your smarty cache according to standards. Don't make changes there unless you are not developing. For production you should have the smarty always configured as on the screen attached. Edited April 30, 2015 by selectshop.at (see edit history) 1 Link to comment Share on other sites More sharing options...
wei.buyithere Posted May 2, 2015 Author Share Posted May 2, 2015 I have solved the problem.The two files "activity" and "trends" in /cache/push could not be writable by server. I change their permission to 777 and there is no more warning.touch() is a function, not a file. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2015 Share Posted May 3, 2015 touch() is a function, not a file. Yeah, each function has also a folder and files behind it for to get to work Link to comment Share on other sites More sharing options...
wei.buyithere Posted May 5, 2015 Author Share Posted May 5, 2015 (edited) Ok, thanks for your reply. I use web hosting service so I can not manage the server. I want ask one more question.What the utility of these files "trend" and "activity" in /cache/push folder.Their file size always 0 kb in my site. Edited May 5, 2015 by wei.buyithere (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts