I am trying to:
Save a translation of an Elementor template with the Classic Translation Editor.
I expected to see:
To save and close the translation page
Instead, I got:
The loader icon keeps spinning indefinitely and the translation is not saved and marked as incomplete. In the debug.log I also have the following:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to OTGS\Toolset\CRED\Controller\Compatibility\Wpml\Integration\FormsTranslation\Packages::get_form_context() must be an instance of WP_Post, null given, called in /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php on line 110 and defined in /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php:84
Stack trace:
#0 /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php(110): OTGS\Toolset\CRED\Controller\Compatibility\Wpml\Integration\FormsTranslation\Packages->get_form_context()
#1 /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php(336): OTGS\Toolset\CRED\Contro in /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php on line 84
PHP Fatal error: Uncaught TypeError: Argument 1 passed to OTGS\Toolset\CRED\Controller\Compatibility\Wpml\Integration\FormsTranslation\Packages::get_form_context() must be an instance of WP_Post, null given, called in /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php on line 110 and defined in /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php:84
Stack trace:
#0 /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php(110): OTGS\Toolset\CRED\Controller\Compatibility\Wpml\Integration\FormsTranslation\Packages->get_form_context()
#1 /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php(336): OTGS\Toolset\CRED\Contro in /wp-content/plugins/cred-frontend-editor/application/controllers/compatibility/wpml/integration/forms_translation/packages.php on line 84
As a workaround, I noticed that if I disable the Toolset Forms plugin, then it saves just fine and then I enable it again.
This error though does not occur when I translate Pages, I noticed it only while translating Elementor templates.
In all pages though of the Classic Translation Editor I always get the following console error:
Uncaught Error: Minified React error #200; visit hidden link for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
render /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:595
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:625
EventListener.handleEvent* /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:625
n /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:579
n /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
app.js:595:116072
render /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:595
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:625
(Async: EventListener.handleEvent)
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:625
n /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:579
n /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
<anonymous> /wp-content/plugins/sitepress-multilingual-cms/dist/js/jobs/app.js?ver=4.6.9:1
Hello. Thank you for contacting the Toolset support.
Here is a sandbox site and you can auto-login to it using the following link:
- hidden link
Can you please try to setup the Elementor and send me details and problem URL where I can see the issue or what steps I will have to follow to see the issue?
Hi, I recreated the issue in the Sandbox at this URL: hidden link
If you open Elementor Saved Templates you will see next to my "Test Template" the cog icon under the German translation. As soon as you open it you first get the react error in the browser console. If you click on "Save and Close" then it gets stuck and you see a 500 server error code in browser console.
The second error will only occur if there is a Toolset form inside the template.
I can see the issue and I've escalated the same in front of our next tier support and they will investigate further and report all information in front of our Devs if they confirm the issue.
However - the workaround for you is instead of using Toolset form's module you can add Toolset Form's shortcode using the Text module and that should help you to fix the issue.
For example:
- Add the following shortcode using Text module:
Glad to know that the solution I shared help you to resolve your issue.
I'll escalate the issue to our next level support and will update you here when I see any update on it. Please note that there is no ETA on when the fix made available.