Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 STRPOS deprecation passing int as needle?
Author « Topic »  

OrientalOutpost
Advanced Member

China
302 Posts

Pre-sales questions only
(More Details...)

Posted - 10/12/2021 :  21:07:26  
I'm getting intermittent deprecation warnings for strpos - passing an int as needle. Code located in inccart.php lines 7124 and 7125:

if(strpos($errormsg,$GLOBALS['xxInvZip'])!==FALSE || strpos($errormsg,$GLOBALS['xxPlsZip'])!==FALSE) $invalidzip=TRUE; else $invalidzip=FALSE;
if(strpos($errormsg,$GLOBALS['xxPlsSta'])!==FALSE) $invalidstate=TRUE; else $invalidstate=FALSE;

I'm using PHP 7.3.28
Just updated to ECT 7.3.6

Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in .../public_html/vsadmin/inc/inccart.php on line 7124

Time to update?


[url="https://www.OrientalOutpost.com"]Oriental Outpost Custom Wall Scrolls[/url]

Edited by - OrientalOutpost on 10/12/2021 21:10:35

Vince
Administrator

42466 Posts

Posted - 10/13/2021 :  00:11:10  
Hi OrientalOutpost
Those lines of code shouldn't give an error and normally don't do so. The "needle" in this case which is a non-string are the values for ...
$xxInvZip
$xxPlsZip
Could you check in your vsadmin/includes.php file to see if you have changed the definition of these?

Vince


Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000