Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2012
    Location
    California
    Posts
    204
    Plugin Contributions
    0

    Default PHP Warning: Undefined variable $show_top_submit_button

    wildsteedworx.com
    edit orders 4.6
    Twitch Spoon 1.5.7
    USPS K11a
    TyPackage Tracker 4.0.1
    PHP 7.8

    I am getting the following error log:

    ************************
    [24-Jun-2022 23:53:54 America/Boise] Request URI: /index.php?main_page=products_new, IP address:
    #1 require(/public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php) called at [/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #2 require(/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/index.php:94]
    --> PHP Warning: Undefined variable $show_top_submit_button in /public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php on line 56.

    [24-Jun-2022 23:53:54 America/Boise] Request URI: /index.php?main_page=products_new, IP address:
    #1 require(/public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php) called at [/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #2 require(/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/index.php:94]
    --> PHP Warning: Undefined variable $show_bottom_submit_button in /public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php on line 94.

    [24-Jun-2022 23:53:54 America/Boise] Request URI: /index.php?main_page=products_new, IP address:
    #1 require(/public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php) called at [/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #2 require(/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/index.php:94]
    --> PHP Warning: Undefined variable $show_bottom_submit_button in /public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php on line 111.

    [24-Jun-2022 23:53:54 America/Boise] Request URI: /index.php?main_page=products_new, IP address:
    #1 require(/public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php) called at [/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #2 require(/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/index.php:94]
    --> PHP Warning: Undefined variable $show_top_submit_button in /public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php on line 141.

    [24-Jun-2022 23:53:54 America/Boise] Request URI: /index.php?main_page=products_new, IP address:
    #1 require(/public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php) called at [/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:178]
    #2 require(/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/index.php:94]
    --> PHP Warning: Undefined variable $show_bottom_submit_button in /public_html/includes/templates/responsive_classic/templates/tpl_products_new_default.php on line 141.

    *********************************

    Can someone help me resolve this?

    Thank You in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,791
    Plugin Contributions
    124

    Default Re: PHP Warning: Undefined variable $show_top_submit_button

    This issue is fixed in Zen Cart 1.5.8.

    Modify includes/modules/pages/products_new/header_php.php above

    if (PRODUCT_NEW_LISTING_MULTIPLE_ADD_TO_CART > 0 and $show_submit == true and $products_new_split->number_of_rows > 0) {

    add the lines:

    $show_top_submit_button = false;
    $show_bottom_submit_button = false;
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jun 2012
    Location
    California
    Posts
    204
    Plugin Contributions
    0

    Default Re: PHP Warning: Undefined variable $show_top_submit_button

    Quote Originally Posted by swguy View Post
    This issue is fixed in Zen Cart 1.5.8.

    Modify includes/modules/pages/products_new/header_php.php above

    if (PRODUCT_NEW_LISTING_MULTIPLE_ADD_TO_CART > 0 and $show_submit == true and $products_new_split->number_of_rows > 0) {

    add the lines:

    $show_top_submit_button = false;
    $show_bottom_submit_button = false;
    That fixed that issue now a new one has popped up....lol

    [26-Jun-2022 15:55:35 America/Boise] Request URI: /index.php?main_page=featured_products, IP address:
    #1 require(/public_html/includes/modules/pages/featured_products/header_php.php) called at [/public_html/index.php:35]
    --> PHP Warning: Undefined variable $how_many in /public_html/includes/modules/pages/featured_products/header_php.php on line 84.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,791
    Plugin Contributions
    124

    Default Re: PHP Warning: Undefined variable $show_top_submit_button

    same idea - add

    $how_many = 0;

    above

    if (PRODUCT_FEATURED_LISTING_MULTIPLE_ADD_TO_CART > 0 and $show_submit == true and $featured_products_split->number_of_rows > 0) {

    to

    includes/modules/pages/featured_products/header_php.php
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v157 Undefined index and undefined variable errors in paypalwpp
    By Dave224 in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 7 Jan 2022, 05:11 PM
  2. Replies: 9
    Last Post: 9 Aug 2021, 06:00 AM
  3. Replies: 6
    Last Post: 30 Sep 2020, 10:49 PM
  4. PHP Warning: Use of undefined constant
    By keneso in forum General Questions
    Replies: 5
    Last Post: 24 Aug 2020, 03:48 PM
  5. v156 PHP Warning Use of undefined constant
    By ianhg in forum General Questions
    Replies: 6
    Last Post: 10 Oct 2019, 12:19 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