Skip Navigation

[Resolved] Unable to save translation for Elementor template

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by Minesh 11 months, 3 weeks ago.

Assisted by: Minesh.

Author
Posts
#2678930

Hello,

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

Thanks

#2679045

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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?

#2679056

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.

#2679585

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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:

[cred_form form="add-new-session"]

Can you confirm the workaround I shared helps?

#2679617

Hi, thanks for looking into this.

I added the shortcode you provided using the Elementor's shortcode element and it seems to work fine. I can now save the template.

#2679622

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2683351

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I would like to information that the fix is released for this issue. You should update ALL Toolset plugins to latest release version.

More info:
- https://toolset.com/2024/02/toolset-1-6-12-improved-levels-of-control-compatibility-and-speed/