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.

This topic contains 5 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 10 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 17, 2023 at 8:43 pm #14053453

Maximilian Wellner

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

I just got an error again here on hidden link

error: Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php:297 Stack trace: #0 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(269): WPML_Post_Translation->is_editing_different_post() #1 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-frontend-post-actions.class.php(49): WPML_Post_Translation->has_save_post_action() #2 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp-hook.php(310): WPML_Frontend_Post_Actions->save_post_actions() #3 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/post.php(4715): do_action() #6 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php(97): wp_insert_post() #7 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(102): Abstract_WC_Order_Data_Store_CPT->create() #8 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(186): WC_Order_Data_Store_CPT->create() #9 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(214): WC_Data_Store->create() #10 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(244): WC_Abstract_Order->save() #11 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(449): WC_Order->save() #12 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/express-checkout/includes/class-express-checkout-gateway.php(213): WC_Checkout->create_order() #13 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp-hook.php(308): Express_Checkout_Gateway->handle_wc_api() #14 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #15 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #16 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action() #17 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp-hook.php(308): WC_API->handle_api_requests() #18 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #19 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() #20 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp.php(399): do_action_ref_array() #21 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/class-wp.php(780): WP->parse_request() #22 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-includes/functions.php(1334): WP->main() #23 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-blog-header.php(16): wp() #24 /home/869142.cloudwaysapps.com/rttmkcussu/public_html/index.php(17): require('/home/869142.cl...') #25 {main} thrown in /home/869142.cloudwaysapps.com/rttmkcussu/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php on line 297

July 18, 2023 at 10:11 am #14057221

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

May I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards.

Also provide following detail to investigate/observe the issue with detailed steps to reproduce and links to pages in admin and on frontend.

Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site, which may cause conflicts with the live site otherwise.

Please confirm it in your next reply or let me know if you do not agree with the mentioned.

I've set your next reply as private to share this information safely.

IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

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

Regards.

July 19, 2023 at 10:12 am #14064799

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access details.

Can you please provide detailed steps to reproduce the issue and links to pages in admin and on frontend?

Secondly, it 'll be great if you can provide FTP access also, so I can check for error/debug logs as well.

I've set your next reply as private to share this information safely.

July 20, 2023 at 8:25 am #14070081

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the details, I am working on this and 'll get back to you as soon as I find something or have a solution.

July 20, 2023 at 11:47 am #14071923

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience on this.

I've checked the history and details about this issue, from your previous report. I am trying to consult with the team and 'll get back to you ASAP.

July 21, 2023 at 2:22 pm #14080517

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation on this.

Team offers the following workaround:

- Open the wp-content/plugins/express-checkout/includes/class-express-checkout-gateway.php file

- Replace the following snippet:

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

With:

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

I hope this may fix the issue. However, unfortunately, this plugin isn't on our compatibility list and we've no direct contact with the author. I'll advise to ask the plugin author for a proper compatibility (https://wordpress.org/support/plugin/express-checkout/).

WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details.

Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.

Regards.