Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Large Images ... 234 Responsive


Recommended Posts

I'm doing my development inhouse on a WinXP box running WAMP, and then moving the files to my host's server (running Linux).

 

I'm running into a problem trying to use multiple Large Images for my products.

 

-----------------------------------------------------------------------------------------------------------------------------

 

On my WinXP box ...

 

I create an product within a category, along with the Main Image. Product displays fine.

 

If I then add a couple of Large Images, the product Name, Tax Class, Price, Description, Quantity, ... all are deleted. The product is also flagged as 'Out of Stock'. The record still remains in the 'products' table.  There is no entry in the 'products_images' table.

 

I can re-enter the product information (without any Large Images), and it displays correctly.

 

If I add only one (1) Large Image, the Large Image displays when the product is shown (product_info.php). There is one entry in the 'products_images' table.

 

If I try to add an additional Large Image, it does not get saved. If I try to change the Large Image (browse to a new image) and click save, the old image filename remains in the database, and the new image filename is not saved.

 

--------------------------------------------------------------------------------------------------------------------------

 

Figuring that this may be a problem due to all of the mods I've done to my shop, I did a clean install of 234 Responsive Gold on the WinXP box. Same problems.

 

I have a Win7 box with WAMP on it. Did a clean install of 234 Responsive Gold. I do *not* have these problems.

 

I then tried adding multiple Large Images to my existing (modded) site on my host's server. I *am* having the same problems there that I am having on my WinXP box.

 

 

Host ... Linux ... Apache ... mySQL 5.5.42 ... PHP 5.2.17 ... FAIL

WinXP ... Apache 2.4.4(Win32) ... mySQL 5.6.12 ... PHP 5.4.16 ... FAIL

Win7 ... Apache 2.4.4(Win64) ... mySQL 5.6.12 ... PHP 5.4.12 ... Works

 

 

I have *not* tried to manually edit the database, as I really don't want to have to maintain my live store this way.

 

 

Any ideas ????

 

Malcolm

 

Link to comment
Share on other sites

*** Update ****

 

Using a suggestion from @@burt , I think I have solved this. The images I was testing were quite large (around 3000 x 2000 px)! By scaling the images down to around 500 x 330 px, the 'problem' went away.

 

I still don't know why the large images caused this problem. As I see it, osCommerce should only have saved the image filename into the database. So, unless osC was actually trying to load the multiple large images into memory, and the computer was running out of memory in the process, I can't see why this happened. Maybe someone that better understands how this module saved the large image information can assist here.

 

Anyway, I hope this is the end of this problem, and that this may help anyone else that may run into this.

 

Malcolm

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...