• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 26.03.20, 10:28
  • Opened by: Alberto
  • Closed by: Fred
  • Closed on: 30.03.20, 10:28
  • Reason: Closed
  • Comment: Glad to help!

Ticket #17119 - cart in amp, error 500

hi, this is the detail of the error (same error in prestashop 1.7.6.3 and prestashop 1.7.6.4, alysum Version 5.4.0 ):

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Ps_checkout::hookPaymentOptions(), 0 passed in /var/www/vhosts/www.mydomain.com/httpdocs/ps1763/modules/pk_amp/controllers/front/checkout.php on line 122 and exactly 1 expected in /var/www/vhosts/www.mydomain.com/httpdocs/ps1763/modules/ps_checkout/ps_checkout.php:432\nStack trace:\n#0 /var/www/vhosts/www.mydomain.com/httpdocs/ps1763/modules/pk_amp/controllers/front/checkout.php(122): Ps_checkout->hookPaymentOptions()\n#1 /var/www/vhosts/www.mydomain.com/httpdocs/ps1763/modules/pk_amp/controllers/front/checkout.php(78): Pk_AmpCheckoutModuleFrontController->injectPaymentModulesScripts()\n#2 /var/www/vhosts/www.mydomain.com/httpdocs/ps1763/classes/controller/Controller.php(292): Pk_AmpCheckoutModuleFrontController->initContent()\n#3 /var/www/vhosts/www.mydomain.com/httpdocs/ps1763/classes/Dispatcher.php(515): ControllerCore->run()\n#4 /var/www/vhosts/www.mydomain.com/ht...\n', referer: https://www.mydomain.com/ps1763/es/mobile

any solution please?

Comments

Fred 26 Mar 2020, 10:53

Hi, Alberto.
Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office and FTP

Alberto 26 Mar 2020, 11:08

Hi Fred, data filled.
Thanks

Lgexpro 26 Mar 2020, 11:13

Same for me
impossible to use amp checkout process because php fatal error raise with the same !

i try braintree ps checkout native, bankwire

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Ps_checkout::hookPaymentOptions(), 0 passed in /var/www/prestashop/modules/pk_amp/controllers/front/checkout.php on line 122 and exactly 1 expected in /var/www/prestashop/modules/ps_checkout/ps_checkout.php:432\nStack trace:\n#0 /var/www/prestashop/modules/pk_amp/controllers/front/checkout.php(122): Ps_checkout→hookPaymentOptions()\n#1 /var/www/prestashop/modules/pk_amp/controllers/front/checkout.php(78): Pk_AmpCheckoutModuleFrontController→injectPaymentModulesScripts()\n#2 /var/www/prestashop/classes/controller/Controller.php(292): Pk_AmpCheckoutModuleFrontController→initContent()\n#3 /var/www/prestashop/classes/Dispatcher.php(515): ControllerCore→run()\n#4 /var/www/prestashop/index.php(28): DispatcherCore→dispatch()\n#5 {main}\n thrown in /var/www/prestashop/modules/ps_checkout/ps_checkout.php on line 432,

my env settings :

ps 1.7.6.4
php 7.1.33
php modapache 2 with apache 2.4.10

best

Alberto 26 Mar 2020, 11:39

In my test, it’s a clean prestashop installation.
regards

Lgexpro 26 Mar 2020, 12:14

idem

Fred 26 Mar 2020, 12:16

AMP is not compatible with ps_checkout module. Give me a time, I’ll try to find a solution

Fred 28 Mar 2020, 12:19

@Alberto: The issue has to be fixed now.
@Lgexpro: Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office and FTP

Alberto 28 Mar 2020, 19:31

hi Fred, then? need i reinstall any module or theme?
Thanks

Fred 28 Mar 2020, 19:35

The issue has been fixed. Please test to confirm the change

Lgexpro 30 Mar 2020, 08:44

thank last update fixed my pb;)
you’re the best Fred;)=

Alberto 30 Mar 2020, 08:53

hi, yes, fixed :)
Thanks

Fred 30 Mar 2020, 10:28

you are welcome