Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2013
    Location
    United States
    Posts
    73
    Plugin Contributions
    0

    red flag 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.

    Code:
    <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

    Code:
    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

    Code:
    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]
    to this and all is working great I am excited!

    Code:
    RewriteRule !\.(html)$ - [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]
    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-fil...1/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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    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.

 

 

Similar Threads

  1. v139h Can no longer load more than 3 product photos...help please!!!
    By closet88 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 4 Feb 2013, 12:04 PM
  2. Help with loading products, please
    By Kryspen in forum General Questions
    Replies: 0
    Last Post: 24 May 2010, 05:28 PM
  3. Please help with zen cart main page there is a big problem
    By laurieudy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Nov 2007, 04:58 AM
  4. Please help! Big problem with attributes controller!
    By pidotcr in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 Sep 2007, 05:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg