Zen Cart Logo
Forums / Addon Shipping Modules / Shipstation no longer working after upgrading to 2.0

Shipstation no longer working after upgrading to 2.0

Views: 1,699

Results 1 to 2 of 2
17 Apr 2024, 3:19 PM
#1
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Shipstation no longer working after upgrading to 2.0

V2.0
PHP 8.1
redsautorehab.com

I just upgraded to 2.0, and got all the little bugs worked out so far, but shipstation is not importing orders, and I am getting this error:

[17-Apr-2024 09:06:23 America/Boise] Request URI: /shipstation_zc.php?SS-UserName=&SS-Password=&action=export&start_date=04%2f16%2f2024+10%3a11&end_date=04%2f18%2f2024+08%3a06&page=1, IP address: 34.199.251.255, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /home1/redsauto/public_html/shipstation_zc.php(42): str_replace()
#2 /home1/redsauto/public_html/shipstation_zc.php(196): AddFieldToXML()
--> PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home1/redsauto/public_html/shipstation_zc.php on line 42.

Any help would be greatly appreciated.

17 Apr 2024, 7:38 PM
#2
swguy avatar

swguy

Administrator

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

Re: Shipstation no longer working after upgrading to 2.0

Change line 42 from

$Result = str_replace($FindStr, $NewStr, $Value);

to

$Result = str_replace($FindStr, $NewStr, ($Value ?? ''));

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.