Resolved
Reported for: WPML Multilingual CMS 3.3.8
Resolved in: WPML Multilingual CMS 3.6.0
Overview of the issue
When visiting the Gravity Forms activation link that is sent to the customer, a fatal error occurs on the site.In example, visiting: http://example.com/?page=gf_activation&key=3f14e4d2e8025d47
For example, the following link: http://example.com/?page=gf_activation&key=3f14e4d2e8025d47
Leads to an error:
1 | PHP Fatal error: __clone method called on non-object in ..\wp-content\plugins\sitepress-multilingual-cms\sitepress. class .php on line 2875 |
Workaround
In order to fix this, you need to go to ../wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2875
There, replace the code:
1 | $wp_query = clone $this ->wp_query; |
With the following:
1 2 3 | if (! is_object ( $this ->wp_query)) { $this ->wp_query = is_object ( $wp_query ) ? clone $wp_query : null; } |
Using WPML Multilingual CMS Version 3.4.0 I still get this error and need to apply this patch.
Hello, Joop.
Unfortunately, a fix for this issue was not added for WPML 3.4.
The issue should be handled in the release of WPML 3.5
In Version 3.4.1 the line in the file sitepress.class.php to update is 2958
Hope the fix is added to the next version. 🙂
In Version 3.5.3 the line to edit is 2825… and still not fixed.
Any news about that issue ?
Hello, our developers are working on the issue.
We will update the status of the errata page here, when there is more information.