Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Desperate! cleanup.php - major problems

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-20-2004, 06:02 AM
 
richard_o richard_o is offline
 

Member
  
Join Date: Apr 2004
Posts: 24
 

Default Desperate! cleanup.php - major problems

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
Reply With Quote
  #2  
Old 05-20-2004, 06:05 AM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

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
Reply With Quote
  #3  
Old 05-20-2004, 06:06 AM
 
richard_o richard_o is offline
 

Member
  
Join Date: Apr 2004
Posts: 24
 

Default

ls -l show me the permissions are: drwxrwxrwx

Do you know what this should read?

Thanks
Reply With Quote
  #4  
Old 05-20-2004, 06:16 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

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
Reply With Quote
  #5  
Old 05-20-2004, 06:28 AM
 
richard_o richard_o is offline
 

Member
  
Join Date: Apr 2004
Posts: 24
 

Default

'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
Reply With Quote
  #6  
Old 05-20-2004, 06:56 AM
 
richard_o richard_o is offline
 

Member
  
Join Date: Apr 2004
Posts: 24
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:44 AM.

   

 
X-Cart forums © 2001-2020