If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading to 2.x.x / Error log - viewing Invoice from Admin

Error log - viewing Invoice from Admin

Started by brian70809 on 16 Feb 2025, 2:23 AM · Views: 514

Results 1 to 2 of 2
16 Feb 2025, 2:23 AM
#1
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Error log - viewing Invoice from Admin

ZC 2.1 - upgraded from 1.57
php 8.3

getting this error when viewing invoice from Admin side.

--> PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in
AdminDir/includes/functions/html_output.php on line 150.

Thanks!

16 Feb 2025, 11:32 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Error log - viewing Invoice from Admin

Looks like this is fixed in Github. You could pull the new copy of this file and update this function, or just change the offending line to

if ($height !== '' && !str_contains($params ? '', 'height:')) {

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.