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
    22,010
    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,547
    Plugin Contributions
    81

    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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 3
    Last Post: 6 Jun 2016, 02:37 AM
  2. PHP Warning: addslashes() expects parameter 1 to be string, array given
    By schoolboy in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 10 May 2013, 02:19 PM
  3. v139e PHP Warning: strlen() expects parameter 1 to be string, array given in
    By irishshopper in forum Basic Configuration
    Replies: 4
    Last Post: 7 Mar 2013, 08:06 PM
  4. v139h PHP Warning: strip_tags() expects parameter 1 to be string, array given
    By BlessIsaacola in forum General Questions
    Replies: 1
    Last Post: 6 Mar 2012, 01:32 PM
  5. v150 PHP Warning: strlen() expects parameter 1 to be string, array given
    By caffeitalia in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2012, 03:17 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR