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.

Author Posts
May 17, 2018 at 2:48 am #2166401

genevieveR-2

Tell us what you are trying to do?

can you help me fix that error in a regular wordpress install, can you sent me the steps, to fix it thanks !:-) - I can sent a temporary access if needed

Warning: array_key_exists(): The first argument should be either a string or an integer in /home/mlabweb3/public_html/test1/wp-content/plugins/wpml-string-translation/classes/performance/class-wpml-st-gettext-hooks.php on line 123

May 18, 2018 at 5:30 pm #2191120

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

It is important to Note that a *warning* or a *notice* in WordPress

According to the official PHP website, warnings are:

non-fatal errors. Execution of the script is not halted

therefore it is not likely that your site will encounter any issues.

To deal with a warnings i recommend one of the following ways.

1. The easy way is to go in your wp-config.php file and look for define(‘WP_DEBUG’, TRUE);.

Change it to:
define('WP_DEBUG', FALSE);

this will remove the warning from showing up in the front end.

If you rather know where its coming from you can follow the next step

2. Testing to see where this warning is generated from by doing a compatibility test

-Back up your site first
-Deactivate all non WPML related plugins
-Switch for a moment to a WordPress default theme like Twenty Fourteen.
-If the issue is gone, activate one by one to see with wich one there is an interaction issue

May 19, 2018 at 3:14 am #2193016

genevieveR-2

Thanks a lot for the help !