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 thread is resolved. Here is a description of the problem and solution.

Problem: T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /disk_1/www/cz/reklamni-tkanicky/www/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php on line 810 Solution: The client was using PHP 5.3, which is below our and WordPress minimum requirements, so updating to the latest PHP versions resolved the issue. Relevant Documentation: https://wpml.org/home/minimum-requirements/

This topic contains 3 replies, has 2 voices.

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

Assigned support staff: Bruno Kos.

Author Posts
June 28, 2019 at 12:17 pm #4107259

miroslavS-7

Dear Sir or Madam,

I am writing in regards of our problem with WPML plugin and we would like to find the best solution.
In 2016 we bought WPML plugin. Today you can activate a plugin on a webpage, but we've thrown out this error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /disk_1/www/cz/reklamni-tkanicky/www/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php on line 810. Where is the problem, please?

Thank you very much for cooperation.
If you require any further information, feel free to contact me.

Yours Faithfully
Miroslav Semerad

June 28, 2019 at 1:41 pm #4107875

Bruno Kos
Supporter

Languages: English (English )

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

Hi Miroslav,

Thank you for contacting WPML support!

According to this image and all notifications to see there, the reason behind these errors is most likely due to outdated PHP version. Currently you have:
- PHPVersion 5.3.29-SvetHostingu.cz

This is not only below our minimum requirements:
https://wpml.org/home/minimum-requirements/

But according to official WordPress website, this PHP version you're having will not work with 5.2. version:
https://wordpress.org/news/2019/04/minimum-php-version-update/

Therefore, can you ask your host to update PHP version before we resume checking this? If possible, make sure to upgrade PHP to any version starting from 7.x.x since it brings significant performance and security improvements over PHP 5.6.

Once you do this, please go here:
https://wpml.org/account/downloads/

And download all the WPML plugins and install/update them on your site. It also looks like (from your image) that you updated only few WPML plug-ins, but not the core plug-in because it shows 4.2.6 in the debug information you provided.

Regards,
Bruno Kos

July 8, 2019 at 4:58 am #4159061

miroslavS-7

Hello Bruno,
Thank you for your message. We've updated PHP. However, since we bought wpml plugin a long time ago, we paid a one-time payment. Now we have found that there is a regular fee for using this plugin, right? Can this be why we can't use the tool on other sites? For example, we cannot find him at hidden link. Thank you very much for your help.
Best regards
Miroslav Semerad

July 8, 2019 at 7:31 am #4159575

Bruno Kos
Supporter

Languages: English (English )

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

Hi Miroslav,

I see within our system that you registered "hidden link" - can you perhaps send me a screenshot of what the issue is? Maybe it would be better if you create a new thread for this issue, since this one has been resolved.

Regards,
Bruno Kos