Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct PHP Warning on empty response #7

Closed
lat9 opened this issue Jun 27, 2023 · 0 comments
Closed

Correct PHP Warning on empty response #7

lat9 opened this issue Jun 27, 2023 · 0 comments
Labels
bug Something isn't working fix provided A correction has been provided
Milestone

Comments

@lat9
Copy link
Owner

lat9 commented Jun 27, 2023

From the zen-cart support thread:

I received a warning today. Plug-in version v1.0.0. Zc 1.5.7d. PHP 7.4

[26-Jun-2023 14:39:21 America/New_York] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShipping
#1 upsoauth->getConfiguredUpsQuotes() called at [/includes/modules/shipping/upsoauth.php:383]
#2 upsoauth->quote() called at [/includes/classes/shipping.php:174]
#3 shipping->quote() called at [/includes/classes/ajax/zcAjaxOnePageCheckout.php:163]
#4 zcAjaxOnePageCheckout->updateShipping() called at [/ajax.php:85]
--> PHP Warning: Invalid argument supplied for foreach() in /includes/modules/shipping/upsoauth.php on line 642.

Line 642 is the following:

foreach ($all_ups_quotes->RateResponse->RatedShipment as $next_shipment) {
@lat9 lat9 added the bug Something isn't working label Jun 27, 2023
@lat9 lat9 added this to the v1.1.0 milestone Jun 27, 2023
@lat9 lat9 added the fix provided A correction has been provided label Jun 28, 2023
lat9 added a commit that referenced this issue Jun 28, 2023
@lat9 lat9 closed this as completed Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix provided A correction has been provided
Projects
None yet
Development

No branches or pull requests

1 participant