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 6 replies, has 2 voices.

Last updated by Irene 5 years, 10 months ago.

Assigned support staff: Andrey.

Author Posts
October 15, 2013 at 9:20 am #277203

Irene

Hi,

I'm getting an error that seems to slow down my site:

[warn] [client 86.56.66.0] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /pages/57/d9/d0009601/home/htdocs/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php on line 3497, referer: hidden link

The referring post is the home (Start) page.

Can you help?

Thank you!

Irene

October 15, 2013 at 10:56 am #277289

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kiev (GMT+03:00)

Dear Irene,

Thank you for contacting to us !

Could you provide us what WPML and WPML adons versions you are using, theme name and link to website author as well ?

Where you get this error (if possible upload please screenshot) ?

Thanks,
Andrey

October 15, 2013 at 11:05 am #277298

Irene

Hi Andrey,

I'm testing it on a managed server

hidden link

Theme: Cheope
hidden link

Setup:

Woocommerce 2.16
Wooslider 1.09
Wooslider Products 1.06

WMPL Multilingual CMS 2.93
Woocommerce Multilingual 3.0
WPML CMS Nav 1.4
WPML Media 2.01
WPML Sticky Links 1.3
WPML String Translation 1.9
WPML Translation Management 1.8

The error shows up in my server's error log (see attached screenshot). Seems to be hitting the db over and over again.

Please let me know what else you need!

Thank you and kind regards,

Irene

October 15, 2013 at 3:20 pm #277493

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kiev (GMT+03:00)

Dear Irene,

Can you please update WPML Media to the latest version 2.0.2

Please remember to backup your database first before you proceed! You can use a plugin for this if you like (search for WordPress backup plugins)

When update will be done can you, clean up your log and test, still you have errors ?

Thanks,
Andrey

October 16, 2013 at 9:06 am #277822

Irene

Hi Andrey,

updated to WPML Media to 2.0.2. Still the same. Please see screenshot.

Any ideas?

Thank you and kind regards,

Irene

October 16, 2013 at 1:22 pm #277994

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kiev (GMT+03:00)

Dear Irene,

Let's try this - please, open the file /wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php and on line 3483, replace this:

foreach(array_keys($arr) as $arrkey)

With:

foreach(array_keys((array)$arr) as $arrkey)

Please let me know if that solved the problem,

Thanks,
Andrey

October 16, 2013 at 4:41 pm #278079

Irene

Hi Andrey,
thank you! Looks like it worked!

Kind regards,
Irene