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

Invalid argument supplied for foreach() #147

Open
s201236215H opened this issue Apr 23, 2018 · 0 comments
Open

Invalid argument supplied for foreach() #147

s201236215H opened this issue Apr 23, 2018 · 0 comments

Comments

@s201236215H
Copy link

s201236215H commented Apr 23, 2018

ErrorException {#3660
#message: "Invalid argument supplied for foreach()"
#code: 0
#file: "/code/public_html/dior/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php"
#line: 44
#severity: E_WARNING
trace: {
/code/public_html/dior/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php:44 {}
/code/public_html/dior/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php:545 {}
/code/public_html/dior/app/Http/Controllers/ApiController.php:321 {
› $approvalUrl = $payment->getApprovalLink();\r
}
/code/public_html/dior/app/Http/Controllers/ApiController.php:157 {}
App\Http\Controllers\ApiController->submit() {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Routing/Route.php:212 {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Routing/Route.php:169 {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658 {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {}
/code/public_html/dior/app/Http/Middleware/ActivityLog.php:37 {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149 {}
/code/public_html/dior/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {}
......

Solutions:
Update paypal/rest-api-sdk-php to "1.13.0"
#148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant