X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   image.php and/or product_image.php unreliable sometimes? (https://forum.x-cart.com/showthread.php?t=28721)

jason sherwin 02-09-2007 08:55 AM

image.php and/or product_image.php unreliable sometimes?
 
Hello Everybody,

This is my first time on the x-cart forums and I have been searching the threads and unable to find anyone that has had a similar problem.

Here's the problem: When calling on image.php to get images from the filesystem (e.g. somethin like: <IMG src="http://www.greenhouserideshop.com/dev/image.php?productid={$product_links[cat_num].productid}" >) I sometimes experience a major failure in getting the images...Sometimes even a 404 redirect where the entire page becomes corrupted. This issue only occurs when getting alot of images, typically 10 or more a page. If I'm only getting a small amount - no problems.

Originally when I started to experience this problem we thought it was due to the images being in the database, but the filesystem sees the same issue.

Other problems with getting images have arisen as well such as when trying to implement cody lindley's thickbox jquery pop up windows - which spit back an unparsed string of image "metadata" instead on an image.

Anyways...

I'm just wondering if anyone has addressed this previously on the forum and if so please link me!

Thanks,

balinor 02-09-2007 09:37 AM

Re: image.php and/or product_image.php unreliable sometimes?
 
Can you elaborate on 'corrupted'? Does it spit out an error or do the images just not get called? You should DEFINITELY have your images in the filesystem. Did this problem occur before you installed Thickbox?

jason sherwin 02-09-2007 10:08 AM

Re: image.php and/or product_image.php unreliable sometimes?
 
when the page is populated initially the images are all shown.
when the page is reloaded some of the images show up as blank objects.
when the page is reloaded again I get a 404 and must wait awhile or clear the browser cache to be able to start the process over again.

it's really weird. I don't get any errors. I first noticed this problem with a "recent products" add on module that I got from cartmods.com (http://www.greenhouserideshop.com/shop/recent_products.php). I slimmed it down to only 6 images and it seems to be pretty stable. The adaption with only 3 images on the hompage (http://www.greenhouserideshop.com/shop/home.php) is super solid. If I change the amount of images gathered to 9-12 a page - everything goes haywire as explained above.

Note: I had the same issue with previous version of x-cart gold.

jason sherwin 02-09-2007 10:09 AM

Re: image.php and/or product_image.php unreliable sometimes?
 
Oh and this was an issue long before I ever tried to implement thickbox.

inebriate 02-09-2007 12:28 PM

Re: image.php and/or product_image.php unreliable sometimes?
 
ive been having the same problem and the only major changes i can think of is that i added php accelerator...are you using it as well? i suppose i could just comment out the extension in the php config to test, but i have other priorities

jason sherwin 02-09-2007 03:09 PM

Re: image.php and/or product_image.php unreliable sometimes?
 
nope, not using php accelerator so we can rule out that variable.

inebriate 02-09-2007 03:14 PM

Re: image.php and/or product_image.php unreliable sometimes?
 
About the time when the problems started to arise for me, I had updated to php 4.4.4, which I see that you use as well...i also use gdlib functions in my image.php which could be slowing it down a bit, but wouldnt explain the 404 error since php is not saying that it is timing out


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.