micso Posted October 22, 2013 Share Posted October 22, 2013 I have upgraded to 5.2.4 now if I try and print an order I get this error message A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again. If someone could tell me what permissions to alter. Regards Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 22, 2013 Share Posted October 22, 2013 (I think) CubeCart will try to save a file to the /files/ folder. This is a very temporary file. The /files/ folder requires the same permissions as the /images/cache/ folder (755, or in some cases, 775). (On a Windows server, it is much more complicated but usually not a problem.) Quote Link to comment Share on other sites More sharing options...
micso Posted October 22, 2013 Author Share Posted October 22, 2013 I made the directory and all the files from 755 to 777, cleared the caches but the problem is still there it is a linux server. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 22, 2013 Share Posted October 22, 2013 The name of the file that gets saved into the /files/ folder is of this pattern: print.hash-of-characters.php I don't find the phrase "A file permissions error has occurred." in CubeCart's language file. This error must be coming from outside of CubeCart. Is this the complete error message? If it is, then it is not PHP issuing the error. It must be coming from a server operating system security mod/plug-in. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 22, 2013 Share Posted October 22, 2013 Also contact your hosting provider and verify if the files that get put in this folder, and the folder, belong to the correct "user". If you are on a server that runs suPHP, you can't flag anything 777, the highest you can go is 755. The nice, lucid error message that you got is not the normal reaction to this problem. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 22, 2013 Share Posted October 22, 2013 Hi What hosting company are you with ? Is this a new hosting account or one you have used for a while or for other applications ? This is quite a common hosting / php / permissions problem with some hosting companies Thanks Ian Quote Link to comment Share on other sites More sharing options...
micso Posted October 22, 2013 Author Share Posted October 22, 2013 It worked fine before the upgrade and this is the full error message A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again. Pity it doesnt say what script. I have always been able to set 777 I use heart internet and it is PHP 5.3 Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 22, 2013 Share Posted October 22, 2013 This is common with Heart Internet especially if you are using multiple domain names on a single hosting account and confusing which is the primary domain. Nothing to do with CubeCart and is seen by users on Heart with lots of different applications Thanks Ian Quote Link to comment Share on other sites More sharing options...
micso Posted October 23, 2013 Author Share Posted October 23, 2013 Thanks for all the help and pointing me in the right direction. I have now resolved this and methodically gone through permissions and clearing the cache each time and it now works. Regards Mick Quote Link to comment Share on other sites More sharing options...
convict Posted October 23, 2013 Share Posted October 23, 2013 I bet error mesage A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again. appears on a white page.It is not CubeCart message as 'bsmither' already mentioned but web server one. It is common when a php file has improper permissions set 755 in most of cases. 644 is files common permission. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.