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

    Default Error log Message

    Hi All,

    Got this error message and the only thing that I can see is that I should be looking at is init_add_crumbs.php on line 13

    [19-Jun-2025 13:48:28 Australia/Sydney] PHP Fatal error: Uncaught Error: Undefined constant "HEADER_TITLE_CATALOG" in /includes/init_includes/overrides/init_add_crumbs.php:13
    Stack trace:
    #0 /includes/autoload_func.php(40): require_once()
    #1 /includes/application_top.php(246): require('/home/a1...')
    #2 /index.php(25): require('/home/a1...')
    #3 {main}
    thrown in /includes/init_includes/overrides/init_add_crumbs.php on line 13

    [19-Jun-2025 13:48:28 Australia/Sydney] Request URI: /shopping-cart, IP address: 115.128.53.82
    --> PHP Fatal error: Uncaught Error: Undefined constant "HEADER_TITLE_CATALOG" in /includes/init_includes/overrides/init_add_crumbs.php:13
    Stack trace:
    #0 /includes/autoload_func.php(40): require_once()
    #1 /includes/application_top.php(246): require('/home/a1...')
    #2 /index.php(25): require('/home/a1...')
    #3 {main}
    thrown in /includes/init_includes/overrides/init_add_crumbs.php on line 13.

    From line 10 to line 26 of the file:

    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }
    $breadcrumb->add(HEADER_TITLE_CATALOG, zen_href_link(FILENAME_DEFAULT));
    /**
    * add category names or the manufacturer name to the breadcrumb trail
    */
    if (!isset($robotsNoIndex)) $robotsNoIndex = false;
    // might need isset($_GET['cPath']) later ... right now need $cPath or breaks breadcrumb from sidebox etc.
    if (isset($cPath_array) && isset($cPath)) {
    for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) {
    $categories_query = "select categories_name
    from " . TABLE_CATEGORIES_DESCRIPTION . "
    where categories_id = '" . (int)$cPath_array[$i] . "'
    and language_id = '" . (int)$_SESSION['languages_id'] . "'";

    $categories = $db->Execute($categories_query);

    Any assistance would be great
    Outdoorking
    Test Site www.dev.outdoorking.com

  2. #2
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    314
    Plugin Contributions
    6

    Default Re: Error log Message

    In the file includes\languages\english\lang.header.php on line 6 is the define statement is
    'HEADER_TITLE_CATALOG' => 'Home',

    OR if you have changed the default value with your own template
    it should be defined in the in the file
    includes\languages\english\YOURTEMPLATE\lang.header.php.

    It also helps improve readability of your posts if when you include code you markup with the code tags ( see the hash /octothorn symbol on the toolbar).

    Code:
    [19-Jun-2025 13:48:28 Australia/Sydney] Request URI: /shopping-cart, IP address: 115.128.53.82
    --> PHP Fatal error: Uncaught Error: Undefined constant "HEADER_TITLE_CATALOG" in /includes/init_includes/overrides/init_add_crumbs.php:13
    Stack trace:
    #0 /includes/autoload_func.php(40): require_once()
    #1 /includes/application_top.php(246): require('/home/a1...')
    #2 /index.php(25): require('/home/a1...')
    #3 {main}
    thrown in /includes/init_includes/overrides/init_add_crumbs.php on line 13.
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  3. #3
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    712
    Plugin Contributions
    0

    Default Re: Error log Message

    Quote Originally Posted by OldNGrey View Post
    In the file includes\languages\english\lang.header.php on line 6 is the define statement is
    'HEADER_TITLE_CATALOG' => 'Home',

    OR if you have changed the default value with your own template
    it should be defined in the in the file
    includes\languages\english\YOURTEMPLATE\lang.header.php.

    It also helps improve readability of your posts if when you include code you markup with the code tags ( see the hash /octothorn symbol on the toolbar).

    Code:
    [19-Jun-2025 13:48:28 Australia/Sydney] Request URI: /shopping-cart, IP address: 115.128.53.82
    --> PHP Fatal error: Uncaught Error: Undefined constant "HEADER_TITLE_CATALOG" in /includes/init_includes/overrides/init_add_crumbs.php:13
    Stack trace:
    #0 /includes/autoload_func.php(40): require_once()
    #1 /includes/application_top.php(246): require('/home/a1...')
    #2 /index.php(25): require('/home/a1...')
    #3 {main}
    thrown in /includes/init_includes/overrides/init_add_crumbs.php on line 13.
    The first one is showing correctly in includes\languages\english\lang.header.php: 'HEADER_TITLE_CATALOG' => 'Home',

    The other folder includes\languages\english\YOURTEMPLATE\lang.header.php does not have lang.header.php in it either english Bootstrap or responsive clasic but found in the english folder clasic lang.header.php (Note that it is the same as the as the first one from what I can see).

    Do I need to be looking at other files?

    Below is copy of both files:

    includes\languages\english\clasic\lang.header.php

    <?php
    $define = [
    'HEADER_TITLE_MY_ACCOUNT' => 'My Account',
    'HEADER_TITLE_CART_CONTENTS' => 'Shopping Cart',
    'HEADER_TITLE_CHECKOUT' => 'Checkout',
    'HEADER_TITLE_CATALOG' => 'Home',
    'HEADER_TITLE_LOGOFF' => 'Log Out',
    'HEADER_TITLE_LOGIN' => 'Log In',
    'HEADER_ALT_TEXT' => 'Powered by Zen Cart :: The Art of E-Commerce',
    'HEADER_SALES_TEXT' => '<h1>Sales Message Goes Here</h1>',
    'HEADER_LOGO_WIDTH' => '100%',
    'HEADER_LOGO_HEIGHT' => 'auto',
    'HEADER_LOGO_IMAGE' => 'logo.gif',
    'HEADER_SEARCH_BUTTON' => 'Search',
    'HEADER_SEARCH_DEFAULT_TEXT' => 'Enter search keywords here',
    'SEARCH_DEFAULT_TEXT' => 'search here',
    ];

    return $define;

    includes\languages\english\lang.header.php

    <?php
    $define = [
    'HEADER_TITLE_MY_ACCOUNT' => 'My Account',
    'HEADER_TITLE_CART_CONTENTS' => 'Shopping Cart',
    'HEADER_TITLE_CHECKOUT' => 'Checkout',
    'HEADER_TITLE_CATALOG' => 'Home',
    'HEADER_TITLE_LOGOFF' => 'Log Out',
    'HEADER_TITLE_LOGIN' => 'Log In',
    'HEADER_SALES_TEXT' => '',
    'HEADER_ALT_TEXT' => '',
    'HEADER_LOGO_IMAGE' => 'logo.gif',
    'HEADER_LOGO_WIDTH' => '125',
    'HEADER_LOGO_HEIGHT' => '68',
    'HEADER_SEARCH_BUTTON' => 'Search',
    'HEADER_SEARCH_DEFAULT_TEXT' => 'Enter search keywords here',
    'SEARCH_DEFAULT_TEXT' => 'search here',
    ];

    return $define;

    Hope that this information helps a bit as I am still lost as to what file I need to edit.
    Outdoorking
    Test Site www.dev.outdoorking.com

 

 

Similar Threads

  1. v158 Error Log message
    By Bruce1952 in forum General Questions
    Replies: 3
    Last Post: 16 Mar 2025, 03:24 AM
  2. v158 New error log message
    By Bruce1952 in forum General Questions
    Replies: 2
    Last Post: 7 Mar 2025, 09:24 PM
  3. v158 Error Log Message
    By Bruce1952 in forum General Questions
    Replies: 13
    Last Post: 29 Oct 2024, 11:45 AM
  4. v139h Error message in the log
    By joejoejoe in forum General Questions
    Replies: 0
    Last Post: 8 May 2012, 06:04 PM
  5. Error message in log file
    By ericny in forum General Questions
    Replies: 4
    Last Post: 30 Jan 2007, 06:30 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