Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

The client is unable to open or edit a Spanish page on their site hosted on Pantheon after implementing a fix for a file writing issue. They encounter a PHP fatal error related to 'array_key_exists()' and 'Elementor\Core\Schemes\Color' class not found, along with JavaScript errors in the browser.

Solution:

1. We recommended following the steps outlined in the WPML forum post to address the Elementor integration issue. For more details, visit WPML forum post.

2. We suggested going to WPML->Languages->Hidden Languages to unhide the language and check if the issue persists.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem continues, please open a new support ticket at WPML support forum for further assistance.

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 4 replies, has 1 voice.

Last updated by annaH-23 1 week, 6 days ago.

Assisted by: Shekhar Bhandari.

Author Posts
December 19, 2024 at 4:25 pm #16531097

annaH-23

Background of the issue:
I am trying to edit a Spanish page on my site hosted on Pantheon. I have implemented a fix for the 'can't write files' issue, but now I can't open or edit the Spanish page I just made.

Symptoms:
I am seeing a PHP error: 'PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array'. Additionally, there is a JS error in the browser: 'web-cli.min.js?ver=3.26.1:3 SyntaxError: Unexpected token 'W', "Warning: C"... is not valid JSON'.

Questions:
Why can't I open or edit the Spanish page I just made?
How can I resolve the PHP and JS errors I'm encountering?

December 20, 2024 at 2:55 pm #16534688

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Could you please provide the full stack trace of the Fatal Error? You can find this information in your debug.log. This will help us identify the affected file and line number. Thank you!

Best regards,
Marcel

December 20, 2024 at 4:22 pm #16534937

annaH-23

Does this help?

Deprecated: Automatic conversion of false to array is deprecated in /code/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php on line 19

Deprecated: Creation of dynamic property wpml_cms_nav_cache::$name is deprecated in /code/wp-content/plugins/wpml-cms-nav/inc/cache.class.php on line 36

Deprecated: Creation of dynamic property wpml_cms_nav_cache::$cache_to_option is deprecated in /code/wp-content/plugins/wpml-cms-nav/inc/cache.class.php on line 37

There is also all of this:

PHP Fatal error: Uncaught Error: Class "Elementor\Core\Schemes\Color" not found in /code/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/WidgetAdaptor.php:156
Stack trace:
#0 /code/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/Widget.php(50): WPML\PB\Elementor\LanguageSwitcher\WidgetAdaptor->registerControls()
#1 /code/wp-content/plugins/elementor/includes/base/controls-stack.php(2386): WPML\PB\Elementor\LanguageSwitcher\Widget->register_controls()
#2 /code/wp-content/plugins/elementor/includes/base/widget-base.php(1050): Elementor\Controls_Stack->init_controls()
#3 /code/wp-content/plugins/elementor/includes/base/controls-stack.php(569): Elementor\Widget_Base->init_controls()
#4 /code/wp-content/plugins/elementor/includes/base/widget-base.php(184): Elementor\Controls_Stack->get_stack()
#5 /code/wp-content/plugins/elementor/includes/base/controls-stack.php(314): Elementor\Widget_Base->get_stack()
#6 /code/wp-content/plugins/elementor/includes/base/controls-stack.php(2475): Elementor\Controls_Stack->get_controls()
#7 /code/wp-content/plugins/elementor/includes/base/controls-stack.php(1158): Elementor\Controls_Stack->sanitize_settings(Array)
#8 /code/wp-content/plugins/elementor/includes/base/element-base.php(613): Elementor\Controls_Stack->get_data()
#9 /code/wp-content/plugins/elementor/includes/base/widget-base.php(749): Elementor\Element_Base->get_raw_data(false)
#10 /code/wp-content/plugins/elementor/includes/base/element-base.php(618): Elementor\Widget_Base->get_raw_data(false)
#11 /code/wp-content/plugins/elementor/includes/base/element-base.php(618): Elementor\Element_Base->get_raw_data(false)
#12 /code/wp-content/plugins/elementor/includes/base/element-base.php(618): Elementor\Element_Base->get_raw_data(false)
#13 /code/wp-content/plugins/elementor/core/base/document.php(1084): Elementor\Element_Base->get_raw_data(false)
#14 /code/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(435): Elementor\Core\Base\Document->get_elements_raw_data(Array, false)
#15 /code/wp-content/plugins/elementor/modules/usage/module.php(570): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_elements_raw_data(Array)
#16 /code/wp-content/plugins/elementor/modules/usage/module.php(183): Elementor\Modules\Usage\Module->save_document_usage(Object(ElementorPro\Modules\ThemeBuilder\Documents\Header))
#17 /code/wp-content/plugins/elementor/modules/usage/module.php(296): Elementor\Modules\Usage\Module->after_document_save(Object(ElementorPro\Modules\ThemeBuilder\Documents\Header))
#18 /code/wp-content/plugins/elementor/core/upgrade/upgrades.php(654): Elementor\Modules\Usage\Module->recalc_usage(100, 0)
#19 /code/wp-content/plugins/elementor/core/upgrade/upgrades.php(31): Elementor\Core\Upgrade\Upgrades::recalc_usage_data(Object(Elementor\Core\Upgrade\Updater))
#20 [internal function]: Elementor\Core\Upgrade\Upgrades::_on_each_version(Object(Elementor\Core\Upgrade\Updater))
#21 /code/wp-content/plugins/elementor/core/base/background-task.php(274): call_user_func(Array, Object(Elementor\Core\Upgrade\Updater))
#22 /code/wp-content/plugins/elementor/core/base/background-task.php(178): Elementor\Core\Base\Background_Task->task(Array)
#23 /code/wp-content/plugins/elementor/core/base/background-process/wp-background-process.php(183): Elementor\Core\Base\Background_Task->handle()
#24 /code/wp-includes/class-wp-hook.php(324): Elementor\Core\Base\BackgroundProcess\WP_Background_Process->maybe_handle('')
#25 /code/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#26 /code/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#27 /code/wp-admin/admin-ajax.php(192): do_action('wp_ajax_element...')
#28 {main}
thrown in /code/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/WidgetAdaptor.php on line 156
[18-Dec-2024 12:09:31 UTC] PHP Warning: Undefined array key 167 in /code/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-tm-page-builders-field-wrapper.php on line 121

December 23, 2024 at 2:39 pm #16540771

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you please follow the steps as mentioned here and let me know if this helps?
https://wpml.org/forums/topic/fatal-error-uncaught-error-class-elementorcoreschemescolor/#post-14019045

Look forward to your reply.

Thanks

December 23, 2024 at 5:09 pm #16541265

annaH-23

The site is already seat to use 256MB.

After I switch off all plugins except Elementor/Elementor Pro, including switching off WPML, I can then edit the Spanish version of the Homepage page.

Switching WPML back on, results in the page again being uneditable.

Deactivating, removing, and reinstalling the WPML plugins, also results in the page being uneditable.

December 24, 2024 at 4:00 am #16542293

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

December 24, 2024 at 10:31 am #16543276

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Go to WPML->Languages->Hidden Languages and unhide the language and check the issue once, does it help for you?

Look forward to your reply.

Thanks

December 24, 2024 at 10:41 am #16543296

annaH-23

That's fixed it!