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.
Tagged: Compatibility, Gravity Forms Multilingual
Related documentation:
This topic contains 2 replies, has 2 voices.
Last updated by Tim 4 years, 4 months ago.
Assigned support staff: George Botsev.
Author | Posts |
---|---|
June 3, 2016 at 7:55 am #896263 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02: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. To resolve the problem: There are two options: $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 Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02: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 | |
Tim |
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 |
The topic ‘[Closed] Fatal error when activating Gravity Forms User Registration link in email’ is closed to new replies.