Forums / Bug Reports / BIG PROBLEM please help products not loading in categories with more than 1 product

BIG PROBLEM please help products not loading in categories with more than 1 product

Started by jwaynehinkle on 23 Sep 2013, 11:49 PM · Views: 1,273

Results 1 to 2 of 2
23 Sep 2013, 11:49 PM
#1
jwaynehinkle avatar

jwaynehinkle

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
73
Plugin Contributions:
0

BIG PROBLEM please help products not loading in categories with more than 1 product

I have been doing some site maintenance recently, 3 things as a matter of fact. The first thing I have done is add the google page speed module (all files were loaded above the root direcotry on my server and then this code was entered into the .htaccess to make it work.

<IfModule pagespeed_module>
   ModPagespeed on
   ModPagespeedEnableFilters add_head,combine_css,convert_meta_tags,convert_png_to_jpeg,extend_cache,fallback_rewrite_css_urls,flatten_css_imports,inline_css,inline_import_to_link,inline_javascript,rewrite_css,rewrite_images,rewrite_javascript,rewrite_style_attributes_with_url,combine_javascript
</IfModule>

Everything was working great and my pages were responding/rendering a lot faster than what they were.

second thing I did was rewrite my urls with "-" instead of "_" as recommended by google this code was added and all was working great except when trying to load .php pages in admin

RewriteRule !\.(html | php)$ - [S=6]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5-$6-$7 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5-$6 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_(.*)$ $1-$2-$3 [E=underscores:Yes]
RewriteRule ^([^_]*)_(.*)$ $1-$2 [E=underscores:Yes]
 
RewriteCond %{ENV:underscores} ^Yes$
RewriteRule (.*) http://www.bullysperformance.com/$1 [R=301,L] 

so I changed

[B]RewriteRule !\.(html | php)$ - [S=6][/B]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5-$6-$7 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5-$6 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_(.*)$ $1-$2-$3 [E=underscores:Yes]
RewriteRule ^([^_]*)_(.*)$ $1-$2 [E=underscores:Yes]
 
RewriteCond %{ENV:underscores} ^Yes$
RewriteRule (.*) http://www.bullysperformance.com/$1 [R=301,L] 

to this and all is working great I am excited!

[B]RewriteRule !\.(html)$ - [S=6][/B]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5-$6-$7 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5-$6 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4 [E=underscores:Yes]
RewriteRule ^([^_]*)_([^_]*)_(.*)$ $1-$2-$3 [E=underscores:Yes]
RewriteRule ^([^_]*)_(.*)$ $1-$2 [E=underscores:Yes]
 
RewriteCond %{ENV:underscores} ^Yes$
RewriteRule (.*) http://www.bullysperformance.com/$1 [R=301,L] 

no I decide ok so far so good lets try to install an image handler to help the site load even faster and reduce the amount of resources used by my server so I install Image Handler 4 and that is when everything goes down hill, it apears to be working good however when clicking on a category with more than 1 product in it, or sorting by manufacturer the page does not load, I have uninstalled Image Handler 4 however this did not fix it please help!

Here is my site with a category with just 1 product in it

http://bullysperformance.com/air-filters-431/3-5l-v6-426/ you'll notice it redirects to the product page since there is only 1 product

and here is a link to a category with multiple products

http://bullysperformance.com/manufacturers/aem-5/ none of the products load, nor does the footer?

can anyone please help it would be much apreciated!

Thanks
J

25 Sep 2013, 2:39 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: BIG PROBLEM please help products not loading in categories with more than 1 product

Trying to understand why this was filed as a Bug Report with Zen Cart.
It looks like a problem caused by your rewrite rules, not a ZC bug. Can you help me understand what I might be missing for this to be called a ZC bug?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.