Results 1 to 2 of 2
  1. #1
    Join Date
    May 2014
    Posts
    68
    Plugin Contributions
    0

    Default Undefined variable: errorHeadingFlag

    This PHP Notice occurred while attempt to upgrade Zen Cart.

    Code:
    [29-Jan-2019 20:06:01 UTC] PHP Notice:  Undefined variable: errorHeadingFlag in C:\wamp64\www\zc156\zc_install\includes\template\templates\index_default.php on line 86
    [29-Jan-2019 20:06:01 UTC] PHP Stack trace:
    [29-Jan-2019 20:06:01 UTC] PHP   1. {main}() C:\wamp64\www\zc156\zc_install\index.php:0
    [29-Jan-2019 20:06:01 UTC] PHP   2. require() C:\wamp64\www\zc156\zc_install\index.php:42
    [29-Jan-2019 20:06:01 UTC] PHP   3. require() C:\wamp64\www\zc156\zc_install\includes\template\common\tpl_main_page.php:47
    So, I decided to inspect all those files listed... and here are codes that it reported as error.

    \zc_install\includes\template\templates\index_default.php (line 86)
    Code:
    <div id="warnErrors" class="errorList">
        <?php if ($errorHeadingFlag) { ?>
            <?php if ($adjustWarnIssues) { ?>
    \zc_install\index.php (line 42)
    Code:
      if ($controller == 'cli') {
        require DIR_FS_INSTALL . 'includes/cli_controller.php';
      } else {
        require DIR_FS_INSTALL . $page_directory . '/header_php.php';
        require DIR_FS_INSTALL . DIR_WS_INSTALL_TEMPLATE . 'common/html_header.php';
        require DIR_FS_INSTALL . DIR_WS_INSTALL_TEMPLATE . 'common/main_template_vars.php';
        require DIR_FS_INSTALL . DIR_WS_INSTALL_TEMPLATE . 'common/tpl_main_page.php';
      }
    \zc_install\includes\template\common\tpl_main_page.php (line 47)
    Code:
            <?php } ?>
            <?php require($body_code); ?>
            </div>
    While it does not interfere the install process. However, I wanted to report to ensure that this may not lead to future bugs in installation.

    -PanZC2020

  2. #2
    Join Date
    Jul 2012
    Posts
    16,739
    Plugin Contributions
    17

    Default Re: Undefined variable: errorHeadingFlag

    Submitted Pull Request 2148 with a correction for that.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 db Execute issue -- Undefined variable: $db
    By tmpinsnty in forum General Questions
    Replies: 14
    Last Post: 25 Apr 2018, 07:57 PM
  2. v154 Naming a global variable the same as a SESSION, GET or POST variable
    By torvista in forum General Questions
    Replies: 5
    Last Post: 6 Dec 2015, 11:11 AM
  3. v154 Tax Variable Undefined In GV Module
    By PaulRRogers in forum Bug Reports
    Replies: 0
    Last Post: 4 Mar 2015, 10:16 PM
  4. Undefined Notice: Use of undefined constant
    By TheOracle in forum Bug Reports
    Replies: 0
    Last Post: 6 May 2007, 06:33 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