Jump to content

Problem about validateOrder function "Warning: touch(): Utime failed"


Recommended Posts

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

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.

post-741527-0-34586200-1430380011_thumb.jpg

Edited by selectshop.at (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...