If this is your first visit, check our documentation. To post, register or login.

getting error

Started by jimmie on 11 Oct 2024, 12:43 PM · Views: 583

Results 1 to 3 of 3
11 Oct 2024, 12:43 PM
#1
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Post #1 by jimmie

zen version 2.01 php 8.0
template called neon
[11-Oct-2024 08:29:53 America/New_York] Request URI: /index.php?main_page=index&cPath=1_3_24, IP address: 47.128.48.172, Language id 1
#1 require(/includes/templates/neoncart/wt_common/tpl_wt_template_settings.php) called at [/includes/templates/neoncart/wt_common/tpl_wt_before_body_start.php:11]
#2 require(/includes/templates/neoncart/wt_common/tpl_wt_before_body_start.php) called at [/includes/templates/neoncart/common/tpl_main_page.php:67]
#3 require(/includes/templates/neoncart/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $catslide_col_xxl in /includes/templates/neoncart/wt_common/tpl_wt_template_settings.php on line 132.

[11-Oct-2024 08:29:53 America/New_York] Request URI: /index.php?main_page=index&cPath=1_3_24, IP address: 47.128.48.172, Language id 1
#1 require(/includes/templates/neoncart/wt_common/tpl_wt_template_settings.php) called at [/includes/templates/neoncart/wt_common/tpl_wt_before_body_start.php:11]
#2 require(/includes/templates/neoncart/wt_common/tpl_wt_before_body_start.php) called at [/includes/templates/neoncart/common/tpl_main_page.php:67]
#3 require(/includes/templates/neoncart/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $catslide_col_xl in /includes/templates/neoncart/wt_common/tpl_wt_template_settings.php on line 133.
and lines from file

if ( ( $current_page_base == 'index' && ( isset( $_GET['cPath'] ) && $_GET['cPath'] != '' ) && $category_depth == 'products' ) || ( $current_page_base == 'index' and ( !empty( $_GET['manufacturers_id'] ) ) ) || in_array($current_page_base, array( 'specials', 'featured_products', 'products_new', 'products_all', 'search_result' ) ) ) {
	$show_rows = 1;
	$show_xxl_columns = ( $catslide_col_xxl ) ? $catslide_col_xxl : '';
	$show_xl_columns = ( $catslide_col_xl ) ? $catslide_col_xl : '';
	$show_lg_columns = ( $prodgrid_col_lg ) ? $prodgrid_col_lg : '';
	$show_md_columns = ( $prodgrid_col_md ) ? $prodgrid_col_md : '';
	$show_sm_columns = ( $prodgrid_col_sm ) ? $prodgrid_col_sm : '';
	$show_xs_columns = ( $prodgrid_col_xs ) ? $prodgrid_col_xs : '';
}

how do i fix this?

11 Oct 2024, 2:29 PM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #2 by balihr

That's a commercial template so you should be able to get support from the template author.

You're using it on a version of Zen Cart that is not officially supported by the template, plus it's most likely not ready for php 8.x (just like their wokiee template). It does say it supports ZC 1.5.8, but there's no mention of php version... I know for a fact that wokiee (template from the same author) does indeed work on 1.5.8 and doesn't generate any warnings on php 7.4, but the moment you switch to 8.x, you're stuck with a ton of warnings...

Good luck!

My site - Pro ZC Help
My portfolio | My plugins

11 Oct 2024, 2:35 PM
#3
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #3 by carlwhat

neoncart looks to have had 1 release back in 3/2023; i would contact the template author, as i'm sure there are multiple errors, and that this is just the start.

that said, you can try:

if (($current_page_base == 'index' && (isset($_GET['cPath']) && $_GET['cPath'] != '') && $category_depth == 'products') || ($current_page_base == 'index' and (!empty($_GET['manufacturers_id']))) || in_array($current_page_base, ['specials', 'featured_products', 'products_new', 'products_all', 'search_result',])) {
        $show_rows = 1;
        $show_xxl_columns = $catslide_col_xxl ?? '';
        $show_xl_columns = $catslide_col_xl ?? '';
        $show_lg_columns = $prodgrid_col_lg ?? '';
        $show_md_columns = $prodgrid_col_md ?? '';
        $show_sm_columns = $prodgrid_col_sm ?? '';
        $show_xs_columns = $prodgrid_col_xs ?? '';
    }

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.