Translate One Page Pro site with WPML

Hi,

I like to translate this PRO One page site to French, German, Italian and English.

https://lapauline.nl/wp/

I read all documentation I like to translate in Cornerstone like here: https://theme.co/docs/wpml#translation

But the flags in the right corner but when I try to copy the page from the original language (Dutch) to an other I get the Cornerstone message It can’t create the page…

What’s the best workaround to translate this page?

THX, Carel

Hello Carel,

Thanks for writing to us.

Please check out the detailed instruction on how you can translate a page in Cornerstone or Pro editor using WPML. You can check it out here: https://wpml.org/documentation/theme-compatibility/xtheme/

While editing the page, find the WPML flags in the lower right corner of the editor preview.


And then copy the existing page that needs to be translated so that you will have the same page layout.

Thanks

HI!

I all tried but when I click the flag in the right bottom and want to copy the exicsting page, I get an error can’t create page and a black screen follows. Please try it yourself!

And after that, I see dubble pages in the PRO Cornerstone Pagebuilder but those pages don’t excist in the Wordpress page list…

Regards, Carel

Hi Carel,

I have checked your website and tried to create a new Page but it shows the Failed to Create the content. I have also tried to create by clicking into the flag and it shows the same error. There might be some different reasons behind your issue, I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN
8.Permalink

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above help, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access in the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi,

I tried all the points you said but still the same problem.

I set up a staging version at: https://staging.lapauline.nl/wp-admin/

See secure not for login!

Regards, Carel

Hey @cvdw,

The username and/or password is not correct. Please provide the correct login credentials.

Thanks.

Okay, strange but I send you a new one!

Hello @cvdw,

I have investigated the issue and I am getting this error message in the console when I create a translation in the builder:

Rejecting Controller promise {name: 'translation::create', data: {…}, success: false}
n @ app.6f62d0f.js:2
attempt @ app.6f62d0f.js:2
resolve @ app.6f62d0f.js:2
c @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
Promise.then (async)
(anonymous) @ app.6f62d0f.js:2
Promise.then (async)
u @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
s @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
Promise.then (async)
te @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
f @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
vi @ react-dom.min.js?ver=17.0.1:202
ui @ react-dom.min.js?ver=17.0.1:32
xi @ react-dom.min.js?ver=17.0.1:32
zg @ react-dom.min.js?ver=17.0.1:55
rg @ react-dom.min.js?ver=17.0.1:56
(anonymous) @ react-dom.min.js?ver=17.0.1:66
(anonymous) @ react-dom.min.js?ver=17.0.1:240
ti @ react-dom.min.js?ver=17.0.1:30
hg @ react-dom.min.js?ver=17.0.1:59
be @ react-dom.min.js?ver=17.0.1:46
he @ react-dom.min.js?ver=17.0.1:45
unstable_runWithPriority @ react.min.js?ver=17.0.1:24
Za @ react-dom.min.js?ver=17.0.1:73
vk.Events.current @ react-dom.min.js?ver=17.0.1:240
Ki @ react-dom.min.js?ver=17.0.1:44
app.6f62d0f.js:2 
        
       {message: 'element_id and type do not match for element_id:60…ent while this function was called with post_page'}
(anonymous) @ app.6f62d0f.js:2
Promise.then (async)
(anonymous) @ app.6f62d0f.js:2
f @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
(anonymous) @ app.6f62d0f.js:2
vi @ react-dom.min.js?ver=17.0.1:202
ui @ react-dom.min.js?ver=17.0.1:32
xi @ react-dom.min.js?ver=17.0.1:32
zg @ react-dom.min.js?ver=17.0.1:55
rg @ react-dom.min.js?ver=17.0.1:56
(anonymous) @ react-dom.min.js?ver=17.0.1:66
(anonymous) @ react-dom.min.js?ver=17.0.1:240
ti @ react-dom.min.js?ver=17.0.1:30
hg @ react-dom.min.js?ver=17.0.1:59
be @ react-dom.min.js?ver=17.0.1:46
he @ react-dom.min.js?ver=17.0.1:45
unstable_runWithPriority @ react.min.js?ver=17.0.1:24
Za @ react-dom.min.js?ver=17.0.1:73
vk.Events.current @ react-dom.min.js?ver=17.0.1:240
Ki @ react-dom.min.js?ver=17.0.1:44
app.6f62d0f.js:2 
        
       Failed to create Content. {message: 'element_id and type do not match for element_id:60…ent while this function was called with post_page'}

Your server settings seems with the correct settings. One thing I want you to try though. Could you please downgrade your PHP version to 7.4? PHP 8 seems to be giving some issues in some users. If you could try to downgrade it and test the translation, it might be worth a shot.

Kindly let us know how it goes.

Hi,

I set the PHP to 7.4.28 but still the same issue…

Regards, Carel

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.