| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Desperate! cleanup.php - major problems | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I just ran cleanup.php after continuously getting an error on the check payment page (the template which was complaining was the default one which has not been edited) and then chmod'ed the templates_c folder to 777. Now, returning to my site, the image for each product is replaced with the error: Warning: mkdir(../templates_c/%%-11/%%-1144720443): Permission denied in /<root folder>/<webstore folder>/Smarty-2.3.0/Smarty.class.php on line 1617 and any attempt to visit the administration area of the site results in just a blank white page. Does anybody know what the problem may be? Thanks in advance. Richard |
|||||||
#2
|
|||||||
|
|||||||
![]() you're templates_c folder has the wrong permissions on it.
I think it should be 777 (from what the folders x-cart creates upon installation are) I could be wrong on the 777 though.
__________________
Mod King |
|||||||
#3
|
|||||||
|
|||||||
![]() ls -l show me the permissions are: drwxrwxrwx
Do you know what this should read? Thanks |
|||||||
#4
|
|||||||
|
|||||||
![]() Try 755
Depending on the server set up, if you CHMOD a dir to 777 you'll get permission denied errors.
__________________
Emerson █ Total Server Solutions LLC- Quality X-Cart Hosting █ Recommended X-Cart Hosting Provider - US and UK servers █ Does your host backup your site? We do EVERY HOUR!!! █ Shared Hosting | Managed Cloud | Dedicated Servers |
|||||||
#5
|
|||||||
|
|||||||
![]() 'chmod 777 templates_c' doesn't throw any errors, but attempting a recursive one, 'chmod -R 777 templates_c' does, as does 'chmod -R 755 templates_c'. Also, chmod 755 does not have any effect on the error.
Looking further at the error, it's saying it can't create the folder in a subfolder of templates_c. templates_c has 777 permissions. Subfolders, however, do not. Obviously the web user does not have access to create these required sub folders. But if a recursive chmod won't work, any ideas how I might apply chmod to all folders in the templates_c folder? Cheers, Richard |
|||||||
#6
|
|||||||
|
|||||||
![]() Emergency over! I changed the compile_dir attribute in smarty.php to be a new folder and it all works ok now.
Thanks for the suggestions everyone. I can now relax and avoid the wrath of my boss! Cheers, Richard |
|||||||
|
|||
X-Cart forums © 2001-2020
|