Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

image.php and/or product_image.php unreliable sometimes?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-09-2007, 08:55 AM
 
jason sherwin jason sherwin is offline
 

Member
  
Join Date: Feb 2007
Posts: 18
 

Default 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,
__________________
X-Cart 4.0.19-gold_upgrade
PHP 5.2.3
MySQL 5.0.16
Reply With Quote
  #2  
Old 02-09-2007, 09:37 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-09-2007, 10:08 AM
 
jason sherwin jason sherwin is offline
 

Member
  
Join Date: Feb 2007
Posts: 18
 

Default 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.
__________________
X-Cart 4.0.19-gold_upgrade
PHP 5.2.3
MySQL 5.0.16
Reply With Quote
  #4  
Old 02-09-2007, 10:09 AM
 
jason sherwin jason sherwin is offline
 

Member
  
Join Date: Feb 2007
Posts: 18
 

Default Re: image.php and/or product_image.php unreliable sometimes?

Oh and this was an issue long before I ever tried to implement thickbox.
__________________
X-Cart 4.0.19-gold_upgrade
PHP 5.2.3
MySQL 5.0.16
Reply With Quote
  #5  
Old 02-09-2007, 12:28 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #6  
Old 02-09-2007, 03:09 PM
 
jason sherwin jason sherwin is offline
 

Member
  
Join Date: Feb 2007
Posts: 18
 

Default Re: image.php and/or product_image.php unreliable sometimes?

nope, not using php accelerator so we can rule out that variable.
__________________
X-Cart 4.0.19-gold_upgrade
PHP 5.2.3
MySQL 5.0.16
Reply With Quote
  #7  
Old 02-09-2007, 03:14 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020