[SOLVED]problem with paypal express checkout module Phonenix[1.0.8.8]

Ask the community for help and support.
Post Reply
bitit
VIP Member
VIP Member
Posts: 67
Joined: Thu Jun 24, 2021 4:00 pm
Has thanked: 1 time
Been thanked: 3 times

[SOLVED]problem with paypal express checkout module Phonenix[1.0.8.8]

Post by bitit »

Hi i have imported a old database in phoenix 1.0.8.8, all seem working fine less paypal express checkout module .

i have the following error:
printf(): Too few arguments in PATH/olio-extravergine/includes/modules/content/product_info/templates/tpl_cm_pi_reviews.php on line 12\nPHP message: PHP Warning: sprintf(): Too few arguments in PATH/olio-extravergine/includes/modules/content/product_info/templates/tpl_cm_pi_reviews.php on line 12\nPHP message: PHP Warning: sprintf(): Too few arguments in PATH/olio-extravergine/includes/modules/content/product_info/templates/tpl_cm_pi_reviews.php on line 12\n'
[Tue Dec 21 19:20:34.638149 2021] [proxy_fcgi:error] [pid 8638] [client 185.227.246.147:55529] AH01071: Got error 'PHP message: PHP Notice: Undefined index: name in PATH/olio-extravergine/ext/modules/payment/paypal/express.php on line 46\nPHP message: PHP Notice: Undefined index: iso_code_2 in PATH/olio-extravergine/ext/modules/payment/paypal/express.php on line 47\nPHP message: PHP Notice: Undefined index: iso_code_3 in PATH/olio-extravergine/ext/modules/payment/paypal/express.php on line 48\nPHP message: PHP Notice: Undefined index: format_id in PATH/olio-extravergine/ext/modules/payment/paypal/express.php on line 49\n', referer: https://www.olivierasantangelo.it/olio- ... g_cart.php

so i have analyzed the file
PATH/olio-extravergine/ext/modules/payment/paypal/express.php
where i believe have found the problem, that i don't know if is a bug o some error in database importations.

the file contains

Code: Select all

  'zone_id' => STORE_ZONE,
        'zone_name' => tep_get_zone_name(STORE_COUNTRY, STORE_ZONE, ''),
        'country_id' => STORE_COUNTRY,
        'country_name' => $country['name'],
        'country_iso_code_2' => $country['iso_code_2'],
        'country_iso_code_3' => $country['iso_code_3'],
        'address_format_id' => $country['format_id'],
        
but
$country['name'], $country['iso_code_2'], $country['iso_code_3'], $country['format_id'],
i can't find in the database ,

so i have look a old version perfectly work of the same file i old phoenix 1.0.1.x

the file contains

Code: Select all

 'zone_id' => STORE_ZONE,
                      'zone_name' => tep_get_zone_name(STORE_COUNTRY, STORE_ZONE, ''),
                      'country_id' => STORE_COUNTRY,
                      'country_name' => $country['countries_name'],
                      'country_iso_code_2' => $country['countries_iso_code_2'],
                      'country_iso_code_3' => $country['countries_iso_code_3'],
                      'address_format_id' => tep_get_address_format_id(STORE_COUNTRY));
                      
this fields are present in table country of database

can be a bug? or i have lose something in database importing?

Enrico
ps.forgive my English
Last edited by bitit on Wed Jan 12, 2022 11:44 am, edited 1 time in total.

Tags:
bitit
VIP Member
VIP Member
Posts: 67
Joined: Thu Jun 24, 2021 4:00 pm
Has thanked: 1 time
Been thanked: 3 times

Re: problem with paypal express checkout module Phonenix[1.0.8.8]

Post by bitit »

Ok. to make sure, I did a fresh install on another server, but i have the same erorr. .

i 'll tri to edit the file with informations that i suppose correct, i 'll report the results

Enrico
bitit
VIP Member
VIP Member
Posts: 67
Joined: Thu Jun 24, 2021 4:00 pm
Has thanked: 1 time
Been thanked: 3 times

Re: problem with paypal express checkout module Phonenix[1.0.8.8]

Post by bitit »

i have found also this erorr
2021-12-28 19:51:58 Access 217.133.20.59 200 POST /PATH/ext/modules/payment/paypal/express.php?format=json HTTP/1.0 PATH/shopping_cart.php Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 468 Accesso SSL/TLS Apache
2021-12-28 19:52:15 Error 217.133.20.59 500 GET /PATH/ext/modules/payment/paypal/express.php?osC_Action=retrieve&token=EC-xxxxxxxxxxxxxxx0R&PayerID=xxxxxxxxxxxxxxx HTTP/1.0
User avatar
ReneH4
Posts: 154
Joined: Mon Oct 26, 2020 12:00 pm
Has thanked: 12 times
Been thanked: 17 times

Re: problem with paypal express checkout module Phonenix[1.0.8.8]

Post by ReneH4 »

I like the way you spell the word "error" :D

bitit wrote: Tue Dec 28, 2021 6:58 pm i have found also this erorr
2021-12-28 19:51:58 Access 217.133.20.59 200 POST /PATH/ext/modules/payment/paypal/express.php?format=json HTTP/1.0 PATH/shopping_cart.php Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 468 Accesso SSL/TLS Apache
2021-12-28 19:52:15 Error 217.133.20.59 500 GET /PATH/ext/modules/payment/paypal/express.php?osC_Action=retrieve&token=EC-xxxxxxxxxxxxxxx0R&PayerID=xxxxxxxxxxxxxxx HTTP/1.0
bitit
VIP Member
VIP Member
Posts: 67
Joined: Thu Jun 24, 2021 4:00 pm
Has thanked: 1 time
Been thanked: 3 times

Re: problem with paypal express checkout module Phonenix[1.0.8.8]

Post by bitit »

ReneH4 wrote: Wed Dec 29, 2021 4:24 pm I like the way you spell the word "error" :D

;) I usually make worse errors
bitit
VIP Member
VIP Member
Posts: 67
Joined: Thu Jun 24, 2021 4:00 pm
Has thanked: 1 time
Been thanked: 3 times

Re: problem with paypal express checkout module Phonenix[1.0.8.8]

Post by bitit »

OK SOLVED , is bug in the code the solutions is indicate in this topic
viewtopic.php?f=10&t=551
/ext/modules/payment/paypal/express.php(393)
The easiest would be to change line 393 to
Code: Select all

Code: Select all

   $ship_suburb = tep_db_prepare_input($appPayPalEcResult['PAYMENTREQUEST_0_SHIPTOSTREET2'] ?? '');
Post Reply