Skip Navigation

[Resolved] Conflict views with WPML string translation: php fatal error

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 7 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#560524

When we activate WPML String translation plugin with Views activated on a site we get a white screen. In Apache error log, we see the following php fatal error:

PHP Fatal error: Using $this when not in object context in /... /wp-content/plugins/wp-views/embedded/inc/WPML/wpv_wpml.php on line 1591, referer: https:// ... /wp-admin/admin.php?page=toolset-settings

We can activate WPML string translation without a problem if we first deactivate views.

Thanks in advance!

#560575

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

I suspect that this issue is being caused by your php version. What I would recommend that you do is to update your php version to at least 5.6 as currently you are running version 5.5 which is below the minimum requirements of wordpress itself.

Thanks,
Shane

#560771

Hi Shane,

Thanks for your reply!

However, on another test site, on the same server, I have activated both the WPML plugin and the Toolset plugin which caused the white screen - i.e. running the same php version - and there is no problem on that site.

It seems the PHP version is not the problem in this case?

I have cloned the site with the issues within the same network, disabled all plugins on that clone and switched to default theme. Then activated WPML plugins inc. string translation. No problem. Then I activated toolset views: white screen appeared. So I guess the problem is with the wordpress network config and not with the server config...

What would be good approach to troubleshoot this further?

Thanks in advance!

#560879

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tako,

The scenarios you are explaining is that On the test site there is no problem with WPML and Toolset together correct?

SO its just on this current site that the issue is presented.

Please let me know.
Thanks,
Shane