Thread: Error Log

Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    681
    Plugin Contributions
    0

    Default Error Log

    Hi All,

    Running version 1.58a on a linux server running PHP Version: 8.1.31

    Template Bootstrap Version 3.7.4

    CKEditor version 5

    Image Handler version 5

    I have this error log coming up and trying to work out what I should be doing with it as I am not really good with code issues.

    Error message:

    [09-May-2025 17:34:31 Australia/Sydney] Request URI: /xxxx/index.php?cmd=category_product_listing&search=, IP address: 130.105.98.125, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 /includes/functions/functions_search.php(211): substr()
    #2 /xxxx/category_product_listing.php(545): zen_build_keyword_where_clause()
    #3 /xxxx/index.php(11): require('/home/xxxx')
    --> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /includes/functions/functions_search.php on line 211.

    As always any help would be appreciated as I am slowly working through the copy of the live site try to fix up issues that werre left behind by people that have worked on the site by deleting left over files as well as file modifications etc

  2. #2
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    681
    Plugin Contributions
    0

    Default Re: Error Log

    Hi All

    This is what is in the files for the error log:

    functions search: $where_str .= " )";
    }
    if (substr($where_str, -7) === '( () )') {
    return ' ';
    }
    return $where_str ?? ' ';
    }

    Admin/Category_product_listing:
    $sql .= zen_build_keyword_where_clause($keyword_search_fields, trim($keywords), true);
    } else {
    $sql .= " WHERE c.parent_id = :category";
    $sql = $db->bindVars($sql, ':category', $current_category_id, 'integer');
    }
    Index.php:
    if (file_exists(basename($cmd . '.php'))) {
    require basename($cmd . '.php');
    exit();
    }

  3. #3
    Join Date
    Jan 2005
    Posts
    21
    Plugin Contributions
    0

  4. #4
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    681
    Plugin Contributions
    0

    Default Re: Error Log

    Quote Originally Posted by nl2dav View Post
    I don't think you read about me not understanding code and that is why I posted all the code from the files.

    The links that you supplied were good but I still can't understand what all the colours green orange blue are and what I am supposed to do.

    Could not find any directions in the link as to what to do.

    Do they have plain english directions on what to do?

  5. #5
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,300
    Plugin Contributions
    1

    Default Re: Error Log

    Quote Originally Posted by Bruce1952 View Post

    The links that you supplied were good but I still can't understand what all the colours green orange blue are and what I am supposed to do.
    In the absence of plain English step-by-step instructions:

    Don't worry about the blue-highlighted text, focus on the pinks and greens. The dark pink & green in the left hand column represent the line number within the file (the filename and its path is written just above the blue area) and the pinks and greens to the right represent [From GitHub] "Additions to the files appear in green and are prefaced by a + sign while content that has been removed appears in red and is prefaced by a - sign."

    So, find the line number in the file, delete that code which is in pink and add in the code that is in green.
    Simon

  6. #6
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    681
    Plugin Contributions
    0

    Default Re: Error Log

    Hi Simon,

    Thank you for the heads up I did take a punt on what the + and - meant and changed the files that they showed.

    I am just waiting to see if I get any more errors show up in admin logs. So fare it has been around twelve hours and no new errors fingers crossed the issue will go away.

    Once again thank you for the assistance.

 

 

Similar Threads

  1. v151 paypal error log and mutilple error email help please
    By tropical in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 27 May 2020, 03:36 PM
  2. Replies: 5
    Last Post: 15 Mar 2017, 03:52 AM
  3. Site down, getting error in debug error log
    By rcrosier in forum General Questions
    Replies: 3
    Last Post: 25 Mar 2009, 03:01 PM
  4. Replies: 6
    Last Post: 7 Dec 2007, 03:42 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR