route aimeos_shop_checkout throwing ArgumentCountError

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
sheerazabbas
Posts: 3
Joined: 31 May 2023, 04:59

route aimeos_shop_checkout throwing ArgumentCountError

Post by sheerazabbas » 31 May 2023, 05:29

Hi Dear,

I just enabled the paypal express and all seems working fine, after the 5th ( summary ) step of checkout, once clicked at "Buy now" button it is throwing ArgumentCountError (252 arguments are required, 2 given) from Middleware/SetLocale.php

please check attach error log images.

any kind of help will be highly appreciated. thanks.
Attachments
versions
versions
Screenshot 2023-05-31 at 10.27.00 AM.png (69.34 KiB) Viewed 2559 times
error-log
error-log
Screenshot 2023-05-31 at 10.26.48 AM.png (120.17 KiB) Viewed 2559 times

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: route aimeos_shop_checkout throwing ArgumentCountError

Post by aimeos » 31 May 2023, 07:32

setLocale() is not the problem, click on "Expand all vendor frames" to see the last 2-3 entries
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sheerazabbas
Posts: 3
Joined: 31 May 2023, 04:59

Re: route aimeos_shop_checkout throwing ArgumentCountError

Post by sheerazabbas » 31 May 2023, 14:31

here is "Expanded all vendor frames" with some last logs
Attachments
expanded logs
expanded logs
Screenshot 2023-05-31 at 7.29.17 PM 2.png (86.48 KiB) Viewed 2543 times

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: route aimeos_shop_checkout throwing ArgumentCountError

Post by aimeos » 31 May 2023, 14:37

Check the "paypalexpress.PaypalUrl" value in Setup > Services > PayPal in the admin backend. It seems like it's value is wrong and you can remove the complete line so the default value will be used again.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sheerazabbas
Posts: 3
Joined: 31 May 2023, 04:59

Re: route aimeos_shop_checkout throwing ArgumentCountError

Post by sheerazabbas » 01 Jun 2023, 03:46

Dear,

Thanks for support and replying.

The value for the "paypalexpress.PaypalUrl" that I was using was "https://www.sandbox.paypal.com/webscr&c ... ken=%251$s"

as I was integrating according to the sandbox level configuration.

deleted this line and got the default value as "https://www.paypal.com/webscr&cmd=_expr ... token=%1$s"

and it is working now.

all other values like
- paypalexpress.ApiEndpoint
- paypalexpress.ApiSignature
- paypalexpress.ApiUsername

are according to sandbox environment.

Post Reply