PHP Warning: Undefined variable
I recently upgraded from 1.5.7d to 1.5.8a and everything is working beautifully - however I am receiving the following DEBUG logs.
Since I am not a programmer - I was hoping that you could provide a snippet that I can add to these pages that will declare the variable and satisfy php to stop the log files.
Zencart 1.5.8a / PHP 8.0
website: https://www.d a n i e l w a l t h e r s.com/dwstore
PHP Warning: Undefined variable $category_depth in /includes/languages/english/responsive_classic/index.php on line 29.
PHP Warning: Undefined variable $category_depth in /includes/languages/english/responsive_classic/index.php on line 46.
PHP Warning: Undefined variable $category_depth in /includes/languages/english/responsive_classic/index.php on line 50.
and also:
PHP Warning: Undefined variable $address_arr in /includes/modules/payment/paypalwpp.php on line 1744.
Any help will be greatly appreciated.
Re: PHP Warning: Undefined variable
The file
includes/languages/english/responsive_classic/index.php
should not be present on a site running 1.5.8a. This is an older style language file.
Re: PHP Warning: Undefined variable
Oh dear!! I see what you mean. Thanks so much for pointing this out.
Re: PHP Warning: Undefined variable
And if an older file was still present, may want to consider what other older files might remain. Easiest to figure out if can determine why that offer file was present. Might just be the one, might not. :unsure:
Re: PHP Warning: Undefined variable
Quote:
PHP Warning: Undefined variable $address_arr in /includes/modules/payment/paypalwpp.php on line 1744.
currently getrting the $address_arr error with 2.0 install. Says line 1740 in 2.0
Since it was not addressed here, any thoughts?
Re: PHP Warning: Undefined variable
Please open a PR and change this check from
$address_arr == FALSE
to
empty($address_arr)
includes/modules/payment/paypalwpp.php line 1740
Re: PHP Warning: Undefined variable
Re: PHP Warning: Undefined variable
Use 2.0 for bug fixes. (Core committers will merge it into master after updating 2.0.)