asdo Posted July 12, 2005 Share Posted July 12, 2005 I keep getting a server timeout when I delete a category. I've noticed that when I do this it deletes all the images associated with those products. To save time I've even deleted the images first but I think it still tries to do it. Is there any way to speed up the process of category deletion? I'm on a shared server so I can't increase the timeout. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2005 Share Posted July 12, 2005 it is more a shared server problem not oscommerce Link to comment Share on other sites More sharing options...
asdo Posted July 12, 2005 Author Share Posted July 12, 2005 Is there any way to optimize the code though to say not have it delete the image files. I could delete the image files myself and that would speed the process up as it would only have to delete the database entries... Link to comment Share on other sites More sharing options...
♥Vger Posted July 12, 2005 Share Posted July 12, 2005 It is the php execution time (usually 30 seconds) that is causing the time-outs - obviously the server is running very slow otherwise it would be more than enough time. Do a Google search on 'php max execution time' and it should come up with the answer that will allow you to increase the time for your domain via .htaccess. Vger Link to comment Share on other sites More sharing options...
dburchm1 Posted July 12, 2005 Share Posted July 12, 2005 I had the same problem on backup. I removed the line: tep_set_time_limit(0); And now it works Link to comment Share on other sites More sharing options...
asdo Posted July 13, 2005 Author Share Posted July 13, 2005 Thanks for all the advice... Those options aren't working for me unfortunately. It would be really ideal if I could just comment the parts out where it is deleting the associated image files on my server. I'd like it to just remove the database entries so if anyone knows the code in categories.php to comment out so that it doesn't delete the files I would really appreciate it. I spent a lot of time looking at it myself but I can't figure it out. Thanks in advance. Link to comment Share on other sites More sharing options...
Guest Posted July 13, 2005 Share Posted July 13, 2005 why not delete the images ahead of time? or change hosts . . . Link to comment Share on other sites More sharing options...
asdo Posted July 13, 2005 Author Share Posted July 13, 2005 Well I've actually deleted the images first however this doesn't seem to help unless I delete them from the admin page one by one... I'd prefer not to change hosts... I would really love to just comment out the part in categories.php that deletes the actual file. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.