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.

Hi, Amit here, I am the WPML Support Manager, please make sure you are using the latest WPML 4.3.14 before reporting an issue, thanks!

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

This topic contains 2 replies, has 2 voices.

Last updated by Tim 3 years, 11 months ago.

Assigned support staff: George Botsev.

Author Posts
June 3, 2016 at 7:55 am #896263

George Botsev

Languages: English (English )

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

Gravity Forms User Registration Add-On clients receive an email with a link to activation.

The link looks like this:

<em><u>hidden link</u></em>

If you activate attempt to activate a user with Gravity Forms User Registration add-on and you have the default activation e-mail template overriden, when WPML is active, you will get a fatal error like this:

Fatal error: __clone method called on non-object in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2875

This is happening because of hooking with gform_user_registered action with a priority of 10, and because of WPML expects that the query is set as an object.
However because of the modifications to the query by that hook, the expected query is NULL and this time, and that is why the error appears.

To resolve the problem:

There are two options:
#1 - Until this is fixed, do not use activation template override.
#2 - Patch /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php as mentioned in the errata page here:
You need to go to:
/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2875
and change:

$wp_query = clone $this->wp_query;

with this code:

if(!is_object($this->wp_query)) {
    $this->wp_query = is_object( $wp_query ) ? clone $wp_query : null;

Please do mind that this fix is not very efficient, and may cause other issues that we might not have foreseen.

June 6, 2016 at 6:37 am #897720

George Botsev

Languages: English (English )

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

Issue has been escalated to our developers team, and they are working on providing a more stable fix.

October 24, 2016 at 6:30 pm #1121962


This is still and issue, please fix it! Why is this still and issue? It has been 4 months.

PHP Fatal error: __clone method called on non-object in ~/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2828

Gravity Forms - 2.0.7
Gravity Forms User Registration Add-On - 3.4
WPML Multilingual CMS -
WPML String Translation -
WPML Translation Management -