Results 1 to 10 of 14

Hybrid View

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

    Default Re: Function_Catagories.php myDebug errors

    Those are the pages using the function ... they might help you determine where the paramater values are incorrect for the function ...
    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!

  2. #2
    Join Date
    Feb 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Function_Catagories.php myDebug errors

    I'm going to start comparing later tonight or tomorrow, and I'm looking for a hint on what to look for if possible.

    I'm in maintance mode and it has generated no myDebug errors since I've been in that mode, I can move around my site and do searches and all and I get no myDebug errors, now when I ran that search query it generated 5 myDebug errors, I'm assuming once for each of the pages it returned.

    I'm hoping that will help

    Thanks
    Dan

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

    Default Re: Function_Catagories.php myDebug errors

    If the admin search is generating MORE error logs, then it's very likely that the DETAILS of those errors are different than the ones which were triggered by trying to draw the categories list on your storefront.
    .

    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.

  4. #4
    Join Date
    Feb 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Function_Catagories.php myDebug errors

    I just ran it again to see what the errors are and none generated, it must have been 5 I missed when clearing out the cache

  5. #5
    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?

  6. #6
    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.

  7. #7
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    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.

 

 

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

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