Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / strange problem blanks part of the shop page ... need help!

strange problem blanks part of the shop page ... need help!

Locked

Started by surfmueller on 5 May 2009, 9:48 PM · Views: 2,114

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
5 May 2009, 9:48 PM
#1
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

strange problem blanks part of the shop page ... need help!

Hi, I have a very strange problem on my online-shop (Zen Cart 1.3.8a). It has been running fine for a while but now I get this problem:

After adding a new product, the whole category that contains this product does not show any products. Being more precise, the shop-page is blank right after the categories header, i.e. the shop-header and the left column is in place, but the main page and the right column is blank. you can see it here: http://water-sports.de/index.php?main_page=index&cPath=68_262

I turned on the on-site debug-mode, but there are no error messages. then I checked the cache folder for debug messages and apparently there are some issues when adding new products with the image handler, cause it shows the error: PHP Warning: ereg_replace() [<a href='function.ereg-replace'>function.ereg-replace</a>]: REG_EMPTY in /www/htdocs/xxxxx/includes/modules/additional_images.php on line 46

the strange thing is: I have not changed any code, and the server has not been changed either. any ideas? I appreciate your help!

thanks!

5 May 2009, 11:03 PM
#2
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

The page of which you provided the link is indeed blanked out from where I sit (using Firefox 3).

My suggestion is to start with HTML validation, eliminating all errors.

I ran HTML validation on one of your pages and noticed 188 errors and 106 warnings. This could spell trouble...

Once your pages are error-free (properly closed div, form, etc.), it make sense to explore elsewhere (if the problem still exists).

6 May 2009, 9:14 AM
#4
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

soba:

try this topic

[
https://www.zen-cart.com/tutorials/index.php?article=82](https://www.zen-cart.com/tutorials/index.php?article=82)

thanks for the link, tried that already. the weird thing is, that this problem only occurs with some products (and categories that contain them), therefore i cannot imagine it being caused because of invalid html, either.

whenever i remove the product image, it works

any further ideas?
Posted via Mobile Device

19 May 2009, 3:07 PM
#5
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

I checked the debug logs again, and the only thing thats in there is: PHP Warning: ereg_replace() [<a href='function.ereg-replace'>function.ereg-replace</a>]: REG_EMPTY in /www/htdocs/xxxxxx/shop/includes/modules/additional_images.php on line 46

but there is not only one entry but hundreds (with the same time stamp).

I really have no clue at all what the problem is. any suggestions?

thanks!

21 May 2009, 12:57 PM
#6
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

no clues anybody? or is the problem not understandable?

24 May 2009, 2:04 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: strange problem blanks part of the shop page ... need help!

This is most likely something in 2 of your Products ...

Go to this URL:
index.php?main_page=product_info&cPath=68_262&products_id=1863

Notice how that Category works on that products_id?

Click the Next button ...

Notice how things still work?

Click the Next button ... boom! :eek:

Page is broken ... something on that product is breaking things ...

NOTE: don't get too excited yet ... products_id 1865 and 1866 appear to both be broken ...

Most likely something in the Description is bad ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 May 2009, 7:31 PM
#8
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

surfmueller:

thanks for the link, tried that already. the weird thing is, that this problem only occurs with some products (and categories that contain them), therefore i cannot imagine it being caused because of invalid html, either.

whenever i remove the product image, it works

any further ideas?
Posted via Mobile Device

What size (kb) is the image?
You are using IH so it could be that IH (really GD libraries or ImageMagick) is timing out and creating a corrupt file.
Also having spaces in the file name and mixing JPG, jpg, PNG, png can cause issues.
A corrupt image will stop the page from loading.

3 Jun 2009, 2:38 PM
#9
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

thanks for you help... I tried the following (particular on product_id 1865):

  • deleted the product description
  • checked the image size (12KB)
  • checked the filename for spaces etc. (rtp.jpg)
  • used another product image that works with another product.

but it has all not changed a thing. The page is still partly blank. I start thinking that this might be some sort of bigger problem. again, your help is appreciated. i am totally clueless!
thanks

4 Jun 2009, 1:19 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: strange problem blanks part of the shop page ... need help!

If you could grab the Debug Tool in the Free Software Add Ons ... it will probably help point out the problem on this ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Jun 2009, 9:25 AM
#11
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

thanks for your advice. tried that and there are only warnings in the log:

PHP Warning: ereg_replace() : REG_EMPTY in /www/htdocs/xxxxx/includes/modules/additional_images.php on line 46

any ideas?

5 Jun 2009, 5:37 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: strange problem blanks part of the shop page ... need help!

Are you using quote marks, spaces or other characters outside of letters and numbers in your image filenames? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Jun 2009, 3:10 PM
#13
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

Ajeh:

Are you using quote marks, spaces or other characters outside of letters and numbers in your image filenames? :unsure:

no. one of the products that has the problem has rtp.jpg as image filename. so there is only letters in the filename.

12 Jun 2009, 1:55 PM
#14
surfmueller avatar

surfmueller

New Zenner

Join Date:
Jan 2005
Posts:
41
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

as an update... I am definite that Image Handler 2.0 is causing the problems I experience. When I turn IH off, the pages load properly. Still, I need IH because I am not aware of any other solution that resizes images on the fly when adding new products in zen cart, or is there one?

12 Jun 2009, 3:01 PM
#15
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

Are you using " " ' in the product name/title?
If so try removing " " '

12 Jun 2009, 5:26 PM
#16
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: strange problem blanks part of the shop page ... need help!

If you delete the problem products and start again from scratch with a fresh new product.... Surely that cures the problem?

Or, is it happening with all new products?