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

Last updated by Bruno Kos 7 months, 3 weeks ago.

Assigned support staff: Bruno Kos.

Author Posts
February 20, 2019 at 9:15 am

michaelL-43

I am trying to: Hi, I have updated WPML to the latest version. On my local WP-Installation on my Conputer everything runs fine. But when I migrate the site, I have a white screen on front and backend. Disabeling WPML by renaming the plugin-folder helps to see everything again, but when I enable "WPLM Multilingual CMS" it immediately goes white again.
I tried it on different hosts (Strato and serverprofis.de)

Link to a page where the issue can be seen: hidden link

I expected to see: a working wp

Instead, I got: a white screen

I provided debug-information from my local-site installation on computer, as I can not turn wpml on from the live site

The WP-debug code is this:

Backend:

Fatal error: Uncaught Error: Call to undefined method stdClass::is_enabled() in /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings.php:346 Stack trace: #0 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-inline-styles.php(274): WPML_LS_Settings->get_active_slots() #1 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-admin-ui.php(105): WPML_LS_Inline_Styles->admin_output() #2 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-includes/class-wp-hook.php(286): WPML_LS_Admin_UI->admin_head_action('') #3 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-admin/admin-head in /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings.php on line 346

Frontend:

Fatal error: Uncaught Error: Call to undefined method stdClass::get() in /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings-strings.php:94 Stack trace: #0 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings-strings.php(56): WPML_LS_Settings_Strings->translate_slot_strings(Object(stdClass)) #1 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings.php(250): WPML_LS_Settings_Strings->translate_all(Array) #2 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings.php(378): WPML_LS_Settings->maybe_init_settings() #3 /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings.php(343): WPML_LS_Settings->get_s in /mnt/web109/e2/34/51085934/htdocs/marielund/wp-content/plugins/sitepress-multilingual-cmsz/classes/language-switcher/class-wpml-ls-settings-strings.php on line 94

February 20, 2019 at 3:45 pm #3222705

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

Before we try something else, can you see if this works:
https://wpml.org/forums/topic/server-500-error-2/#post-2802309

"I found an entry in the wp_options table with the option name "wpml_language_switcher". I deleted this row from the database and I was then able to activate the WPML plugin."

It looks like that this client had an exact same error message, so wondering if this will work in your case as well.

Please make a full backup of your site before trying this or make these changes on a staging/development site!

You can use plugins such as UpdraftPlus WordPress Backup Plugin (https://wordpress.org/plugins/updraftplus/) or ask your host to perform a site backup.

On a side note - have you tried moving the site anew, perhaps using a plugin such as Duplicator?

Regards,
Bruno Kos

February 20, 2019 at 4:14 pm #3222821

michaelL-43

Hi Bruno,

thanks for your suggestion, but (unfortunately) there is no entry like that in the wp_options table.

Best,
Michael

February 20, 2019 at 4:21 pm #3222883

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi Michael,

I see - would be an option if you try moving the site anew, perhaps using a plugin such as Duplicator?

Perhaps even on a subdomain of the domain where the issue is present (so that we can exclude server issues/failed or corrupt migration).

Regards,
Bruno Kos

February 20, 2019 at 4:24 pm #3222892

michaelL-43

Hi Bruno,

sorry. I manage to find the line in the wp_options and deleted it.
The site is working at the moment!
I will do some testing, but it looks good for now.
Thanks!

Best,
Michael

February 21, 2019 at 7:27 am #3225273

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi Michael,

Ok, great, let me know if all is good there now!

Regards,
Bruno Kos