Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pictures disappearing and/or looking weird


loucappozzoli

Recommended Posts

Been messing around with OSCommerce and am starting to get extremely frustrated with this particular issue.

 

Sometimes when making a change in the admin section, my pictures will disappear or look like they're becoming corrupted. Removing and reinstalling the images sometimes helps, restoring a backup does not. This sometimes occurs when I upload files through FTP as well. The images are where they're supposed to be according to the code yet the site shows them as missing, or worse, just shows a picture sized mess of random colors like the image is trying to load and not loading fully.

 

Information:

OSCommerce 2.3.3

installed through Go Daddy

webhosting Go Daddy

htaccess/htpassword done in admin section

 

 

Stuff I've tried

clearing cache cookies ect in browsers (no help and issue occurs in firefox IE chrome)

deleting all images via FTP and reloading through admin panel (works most of the time)

tried making images the same size called for (in admin changed all image sizes to 120 and then uploaded all 120 x 120 pictures) no help

uninstalled Oscommerce and reinstalled (Fixes for a little while)

sacrificing a live goat (didn't work)

 

Stuff I've noticed

I've had it happen almost immediately after installing a fresh oscommerce and uploading a logo. Opened the site, and logo showed up. Went to admin panel and start entering details, reloaded the site, logo missing.

It happens randomly with addons but not every time i use and addon. I loaded up the Call for Price addon, no problems. everything looked good. backed up the site and database so I'd have a starting point today to add Add to Cart for Pricing addon. Loaded the addon and it didn't work correctly and screwed up the Call for Price addon. Found the error, so reuploaded the backup site via FTP, restored the database through admin. All images missing or corrupted looking.

I can't narrow it down to one particular file being uploaded or change being made in the admin section. I can literally do a fresh install, upload a store logo, then just go to my store and start editing information and have the pictures go haywire, or I can do a fresh install, upload everything add a bunch of addons backing up and saving as I go, then restore a file from my backup to correct a mistake and have everything go haywire. There doesn't seem to be any rhyme or reason.

 

Anyone have any ideas? Thanks in advance!

Link to comment
Share on other sites

try another webhost ?

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Confirm that you aren't FTPing your image files in "ASCII" (text) mode. That will corrupt them for sure. Most FTP clients know enough under "automatic" mode selection to look at the file types (.jpg, .gif, etc.) and know that they need "binary" mode.

Link to comment
Share on other sites

If you ever transferred (FTP'd) an image file in ASCII mode, it's permanently ruined. You can't fix the damage by switching to binary NOW. Too late.

 

Call up the image directly on your browser (URL of the images directory, and the file name). If it's trashed there, you're out of luck. I hope you have a good backup somewhere.

 

I presume that you're on a typical setup: Windows PC and Linux server. If you're transferring Windows to Windows or Linux to Linux, binary is the same as ASCII.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...