Zen Cart Logo
Forums / Bug Reports / popup_attributes_qty_prices page missing NAVBAR title

popup_attributes_qty_prices page missing NAVBAR title

Views: 6,077

Results 1 to 5 of 5
29 Aug 2019, 3:45 PM
#1
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

popup_attributes_qty_prices page missing NAVBAR title

Hi all,
URL: still private unfortunately (regulation issue), if needed will create a separate empty site.
ZC 1.5.6c
PHP 7.3.8
MariaDB 10.3.17

Plugins:
multi-language country names v1.1.0
multi-language zone names v1.0.0
sitemap XML 3.9.6
Easy Populate v4.0
Image Handle 5 v5.1.5
Stripe v1.3.4
Direct Bank Deposit v1.5.3
Skinny About Us Page v1.0
CKEditor v3.7s
Structured Data Plugin (master from git)
Google ReCaptcha 2 v3.4
Flexible Footer Menu Multilingual v1.5
Gift Wrap Module v2.14

I've noticed an error for a missing NAVBAR title:

[28-Aug-2019 08:17:35 Asia/Tokyo] Request URI: /shop/index.php?main_page=popup_attributes_qty_prices&products_id=159, IP address: *********
#1 require(//shop/includes/modules/pages/popup_attributes_qty_prices/header_php.php) called at [/**/shop/index.php:36]
--> PHP Warning: Use of undefined constant NAVBAR_TITLE_1 - assumed 'NAVBAR_TITLE_1' (this will throw an Error in a future version of PHP) in /*******/shop/includes/modules/pages/popup_attributes_qty_prices/header_php.php on line 12.
There is no popup_attributes_qty_prices.php language definition file that I can see anywhere. I presume that would solve the issue, but am not sure if the error actually originates there.

8 Dec 2019, 12:10 PM
#2
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: popup_attributes_qty_prices page missing NAVBAR title

Hi all,
I noticed I still have this error on 1.5.6c, and my site is now live, at
https://www.proteawines.jp/shop/
(selection between English and Japanese possible using flags).
I cannot tell what this error is supposed to mean: is there really a file missing? Because this seems to be a core file, not related to any plugin or template?

8 Dec 2019, 1:31 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: popup_attributes_qty_prices page missing NAVBAR title

It's more a bug in that /includes/modules/pages/popup_attributes_qty_prices/header_php.php. The popup pages don't include breadcrumbs, so no breadcrumb 'name' should be submitted.

You can safely change that file, commenting out that recording:

<?php
/**
 * Pop Up for attributes qty prices
 *
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 2982 2006-02-07 07:56:41Z birdbrain $
 */
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
[B]//[/B] $breadcrumb->add(NAVBAR_TITLE_1);
?>
9 Dec 2019, 8:34 AM
#4
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: popup_attributes_qty_prices page missing NAVBAR title

Hi lat9,
Thank you very much! Hope it helps others too.

9 Dec 2019, 12:19 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: popup_attributes_qty_prices page missing NAVBAR title

gernot:

Hi lat9,
Thank you very much! Hope it helps others too.
My pleasure; I've submitted a PR for zc157 for the change: https://github.com/zencart/zencart/pull/2953