No, Chrome seems to show all images as type Document - so I don't think it's that.
Printable View
One final thought - I wonder if it is to do with how you created the .webp images. I say that because I am unable to open one of the slider images in Photoshop. Perhaps grab one from here and add it to your site as a test,
https://developers.google.com/speed/webp/gallery1
Talk about overlooking the obvious ... Simon, you're a genius. Clearly my photoshop plugin is not working correctly. I have been using ZX Slideshow but assumed that because it hasn't been updated that it wouldn't work with webp and it didn't, at no fault to ZX Slideshow so I tried the Bootstrap Carousel which of course failed for the same reason. Thank you so much for your help and the others with your suggestions. Sorry for wasting everybody's time.
Cheers!
John
Thanks @simon1066 and @allmart for collaborating and working out the root-cause!
You're welcome. I'm glad we got there - in the end.
FWIW, this is the plugin I use on my Photoshop (CS6) install, probably the same as you
https://github.com/webmproject/WebPShop/releases
1.5.8a sites using 3.5.3 or a later beta
PHP varies from 7.4 to 8.02
No problems before adding the files merged in the last week.
Now getting the following warning on all boostrap sites but not on similar sites using responsive_classic
All sites are a clone of either bootstrap or responsive_classic and reverting to the un-cloned bootstrap still results in:Code:[19-May-2023 21:00:52 UTC] Request URI: /, IP address: 56.128.22.221, Language id 1#1 require_once(/includes/init_includes/init_canonical.php) called at [/includes/autoload_func.php:40]
#2 require(/includes/autoload_func.php) called at [/includes/application_top.php:237]
#3 require(/includes/application_top.php) called at [/index.php:25]
--> PHP Warning: Undefined variable $this_is_home_page in /includes/init_includes/init_canonical.php on line 82.
[19-May-2023 21:00:52 UTC] Request URI: /, IP address: 56.128.22.221, Language id 1
#1 require(/includes/modules/meta_tags.php) called at [/includes/templates/boot_broth/common/html_header.php:27]
#2 require(/includes/templates/boot_broth/common/html_header.php) called at [/index.php:42]
--> PHP Warning: Undefined variable $this_is_home_page in /includes/modules/meta_tags.php on line 97.
[19-May-2023 21:00:52 UTC] Request URI: /, IP address: 56.128.22.221, Language id 1
#1 require(/includes/templates/boot_broth/common/html_header.php) called at [/index.php:42]
--> PHP Warning: Undefined variable $this_is_home_page in /includes/templates/boot_broth/common/html_header.php on line 125.
[19-May-2023 21:00:52 UTC] Request URI: /, IP address: 56.128.22.221, Language id 1
#1 require(/includes/templates/boot_broth/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $this_is_home_page in /includes/templates/boot_broth/common/tpl_main_page.php on line 86.
[19-May-2023 21:00:52 UTC] Request URI: /, IP address: 56.128.22.221, Language id 1
#1 require(/includes/templates/boot_broth/common/tpl_header.php) called at [/includes/templates/boot_broth/common/tpl_main_page.php:137]
#2 require(/includes/templates/boot_broth/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $this_is_home_page in /includes/templates/boot_broth/common/tpl_header.php on line 35.
[19-May-2023 21:00:52 UTC] Request URI: /, IP address: 56.128.22.221, Language id 1
#1 require(/includes/templates/boot_broth/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $this_is_home_page in /includes/templates/boot_broth/common/tpl_main_page.php on line 165.
This may not be a bootstrap problem as I now find that the includes/init_includes_category_path.php files are different in this case.
Checking further.
YEP, somehow the init_category_opath.php file got skipped.
Zen cart 1.5.6C
ZCA Bootstrap
PHP 7.4
I am having an issue with a lot of spam email from the web contact form. These are written in russian and use a .ru email address. My question is can I stop all webforms being sent using Russian language and or [email protected]. Many Thanks for any suggestions.
Have a look at Access Blocker. The downloads page is "Access Blocker (a pseudo-recaptcha)" https://www.zen-cart.com/downloads.php?do=file&id=2237 the support thread is https://www.zen-cart.com/showthread....Support-Thread
This plugin blocks listed host addresses eg ".ru" and tor variants and also message keywords eg 'Привет,Ребята" and allows for a whitelist of email addresses.
My contact form spam is now almost negligible.
@OldNGrey thanking for suggesting the plug-in I will give it a try, much appreciated.
More suggestions:
https://docs.zen-cart.com/user/troub...cking_attacks/
Running into strange issues with responsiveness. There's only one column and it's stretched right. Doesn't matter what size the device is. Checked with responsive app & multiple browsers. I'm on 1.5.8a. I just migrated from a litespeed server to an apache one for unrelated reasons and the problem has persisted.
fully stock setup. clean install with php 8.2 from the stock install script. let me go check the details again. it happens on all pages, yep.
thanks! i actually am experimenting with a few other carts right now, but i like zen cart's back of house the best so far, especially the tax setup. i would prefer to use it
Stupid CSS question: how do you get the top nav bar (Home/Log In/ etc.) to align right rather than left?
Aha! Easy peasy. Go from
<ul class="navbar-nav mr-auto">
to
<ul class="navbar-nav ml-auto">
in includes/templates/bootstrap/common/tpl_header.php around line 33.
One interesting thing I am seeing with 3.5.3 and later is that the right-hand sidebox is disappearing in the product listing if the item is priced by attributes.
Makes things difficult if trying to use Dynamic Price Updater.
> the right-hand sidebox is disappearing in the product listing ...
Do you mean on the product info page?
If so, just edit common/tpl_main_page.php around line 56 and remove product_info from the list of pages where a $flag_disable_right = true is done.
DOH!
Maybe it's the fact I don't drink coffee. Gonna have to get more Dark Chocolate to get the memory working better.
I know people who swear by diet Coke, but I'll take Starbucks every time!
Zen Cart 1.5.8a - PHP 7.4 Bootstrap 3.5.2
Never mind found it as soon as I posted =)
~Melanie
For others to know where to look.
There are eight different color listing for the Pagination Button colors.
Adjust as required then, make sure to download the final look in a CSV
I am lovin' that user adjustable color feature (Tools > ZCA Bootstrap Colors). Thanks for doing this, Bootstrap team.
Kudos to lat9 for the work required to allow the easy manipulation which now scores 100 across the Lighthouse test right out of the box.
I'm back. This is a BONE STOCK setup:
https://arienneaudio.com/zencart/test/
Something about this seems wrong, or am I wrong? I have no idea what it's supposed to look like
First, check out Admin >> Tools >> Layout Boxes Controller. You may need to reset it to get the columns to show up.
Then, in your Admin >> Configuration >> Bootstrap Template Settings, make sure your first three items after the version number add up to twelve. The default is 3, 6, 3.
What sideboxes did you "feel the need" to copy? The 'standard' Zen Cart sideboxes for the Bootstrap template are either used from the template_default versions or an override is provided in the Bootstrap distribution itself.
Please note that the layout for responsive_classic is, at times, quite different from that used by the Bootstrap template.
Perhaps "copy the sideboxes from responsive classic" meant to set the template to Bootstrap and then go to Tools > Layout Boxes Controller and configure the same sideboxes as were used in RC? Not copying code but rather config settings.
The whole point of the issue was that the standard zen cart sideboxes were not working out of the box, at least for me. When I went to the sideboxes screen after a fresh install, everything was disabled, so I had to copy them using the reset command, which states:
Attachment 20312
Also, the sidebar setups for the default and responsive themes are not different:
Attachment 20313
Attachment 20314
Of course, this just means it's what I had to do to get the 3-column behavior advertised in the preview screenshot and template description, obviously there are no "objectively correct" settings for the sidebox setup. I guess the important takeaway here is that for some reason, on a fresh install, ZCA defaults to having no sideboxes enabled at all, even when the standard themes have sideboxes enabled. I am not sure why this is or if it is expected behavior, it's just what i experienced, you know?
With bootstrap not being the default template, the fact that you changed templates was the reason the layout boxes controller needed to be reset.
In fact, this exact situation can be so aggravating that some guy created a plugin to make it easier to manage:
https://www.zen-cart.com/downloads.php?do=file&id=1828
Is this functionality not as included in ZC158:
Attachment 20315
https://www.zen-cart.com/image/png;b...AAAElFTkSuQmCC
https://www.zen-cart.com/image/png;b...AAAElFTkSuQmCC
In the continuing saga of Accessibility, we (JEANDRET) have recently discovered the Site Improve Accessibility Checker. This extension is available for both Chrome and Firefox. It might be available for other browsers as well. One of the most comprehensive checkers we have found.
Its comprehenive evaluation is causing us to reevaluate bootstrap colors. Some of the other checkers are not properly vetting all the colors based on both size and whether or not they are "operational".
For example, we originally proposed the existing #007faf as the default background color and white for the text color for the catTabs menu, buttons, pagination, etc. While the colors do well for the size of the text, the newer testing states that, since these buttons perform an operation, they should have a minimum contrast ratio of 7:1 instead of 4.5:1 if it were just text. It makes sense that you would want the "Action" information as legible as posssible. The solution for this is to change all of the #007faf bootstrap color settings to #13607c for the default color. There will probably be more changes but, for now, I wanted to bring up disabled buttons as it is going to be more of a project.
In changing/testing background colors, we noticed on the test site with demo items that the "Go" buttons for Manufacturers, Music Genres, and Record Companies are disabled (due to no selection having been made in the drop-down). The bootstrap.min.css turns on an opacity setting and drops the opacity for the button to 0.65 which results in a color contrast problem by dropping the ratio to ~3.2:1 when using the new #13607c as the background. It should be 7:1 as a minimum. Incidentally, https://www.siegemedia.com/contrast-ratio is a great tool in testing this as it can assess contrast using HEX, RGBA, RGB, HSLA, etc. I have not found another tester that does this.
The good news is that, being disabled, the button is no longer considered an actionable item and does not "technically" require the 7:1 of an 'active' button. Still, 3.2:1 is not a good contrast for anything.
Also, looking at the disabled button gives not only the impression that something CAN be accomplished but, even if it's hard to read.
CSS Tricks discusses using a tooltip when hovering over the button to let the user know they need to make a selection to enable the button. This may be a solution to the contrast problem but not for the "why doesn't this go button work" problem. In addition, the Send Now button should be considered for this treatment IF there is an entry in admin >> Email >> Set "Contact Us" Email Dropdown List
Another way of dealing with this is to add colors to the .btn.disabled, .btn:disabled call in the CSS. Making the background- and border-colors the same as the text color for the button will result in the button "disappearing" until a selection is made by the customer. This is what we are using temporarily by utilizing the site_specific_styles.php for the color additions. Again, background and text only match when the button is disabled, the ADA/WCAG checkers may recognize the odd contrast but, if they do, they report something like "Disabled elements do not require sufficient contrast."
In using the ZCA Bootstrap Colors, The "Button Text Color" could be "Button Text/Disabled Color" since that color would be used for the button color AND the new button background- and border-color settings under .btn.disabled, .btn:disabled.
test1DOTjeandretDOTcom shows the buttons with the background- and button-colors set to match the active button's text color. You can view the original "look" by disabling the two colors when inspecting the buttons.
Comments on this are appreciated.
> Is this functionality not as included in ZC158:
Not exactly. I believe the built in capability only populates the dropdown with templates that already exist under includes/templates. So the built-in utility is not as powerful in an upgrade situation, where the old template might not have been copied to the new install.
> I guess the important takeaway here is that for some reason, on a fresh install, ZCA defaults to having no sideboxes enabled at all, even when the standard themes have sideboxes enabled.
It's really up to the template author whether to install sideboxes by default; Bootstrap starts clean so you don't have to delete anything.
To clarify that the next step after template switching is sidebox selection, I added a sentence to that effect to the template selection FAQ:
https://docs.zen-cart.com/user/admin...ate_selection/
:rotflmao:
If it cost a dollar to go around the world, I couldn't get out of site!
I know it's not the mainstream view but...
Clean code, descriptions that describe your product to a blind man, and accessibility beat the SEO "masters" in my opinion. Google kayak parts. Scroll down to the first non-sponsored result. No SEO, no paid clicks, no "friendly" URLs. Just content correctness. Looking forward to moving them to 158a and Bootstrap in November after things settle down.
BTW, It's interesting to note that the first of three parts in their course is Content Creation.:yes:
Hello,
Is there a way to make the brand box scrolling like originally? I have too long of a list to leave it as "buttons".
OH, it is! (manufacturers) Thank you and apologies.
Looking for advice on how to combine the shipping modules display on the Checkout Shipping page into one "card". Using bootstrap template, 1.5.8, USPS shipping plugin. Basically, I have flat-rate shipping enabled but all of these orders are shipped via USPS anyways (first class package). I have USPS enabled to give customers option to upgrade to Priority at the calculated rate. I would like the "flat rate" option to appear as a radio option under the USPS card header rather than have a flat rate box and a USPS box. Suggestions? TIA!
Thanks--I understand that and found the code creating the cards; however, I'm failing to see how I can make the shipping options combine into one. It looks like it is calling each shipping module (Flat Rate and USPS in my example) separately. I'm not savvy enough to figure out how to break it up. In the responsive classic template I would just modify the code within the <fieldset> tags, but this is entirely different. I'm still learning bootstrap so hoping you can point me in the right direction? What part of this should I be changing to combine both modules into one display card?
Screenshot of what I'm talking about attached. THanks!Attachment 20330Code:<!--bof shipping method option card-->
<div class="card mb-3">
<div class="card-header">
<?php echo $quotes[$i]['module']; ?>
<?php
if (!empty($quotes[$i]['icon'])) {
echo $quotes[$i]['icon'];
}
?>
</div>
<div class="card-body p-3">
<?php
if (isset($quotes[$i]['error'])) {
?>
<div><?php echo $quotes[$i]['error']; ?></div>
<?php
} else {
for ($j = 0, $n2 = count($quotes[$i]['methods']); $j < $n2; $j++) {
// set the radio button to be checked if it is the method chosen
$checked = false;
if (isset($_SESSION['shipping']) && isset($_SESSION['shipping']['id'])) {
$checked = ($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']);
}
if ($n > 1 || $n2 > 1) {
?>
<div class="float-right"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></div>
<?php
} else {
?>
<div class="float-right"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . zen_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></div>
<?php
}
?>
<div class="custom-control custom-radio custom-control-inline">
<?php echo zen_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, 'id="ship-'.$quotes[$i]['id'] . '-' . str_replace(' ', '-', $quotes[$i]['methods'][$j]['id']) .'"'); ?>
<label for="ship-<?php echo $quotes[$i]['id'] . '-' . str_replace(' ', '-', $quotes[$i]['methods'][$j]['id']); ?>" class="custom-control-label checkboxLabel"><?php echo $quotes[$i]['methods'][$j]['title']; ?></label>
</div>
<div class="p-1"></div>
<?php
$radio_buttons++;
}
}
?>
</div>
</div>
<?php
}
}
}
?>
</div>
</div>
You'll need to 'bump up' an if-clause to re-parse the quotes, capturing the "Flat" value for later use when inserting that quote into the USPS card. The $i loop-level is on a per-shipping-module basis and the $j loop gathers the method(s) provided by the current shipping module.
Code:<?php
} else {
$radio_buttons = 0;
for ($i = 0, $n = count($quotes); $i < $n; $i++) {
// bof: field set
// allows FedEx to work comment comment out Standard and Uncomment FedEx
// if (!empty($quotes[$i]['id']) || !empty($quotes[$i]['module'])) { // FedEx
if (!empty($quotes[$i]['module'])) { // Standard
?>
<!--bof shipping method option card-->
<div class="card mb-3">
<div class="card-header">
<?php echo $quotes[$i]['module']; ?>
<?php
if (!empty($quotes[$i]['icon'])) {
echo $quotes[$i]['icon'];
}
?>
</div>
<div class="card-body p-3">
<?php
if (isset($quotes[$i]['error'])) {
?>
<div><?php echo $quotes[$i]['error']; ?></div>
<?php
} else {
for ($j = 0, $n2 = count($quotes[$i]['methods']); $j < $n2; $j++) {
// set the radio button to be checked if it is the method chosen
$checked = false;
if (isset($_SESSION['shipping']) && isset($_SESSION['shipping']['id'])) {
$checked = ($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']);
}
if ($n > 1 || $n2 > 1) {
?>
Forgive me, but I'm completely out of my element on this one. I can work with basic html and css, and am slowly getting the hang of bootstrap, but adding if/then statements to php files starts getting over my head. I completely understand what you're saying needs to be done, I'm just lost as to how to execute. I've looked at the modules and classes files trying to get a better understanding of the $xxxx commands, but still confused as to specifically take the flat shipping modules quote value, "store it" and then output it. Even if you could give me a sample of what it might look like so I can use trial and error that would help.
If it really is too complicated I will just have to learn to live with it, but since I only ship USPS would prefer for all shipping options to display in one card so as to not confuse the customer.
I think I found a useable workaround--I moved the <div class="card-header"> and it displays all shipping options together with a less than perfect heading. This should work I would think, but any tips on how to make the heading and card body a little cleaner? It looks like it's inheriting the border-radius from the card class--the rounded-bottom, etc. doesn't seem to change anything. I tried messing with the mb, p, etc. as well but not having much luck.
Code:<div class="card card-header mb-0 rounded-top">USPS</div>
<div class="card p-3 border-top-0 rounded-bottom">
<?php
if ($free_shipping === true) {
?>
<div id="shippingMethod-content-two" class="content"><?php echo FREE_SHIPPING_TITLE . (isset($quotes[$i]['icon']) ? ' ' . $quotes[$i]['icon'] : ''); ?></div>
<div id="shippingMethod-selected" class="selected"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . zen_draw_hidden_field('shipping', 'free_free'); ?></div>
<?php
} else {
$radio_buttons = 0;
for ($i = 0, $n = count($quotes); $i < $n; $i++) {
// bof: field set
// allows FedEx to work comment comment out Standard and Uncomment FedEx
// if (!empty($quotes[$i]['id']) || !empty($quotes[$i]['module'])) { // FedEx
if (!empty($quotes[$i]['module'])) { // Standard
?>
<!--bof shipping method option card-->
<div class="card mb-3">
<div class="card-body p-3">
<?php
if (isset($quotes[$i]['error'])) {
?>
<div><?php echo $quotes[$i]['error']; ?></div>
<?php
} else {
for ($j = 0, $n2 = count($quotes[$i]['methods']); $j < $n2; $j++) {
// set the radio button to be checked if it is the method chosen
I've just released v3.6.0 of the ZCA Bootstrap Template to the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2191
This release contains changes associated with the following GitHub issues:
#236: Restructuring and notifications added for AJAX search.
#237: Add missing language constant for AJAX search.
#238: Add a 'soft' configuration setting to disable the 'back-to-top' icon.
#240: Simplify and reduce processing for SNAF pages.
#241: Price-related observer updated to honor a previous observer's changes.
#244: Add a 'soft' configuration setting to control whether zca_js_zone_list returns zone_id or zone_name values.
#245: Correct name of "Add Address" button on the address_book page, was displaying as "Back".
#246: Add role="button" to AJAX search header link to improve SEO rating.
#247: New colors defined for upper NavBar buttons (other than the AJAX header search icon).
#252: "Images" column for table-based product listings updates for screen-readers.
#253: Colors added for "Advanced Accessibility Standards". See this (https://github.com/lat9/ZCA-Bootstra...s#v360-updates) link for details.
#254: Correct styling for "Buy Now" buttons, 'more info ...' link and min/max/unit display on table-based listings.
#258: ask_a_question and account_history_info page/template updates based on recent zc158 base changes.
#259: Correct HTML validation issues on additional-images' modal display.
#261: "Sold Out" button, add coloring and remove hover-pointer since the button's not clickable.
#266: "Float" the 'Add Selected to Cart' button on product listing pages, to keep the button visible in the customer's viewport.
I think I found a bug. When using shipping estimator with Bootstrap v3.6.0 and with option 'Configuration->Customer Details->State field - Display as pulldown when possible?' set to true, there are two field for state: One with pulldown menu and one standard input box. With above option set to false no problem.
The standard input field should be hidden (by some Javascript). I can't find if problem is due to Javascript or css.
If you could point me to where to look at I might be able to fix it.
Are you using the shipping-estimator on the shopping-cart page or as a modal pop-up? The 'standard' behavior of the template (like the rest of the Zen Cart templates) is to include some javascript/jQuery element to hide the "State" field when a pulldown is in use.
For Bootstrap, that's in the bootstrap templates jscript/jscript_addr_pulldowns_zca_bootstrap.php file.
Are there any console errors (see via the browser's F12/Inspect tab)? If so, those might identify the source of the issue. If the HTML isn't valid, the jQuery addition sometimes will not happen properly.
We're getting the same with the estimator button on the cart page.
Another glitch that showed up on a site using Discount Coupons with a "once-per-user" setting. Using that once during guest checkout keeps any later guest from using the coupon. Is the simple thing just to advise customers that they must log in to use the coupon? The disallowed pages are set to default.
I use the estimator as a popup. I looked at browser debug and source page and could not find any trace of jscript_addr_pulldowns_zca_bootstrap.php file or its code. I don't think it is loaded at all. I tried to change state after setting it a first time but although page reload fields are not updated. The Javascript function that do the update is in the same file...
It is all I found for now.
@pilou2, what version of Zen Cart is in use when the pop-up shipping estimator doesn't load the jQuery to do those dropdowns?
It is Version 1.5.8a with some Github updates up to few weeks ago and Japanese pack is installed and Postcode_auto too... Yes I know it could interfere especially last one but as #dbltoe saidI don't think it is the case. I plan to make a fresh install of Zencart and Bootstrap as soon as I have more time.Quote:
We're getting the same with the estimator button on the cart page.
Just had the default.
account, account_edit, account_history, account_history_info, account_newsletters, account_notifications, account_password, address_book, address_book_process, create_account_success, gv_redeem, gv_send, product_reviews_write, unsubscribe
Added ot_coupon and got
My bad, ot_coupon should be added to the One-Page Checkout configuration setting
Guest Checkout: Disallowed Credit Class Order-Totals
That worked.
THANX
Anyone have a good demo of this template
Sent PM
So I feel that boot strap is not total loaded on my site. for banners I can not control it using the boot strap banner display but i can thru layout settings.
Also for the menu bar at top all it has is log in.
I'm not sure what you mean by "controlling" the banners. Bootstrap works in conjunction with the base Zen Cart Banner Manager and its associated configuration settings. If a 'base' banner is enabled, Bootstrap enables multiple banners to operate as a slideshow.
The menu bar at the very top normally only has a "Home" and "Login" link, possible with either a search icon or search mini-form to the right. When you add something to the cart, the "Shopping Cart" and "Checkout" links show up.
So in my log file looking at includes/languages/english/bootstrap/header.php
I get the following error for every line in it.
PHP Warning: Constant ####################____ already defined in /---------/includes/languages/english/bootstrap/header.php on line __.
Also getting an error for page admin/layout_controller.php
--> PHP Warning: Undefined array key "page" in /----/admin/layout_controller.php on line 220.
--> PHP Warning: Undefined array key "page" in /----/admin/layout_controller.php on line 234.
--> PHP Warning: Undefined array key "page" in /----/admin/layout_controller.php on line 240.
and last
--> PHP Warning: Constant TABLE_FLEXIBLE_FOOTER_MENU already defined in /----/admin/includes/languages/english/extra_definitions/flexible_footer_menu.php on line 9.
:frusty:
The quickest way to get around a problem is to drown it in info. Everytime you post a new problem, kill it with information for us. The posting tips are there to help us help you. And always post the entire log using the # above. I just spent several hours this weekend doing an upgrade and finally asked the owner what their "trick" was for making a certain page happen. Turns out they were using a similiar constant to one in the new ZC but had it in the wierdest place in their files. As soon as I said we were butting our heads against the wall, I got a "Oh, that's simple, we did such and such."
Some of the real gurus here may be able to come up with an answer based on little to go on but, they may be busy and the extra info might get you an answer from some of us others.
Warnings are not usually a problem with operation but certainly we need to work on the "page" key that's missing. The problem is, that is such a generic key that it probably was part of a store-bought template or older mod. Just a WAG without more info but I think line 220 should be looking for $cur_page vs just page.
You might give us a look at lines 219-221 of your admin's layout_controller.php
Just pulled this log,
Code:[15-Aug-2023 12:09:37 America/New_York] PHP Warning: Undefined global variable $_SESSION in /homepages/website/includes/extra_configures/enable_error_logging.php on line 84
[15-Aug-2023 12:09:37 America/New_York] PHP Warning: Trying to access array offset on value of type null in /homepages/website/includes/extra_configures/enable_error_logging.php on line 84
[15-Aug-2023 12:09:37 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/extra_datafiles/about_us_filenames.php(11): define()
#2 /homepages/website/includes/init_includes/init_file_db_names.php(78): include('/homepages/36/d...')
#3 /homepages/website/includes/application_top.php(198): require('/homepages/36/d...')
#4 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant FILENAME_ABOUT_US already defined in /homepages/website/includes/extra_datafiles/about_us_filenames.php on line 11.
[15-Aug-2023 12:09:37 America/New_York] PHP Warning: Undefined global variable $_SESSION in /homepages/website/includes/extra_configures/enable_error_logging.php on line 84
[15-Aug-2023 12:09:37 America/New_York] PHP Warning: Trying to access array offset on value of type null in /homepages/website/includes/extra_configures/enable_error_logging.php on line 84
[15-Aug-2023 12:09:37 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/extra_datafiles/about_us_filenames.php(12): define()
#2 /homepages/website/includes/init_includes/init_file_db_names.php(78): include('/homepages/36/d...')
#3 /homepages/website/includes/application_top.php(198): require('/homepages/36/d...')
#4 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant FILENAME_DEFINE_ABOUT_US already defined in /homepages/website/includes/extra_datafiles/about_us_filenames.php on line 12.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(13): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_TITLE_MY_ACCOUNT already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 13.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(14): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_TITLE_CART_CONTENTS already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 14.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(15): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_TITLE_CHECKOUT already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 15.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(17): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_TITLE_CATALOG already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 17.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(18): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_TITLE_LOGOFF already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 18.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(19): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_TITLE_LOGIN already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 19.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(23): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_ALT_TEXT already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 23.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(24): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_SALES_TEXT already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 24.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(25): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_LOGO_WIDTH already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 25.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(26): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_LOGO_HEIGHT already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 26.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(27): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_LOGO_IMAGE already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 27.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(30): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_SEARCH_BUTTON already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 30.
[15-Aug-2023 12:09:39 America/New_York] Request URI: /store/?main_page=popup_image&pID=421, IP address: xxx.xxx.xxx.xxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /homepages/website/includes/languages/english/bootstrap/header.php(31): define()
#2 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once('/homepages/36/d...')
#3 /homepages/website/includes/classes/ResourceLoaders/FilesLanguageLoader.php(20): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#4 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(63): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#5 /homepages/website/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(19): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadMainLanguageFiles()
#6 /homepages/website/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines()
#7 /homepages/website/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#8 /homepages/website/includes/autoload_func.php(40): require_once('/homepages/36/d...')
#9 /homepages/website/includes/application_top.php(237): require('/homepages/36/d...')
#10 /homepages/website/index.php(25): require('/homepages/36/d...')
--> PHP Warning: Constant HEADER_SEARCH_DEFAULT_TEXT already defined in /homepages/website/includes/languages/english/bootstrap/header.php on line 31.
Let's go back to basics, @cubmanky, answering some of the posting guidelines' questions:
1. Zen Cart version
2. PHP version
3. Was this a fresh install or an upgrade?
4. Version of the Bootstrap template in use?
Some of the logs you've posted don't make sense to me, i.e. how they're being caused.
Silly question, but I'm too dumb to figure it out.
What would cause my TEST site to redirect back to my LIVE site when trying to do the Ajax search?
Let me give you an example.
I created a copy of my site in a directory we'll call, 'catalogTest'. So when I go to myDomain.com/catalogTest, I can browse through the test version of my site.
However, on that test version, if I click the Magnifying Glass to open the Ajax search, as soon as I type one character into the search box, the page refreshes and takes me to the live site (myDomain.com/catalog).
It only does this when I try to use the search feature.
Can you tell me what may be causing that? I like to fully test my custom changes to the Bootstrap template on my test site before copying them over to my live site.......and this redirecting search issue is the only thing that I cannot figure out.
@Jeff_Mash, please send a link to the test site that's redirecting live to my direct email.
So I moved to a new server, I mad a new DB on the server and uploaded my backup sql file. next I took the new install files of 1.5.8a and dropped them on the server. next I ran the install using existing DB. then i ftp uped the bootstrap template along with all my existing images and banners. for bootstrap it is 3.6.0
@cubmanky, what Zen Cart version did you upgrade from?
Yep, you're running into the same upgrade-related issue that I identified in this (https://github.com/zencart/zencart/issues/5932) now closed Zen Cart GitHub issue.
You're upgrading from 157c to a 158 (or later) version and you have a 'core' language-file override that uses the now-legacy format: /includes/languages/english/bootstrap/header.php. Unfortunately, at this time, you'll need to manually make the change to that/those language files to convert them from using PHP define statements to using the now-required array format.
So in Admin >Tools> layout boxes I have the bootstrap header search turned on but I do not see any box until I turn the normal search on. Any suggestions?
Is there anything logged in your LOGS directory?
Also, I doubt this would make a difference, but make sure that your "sideboxes/bootstrap/search_header.php" has a unique Sort Order variable, just in case there's some weird conflict there.
I did a test and turned off my "sideboxes/bootstrap/search.php" but I am still able to see my "sideboxes/bootstrap/search_header.php" load just fine.
I would like to add the language selection and other links to the burger menu (three horizontal lines on top left) of the mobile display. If I configure tpl_offcanvas_menu.php, the changes are displayed in mobile and desktop display. How can I add links, etc exclusively to the menu of the mobile display?
Ahhh, it is a Bootstrap thing and not controlled by files in Zen Cart. Add class="d-lg-none" to the links in the menu, so they do not show up at bigger displays. More here: https://getbootstrap.com/docs/4.0/utilities/display/
bootstrap/search_header single colum status
I couldn't see the search header. Digging through the forum you had fixed this in 3.4.1 "BUGFIX: Enable (for zc158a and later) the admin "Layout Controller" to display single-column settings for the template."
This seems to have been lost in 3.6.0? I changed its layout_box_status_single from 0 to 1 and it works fine now, but thought you might want to relook at this. I'm guessing you had added additional columns in Layout Boxes Controller for single column sort order and single column status. My prod site has this from god only knows what plugin, but my dev site with zc 1.5.8a and ZCAB 3.6.0 does not.
Nope, scratch that. Template is fine. Clone a template plugin ignores the single column line in template info. Lol, which I see is still lat9.
Is there a way to add currency selection and language selection on mobile devices in this template system?
I added files for bootstrap template in version 4.0.2 of the plugin release:
https://www.zen-cart.com/downloads.php?do=file&id=30
Hi,
How does one go about centering the ez pages text for the top and bottom bar? I'm on zencart 158a.
I've tried addingto the site_specific_styles.php but it doesn't work.Code:#navEZPagesTop ul{text-align:center;}
Also, just out of curiousity, is there a more simple way to center the logo header image through site_specific_styles.php rather then going to /includes/templates/clone/common/tpl_header.php and changing
from:
Code:$sales_text_class = (HEADER_SALES_TEXT !== '') ? 'col-sm-4' : 'col-sm-12';
?>
<div class="<?php echo $sales_text_class; ?>">
<a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" aria-label="<?php echo TEXT_HEADER_ARIA_LABEL_LOGO; ?>">
to:
Code:$sales_text_class = (HEADER_SALES_TEXT !== '') ? 'text-center w-100' : 'col-sm-12';
?>
<div class="<?php echo $sales_text_class; ?>">
<a class="d-block" href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" aria-label="<?php echo TEXT_HEADER_ARIA_LABEL_LOGO; ?>">
I don't see an id="navEZPagesTop" element, but I do see id="ezpagesBarHeader" and id="ezpagesBarFooter". To center the links in those navigation elements, try the following CSS:
For aligning the logo image, the issue (I think) is that the id="taglineWrapper" should be a col-sm-8 when there's a tagline. It's currently col-sm-12, which causes it to be not aligned with the image since 4 + 12 > 12. I agree with the use of class="d-block" on the anchor tag that holds the image, that makes it easier for sites that want the image centered.Code:#ezpagesBarHeader > ul, #ezpagesBarFooter > ul {
justify-content: center;
}
Above changes addressed in this (https://github.com/lat9/ZCA-Bootstra...ate/issues/289) GitHub issue.<br type="_moz">
That works great! Thank you :DCode:#ezpagesBarHeader > ul, #ezpagesBarFooter > ul {
justify-content: center;
}
Hi All,
Just wanted to know if the bootstrap template (latest one just installed not long ago) has the length, width and Height (Products category section) included in it and if not what file do I need to edit and location please in order to add.
Those non-standard product fields aren't included in the base template's product display. To add them to your template-clone, you'll edit (assuming that your products are of Product - General type) /includes/templates/your_clone/templates/tpl_product_info_display.php, finding this section
If you're running on zc158, those fields will be present in variables $product_info->fields['products_weight'], $product_info->fields['products_height'] and $product_info->fields['products_length'] ... or whatever product-table field name you've chosen to use!Code:<!--bof Product details list -->
<?php
$display_product_model = ($flag_show_product_info_model === '1' && $products_model !== '');
$display_product_weight = ($flag_show_product_info_weight === '1' && $products_weight != 0);
$display_product_quantity = ($flag_show_product_info_quantity === '1');
$display_product_manufacturer = ($flag_show_product_info_manufacturer === '1' && !empty($manufacturers_name));
if ($display_product_model === true || $display_product_weight === true || $display_product_quantity === true || $display_product_manufacturer === true) { ?>
<ul id="productInfo-productDetailsList" class="productDetailsList list-group mb-3">
<?php echo (($display_product_model === true) ? '<li class="list-group-item">' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li class="list-group-item">' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li class="list-group-item">' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li class="list-group-item">' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<?php
}
?>
<!--eof Product details list -->
Hi lat9,
And thank you for the help greatly appreciated. It is now looking as it should.
v3.6.1 of the ZCA Bootstrap Template is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191
This release contains changes associated with the following GitHub issues:
#271: Correct accessibility issue when <h1> text is an empty string.
#276: Correct misspelled CSS property name: cursor, not curser.
#278: Add titles for accessibility on Navigation Previous/Next buttons.
#279: "Fit" content on shipping-estimator form fields so that they're not 100% wide.
#280: Add spaces between text values on shopping-cart display page.
#281: Ensure that the quantity-update icon is an FA icon, regardless of the Update button's title's character length.
#284: Refactor shopping-cart page layout, especially for small screens.
#286: Correct shopping-cart delete icon/checkbox formatting when a product has a fixed-quantity display.
#288: Update jQuery to 3.7.1.
#289: Correct header/logo area layout.