Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Server timeout on category delete


asdo

Recommended Posts

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...