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

Last updated by Bruno 3 months, 4 weeks ago.

Assigned support staff: Bruno.

Author Posts
June 25, 2019 at 10:44 pm #4087441

Dmitry Buko

I updated plugin from 4.2.6 to 4.2.7.1 and it caused WSOD.

To fix it I turned on debug mode and saw:

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php on line 810

Then I disabled sitepress-multilingual-cms (via renaming folder). Site was working again. I tried to activate plugin again and saw the same error in Plugins screen (I mean plugin wasn't activated because of the same error).

I found a topic in support forum (about a week ago, https://wpml.org/forums/topic/site-down-parse-error-syntax-error/) with the same issue. It was proposed to delete and reinstall the plugin. I tried to do it, but it hadn't helped. So I deleted it again and installed version 4.2.6 and it was activated just fine.

How to update to without having this issue?

June 26, 2019 at 1:16 am #4087653

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting us. This should not happen. In case, I'll need to test your installation to see what might be happening.

I'll need to request temporary access (wp-admin and FTP) to your site - preferably to a test site where the problem has been replicated if possible - in order to be of better help.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Note:

*** Please, can I install the Duplicator plugin (or All in One Migration) to make a copy of your site and install it on my test environment? This will help me debug the problem.

*** Note: Please make a full backup of your site.

Privacy and Security when Providing Debug Information for Support: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thank you.

June 26, 2019 at 7:52 am #4090223

Dmitry Buko

No, we can't grant you an access to the website due to our project policies.

June 27, 2019 at 1:26 am #4095481

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

I noticed that you are using PHP 5.4, which is obsolete (hidden link). Update your PHP to a newer version and see if the problem persists.

If the problem persists, In order for me to check the problem, I need to be able to replicate the problem.

Thank you.