Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Bigul 1 year, 6 months ago.

Assisted by: Bigul.

Author Posts
October 29, 2023 at 3:28 pm #14686931

Maximilian Wellner

hi, this is a followup to https://wpml.org/forums/topic/php-8-1-and-8-2-paypal-error/page/2/

October 30, 2023 at 12:09 pm #14690775

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for your feedback. It looks like the bug is happening because of changes in the plugin. We have already reported this bug to the plugin support. But no feedback yet - https://wordpress.org/support/topic/compatibility-issue-with-wpml-and-php-8-1/

Therefore one request. Please try the workaround after a full site backup{mandatory} and let us know your feedback.

1) Go to *wp-content/plugins/express-checkout/includes* folder
2) Open *class-express-checkout-gateway.php* file for edit
3) Make the following changes and make sure the bug exists

From

$_POST = WC()->session->get('post_data');

To

$_POST = (array) WC()->session->get('post_data');

--
Thanks!

Bigul

October 30, 2023 at 1:46 pm #14692443

Maximilian Wellner

hi bigul,

previuosly you told me to do this workaround:

From

$_POST = WC()->session->get('post_data');
To

$_POST = WC()->session->get('post_data');
$_POST == NULL ? $_POST = array() : $_POST;

what is the difference here?

Also, please check the image. With my current workaround, in PayPal it displays a wrong price, always 2.12€more. (It is not charged though, but weird)

Bildschirmfoto 2023-10-29 um 16.22.36.png
Bildschirmfoto 2023-10-29 um 16.26.09.png
October 30, 2023 at 4:05 pm #14693445

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. There is an *(array)* checking in the workaround code. Please check.

If the issue exists, please fill in the private details fields after a full site backup{mandatory}. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

Also, please allow me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the bug without affecting your live site.

--
Thanks!

Bigul

October 30, 2023 at 6:26 pm #14694433

Maximilian Wellner

and sure, you can create a staging site

November 1, 2023 at 1:06 pm #14707569

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. We made a copy of the site using Duplicator. It took more than expected time because of conflicts with Server settings. Refer to the attached images for more details.

We will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

2023-11-01_14-58-28.png
2023-11-01_14-57-39.png
November 3, 2023 at 10:15 am #14724381

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

This looks like a compatibility issue. But can't reproduce the price difference exactly here. So I am consulting with our team for an expert opinion. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

November 6, 2023 at 8:44 pm #14741933

Maximilian Wellner

ok

November 10, 2023 at 5:28 am #14772265

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Please check the attached images. As a part of our debugging procedures, I have tested it in my local copy with the latest version of WordPress(6.4.1), WooCommerce(8.2.2), and WPML(4.6.7). However, I am not able to reproduce the issue exactly here. Just to make sure, does it happen with specific products?

One request. Please upgrade to the latest versions of plugins/theme after a full site backup{mandatory} and make sure the bug exists or not.

Sorry for the late response because of the holidays.

--
Thanks!

Bigul

2023-11-10_10-52-10.png
2023-11-10_10-51-18.png

The topic ‘[Closed] php 8.1 and 8.2 paypal error’ is closed to new replies.