Zen Cart Logo
Forums / Upgrading to 2.x.x / Error When Choosing PHP 8.0

Error When Choosing PHP 8.0

Views: 640

Results 1 to 6 of 6
18 Nov 2024, 21:04
#1
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Error When Choosing PHP 8.0

I am running v.1.5.8a and have updated my PHP to version 8 to accommodate an upgrade to Zen Cart Version 2.0.1

When I changed my PHP version from 7.4 to version 8.0, my live site (Zen Cart v.1.5.8a) now throws the error: Undefined variable $flag_show_product_info_tell_a_friend in templates/custom/templates/tpl_product_info_display.php on line 214

Not sure why its doing this as this is same coding in Zen v.2.0.1 that is on my local computer that I am working with to upgrade and I'm running PHP 8 on there.

Thoughts???

Thanks,

Jeff

18 Nov 2024, 21:48
#2
lat9 avatar

lat9

Administrator

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

Re: Error When Choosing PHP 8.0

NWCE:

I am running v.1.5.8a and have updated my PHP to version 8 to accommodate an upgrade to Zen Cart Version 2.0.1

When I changed my PHP version from 7.4 to version 8.0, my live site (Zen Cart v.1.5.8a) now throws the error: Undefined variable $flag_show_product_info_tell_a_friend in templates/custom/templates/tpl_product_info_display.php on line 214

Not sure why its doing this as this is same coding in Zen v.2.0.1 that is on my local computer that I am working with to upgrade and I'm running PHP 8 on there.

Thoughts???

Thanks,

Jeff
There's no setting or use of the $product_show_product_info_tell_a_friend in the as-shipped Zen Cart 1.5.8a release.

I'll suggest that you modify your custom template's tpl_product_info_display.php (on/around line 214) to remove that legacy value's usage.

19 Nov 2024, 12:15
#3
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Error When Choosing PHP 8.0

Thanks lat9 for your reply and to let me know about this dated file I have in my store. I will remove this!

Thanks again for your help!

22 Nov 2024, 14:11
#4
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Error When Choosing PHP 8.0

In upgrading my current site from v.1.5.8 to v.2.0.1, we have a larger store with a huge images folder, downloads, etc. where I normally (after updating custom files, add ons, etc) upload the new Zen Cart version to a newly created folder on my server to run several tests on it before taking it live.

What would be the best way to install my customized test version of v.2.0.1 on my server as I need PHP 8 to have it run, but running my current v.1.5.8 it throws errors and the downloads do not work.

Thanks in advance for any suggestions!

22 Nov 2024, 18:26
#6
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Error When Choosing PHP 8.0

Thanks so much swguy for passing this along! Sorry I did not find it myself through search....

Really appreciate the help!