Home›Support›English Support›[Resolved] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array
[Resolved] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array
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.
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?
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!
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
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
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.