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.

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by Prosenjit Barman 1 year, 8 months ago.

Assisted by: Prosenjit Barman.

Author Posts
September 30, 2023 at 8:24 pm #14492077

didierH-4

Hi,

After so many problems with WPML, and no support until Monday (thats very long for guys who work 7d/7), we decided to restore a backup made before installing WPML, and to restart all the installation process.
And... we get a FAYAL error (but are we even surprised ?) :

Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/wpml-sticky-links/classes/custom-fields.php:169 Stack trace: #0 /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/wpml-sticky-links/classes/custom-fields.php(169): array_key_exists() #1 /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/wpml-sticky-links/classes/custom-fields.php(83): WPML\SL\CustomFields->getSettings() #2 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/class-wp-hook.php(310): WPML\SL\CustomFields->convertUrlsInCustomField() #3 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #4 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/meta.php(156): do_action() #6 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/meta.php(252): add_metadata() #7 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/post.php(2548): update_metadata() #8 /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/factory.php(356): update_post_meta() #9 /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/post_factory.php(67): Toolset_Field_Group_Factory->create_field_group() #10 /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/woocommerce/fields.php(275): Toolset_Field_Group_Post_Factory::create() #11 /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/woocommerce/fields.php(257): OTGS\Toolset\Common\Interop\Handler\WooCommerce\Fields->create_field_group() #12 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/class-wp-hook.php(310): OTGS\Toolset\Common\Interop\Handler\WooCommerce\Fields->autoregister_woocommerce_fields() #13 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #14 /home/u828035979/domains/onaturalis.bio/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #15 /home/u828035979/domains/onaturalis.bio/public_html/wp-settings.php(610): do_action() #16 /home/u828035979/domains/onaturalis.bio/public_html/wp-config.php(89): require_once('/home/u82803597...') #17 /home/u828035979/domains/onaturalis.bio/public_html/wp-load.php(50): require_once('/home/u82803597...') #18 /home/u828035979/domains/onaturalis.bio/public_html/wp-admin/admin.php(34): require_once('/home/u82803597...') #19 /home/u828035979/domains/onaturalis.bio/public_html/wp-admin/plugins.php(10): require_once('/home/u82803597...') #20 {main} thrown in /home/u828035979/domains/onaturalis.bio/public_html/wp-content/plugins/wpml-sticky-links/classes/custom-fields.php on line 169

That's working now, after reloading the page. But it's a bit worrying.

Could you please explain and really help us making this stuff work ?

Regards,

Didier

P.S. : I can't provide the debug information, because the plugin is only installed and activated, but not effective

October 1, 2023 at 9:19 am #14492645

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

I will add the first reply before this ticket is assigned to one of my colleagues.

It seems that there is an issue with WPML installation and from what I see on the error you might have installed all the plugins listed in WordPress Dashboard > Plugins > Add New > Commercial (tab)?

If that is the case please do as follows:

- Access your website files and rename the folder below:

wp-content/plugins/wpml-sticky-links

to:

wp-content/plugins/wpml-sticky-links-old

That will cause your WordPress dashboard to come back.

Go to WordPress Dashboard > Plugins, deactivate and delete all WPML related plugins which you have installed and only keep WPML Multilingual CMS and WPML String Translations.

You will not need any other plugins from WPML unless you have a specific plugin that needs a glue plugin from WPML.

If you share the debug information with us we will give you the list of plugins you need fo your website:

https://wpml.org/faq/provide-debug-information-faster-support

Thanks.

October 1, 2023 at 10:38 am #14492799

didierH-4

Hi Christopher,

Thank you so much for your prompt answer.

Finally, I restored a clean backup, deleted Polylang cleanly and installed only WPML Multilingual CMS and WPML String Translations. There were no error, this time.

You'll find the WPML debug info attached. Could you please tell me the list of plugins I need for my website ?

I guess Woocommerce Multilingual and Multi-Currency would also be necessary, as our website is a webshop based on Woocommerce.

Thanks for your help ! I really appreciate it.

Best Regards,

Didier

October 2, 2023 at 7:36 am #14495009

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Didier,
I hope you're doing well.

I'm pleased to hear that the fatal error was addressed by following the guidance provided by my colleague, Christopher.

I've reviewed the WPML Debug info and can confirm that everything is set up correctly. Given that you're using the `WooCommerce` and `Rank Math` plugins on your site, please ensure that you activate the "WooCommerce Multilingual" plugin for WooCommerce and the "WPML SEO" plugin for Rank Math. Both are bridge plugins to make WooCommerce and Rank Math SEO plugins work properly in a multilingual environment.

- https://wpml.org/documentation/related-projects/woocommerce-multilingual/
- https://wpml.org/documentation/related-projects/wpml-seo/

I hope it will help. Please let me know if you need any further assistance. I will be happy to help.

Best regards,
Prosenjit