Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2006
    Location
    Baltimore
    Posts
    42
    Plugin Contributions
    0

    link problem Strange Bug with Category cPath link

    I just noticed this... from an item page on my site, the Category Title links to a blank/broken page that ends with "cPath="

    Step by step:
    Go to a product such as:
    http://www.kaylala.com/index.php?mai...products_id=33

    then click on the category "Face" just above the product image

    and you'll get this lovely page:
    http://www.kaylala.com/index.php?main_page=index&cPath=

    Obviously, the big carousel is being pulled from the AlgoZone template that I'm using, but I'm almost certain that this was a recent problem after updating Zen Cart to 1.3.9h (I had been in the 1.3.9 range for sometime without problems)

    I could be completely wrong, but I'm almost positive this is a recent bug.

    Any thoughts on how to fix it?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Strange Bug with Category cPath link

    The template code is heavily modified, so I would compare the tpl_product_info_display.php code with the code in the /template_default/ version of the file to see if there is any difference in the category icon part.

    Then I would check if there are any files involved in that part of the page listed in recent ZC changelogs.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Strange Bug with Category cPath link

    Edit the file:
    /includes/modules/category_icon_display.php

    and change the code from:
    Code:
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    if ($cPath == '') {
      $cPath= zen_get_product_path((int)$_GET['products_id']);
    }
    Code:
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    if ($cPath == '' || $cPath == 0) {
      $cPath= zen_get_product_path((int)$_GET['products_id']);
    }
    if (!isset($_GET['cPath']) || $_GET['cPath'] == '') $_GET['cPath'] = $cPath;
    
    $cPath_new = zen_get_path(zen_get_products_category_id((int)$_GET['products_id']));
    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!

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Strange Bug with Category cPath link

    That has been that way a long time (v1.3.9h copy)

    * @version $Id: category_icon_display.php 6104 2007-04-01 14:54:40Z ajeh $

    Odd that nobody has mentioned it before. Maybe that indicates how often that link is used:)
    Or how rare the specific trigger is.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Strange Bug with Category cPath link

    The product listing code in your template appears to have been pretty much completely reworked by Algozone, and all links to product info pages look like

    [yoursite]/index.php?main_page=product_info&products_id=40

    where the stock template looks like

    [yoursite]/index.php?main_page=product_info&cPath=21&products_id=28

  6. #6
    Join Date
    Apr 2006
    Location
    Baltimore
    Posts
    42
    Plugin Contributions
    0

    Default Re: Strange Bug with Category cPath link

    Ahhh... I see... wow, you both just saved me hours of headache by helping to identify the problem! Thanks!

  7. #7
    Join Date
    Apr 2006
    Location
    Baltimore
    Posts
    42
    Plugin Contributions
    0

    Default Re: Strange Bug with Category cPath link

    BTW, Glenn, are you enjoying the snow you guys are getting up there??

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Strange Bug with Category cPath link

    I would suggest you ask Algozone to fix this problem, as it is definitely a functional bug in their template.


    No snow here today - we've had bits previously, but not much. My girlfriend lives an hour northeast of me and has had 3" of snow a couple of times.

  9. #9
    Join Date
    Apr 2006
    Location
    Baltimore
    Posts
    42
    Plugin Contributions
    0

    Default Re: Strange Bug with Category cPath link

    I'm actually going to get rid of the AlgoZone template altogether, this is not the first problem I've had (enabling Reviews broke the formatting too). I've just downloaded a ZenFlavor template, which appears to be a lot more compliant with the core functions of Zen Cart and isn't nearly as expensive as the AlgoZone template was... I'll chalk up my use of AlgoZone as a learning experience.

 

 

Similar Threads

  1. v150 Strange bug with table rate clone addon
    By maniacXD in forum Addon Shipping Modules
    Replies: 4
    Last Post: 9 Jun 2012, 02:34 PM
  2. Category Images displayed in link /index.php?=index&cPath=0
    By shadowd in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Feb 2010, 09:16 PM
  3. Cpath error - PCI compliance (bug in SSU addon)
    By jorsara in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 14 Nov 2009, 05:48 PM
  4. Product info with no cPath causes link problems
    By srturner47 in forum Bug Reports
    Replies: 7
    Last Post: 12 Jul 2009, 09:39 AM
  5. Strange cpath= value in access logs
    By jwitt98 in forum General Questions
    Replies: 4
    Last Post: 10 May 2009, 05:31 AM

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