Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Feb 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Function_Catagories.php myDebug errors

    I compared files, everything I can tell is fine. It's from an add on, and it's from a page added, since the original install doesn't have a file to compare it to I don't know which file added is causing the problem.

    My main page doesn't cause an error, when you are at the items page you don't get the error, now when I go to the catagory page that lists all the items in that catagory, I get the error, I noticed in the section that says "New Products For February - CATAGORY" The word catgory is from the wrong catagory I am in.

    Which files create the New product areas and that listing page?

  2. #12
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,961
    Plugin Contributions
    25

    Default Re: Function_Catagories.php myDebug errors

    Do you know what addon mods are installed on your site? You should. If not, what functions related to categories are different in Classic and in your custom template? Do you get the category name error in Classic? That would indicate a mod erroneously installed in /template_default/, or a corrupted file.

  3. #13
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,340
    Plugin Contributions
    55

    Default Re: Function_Catagories.php myDebug errors

    I'm finding this same issue sporadically across Zen Cart sites ranging from 1.3.8a to 1.3.9h. The site with 1.3.9h only has Fast and Easy AJAX Checkout installed.

    A band-aid solution may be to add something like this before the problematic line in functions_categories.php:

    PHP Code:
    if (is_array($categories_id)) $categories_id implode('_'$categories_id); 
    This assumes that if $categories_id is an array, then it's an array of category ids.

  4. #14
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Function_Catagories.php myDebug errors

    Possibly.

    It would be useful to know what specific "clicks" trigger the error so we can trace back the cause of invalid data being submitted to the function.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 41
    Last Post: 19 Sep 2012, 04:04 AM
  2. PHP Warning: mktime() expects parameter 6 to be long
    By milkyway in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 29 Dec 2010, 03:19 PM
  3. Edit Orders addon: PHP Warning: asort() expects parameter 1 to be array
    By dutchy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Aug 2010, 08:42 PM
  4. explode() expects parameter 2 to be string ... in functions_general.php line 566
    By surlybroad in forum Installing on a Windows Server
    Replies: 9
    Last Post: 26 Jun 2010, 05:05 AM
  5. Replies: 0
    Last Post: 26 Jun 2010, 12:29 AM

Bookmarks

Posting Permissions

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