Skip Navigation

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: 

This topic contains 11 replies, has 2 voices.

Last updated by Kor 8 months, 2 weeks ago.

Assisted by: Kor.

Author Posts
March 6, 2024 at 10:09 am #15378383

victorD-16

I am trying to:

I'm trying to translate a page using the WordPress editor (in this case, Div Builder) instead of the WPML Advanced translation editor.

Link to a page where the issue can be seen:

hidden link

I expected to see:

The English translation of the page in the Divi Builder.

Instead, I got:

404 error page when was about to start translating the page using the Divi Builder.

Here's a screen recording of the error (with sound): hidden link

There is no caching active. I've resaved permalinks and tried the buttons under WPML » Troubleshooting but that did not help. The default WPML Advanced Translation Editor works fine.

Screenshot 2024-03-06 at 11.05.25.jpg
March 6, 2024 at 12:19 pm #15379010

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for reaching us.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

Upon reviewing your debug information, I have observed that the PHP limit for your "WP Memory Limit" is lower than the recommended 256MB or the required 128MB, as mentioned in the documentation found at: https://wpml.org/home/minimum-requirements/. To resolve this, I kindly request that you contact your hosting provider and request an increase in the PHP value for you.

March 6, 2024 at 3:04 pm #15380325

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've edited this page hidden link and completed the English language translation and the page works fine hidden link

I can see the contents translated without issues.

Screenshot_217.png
March 7, 2024 at 7:44 am #15382424

victorD-16

The WPML Translation Editor has always worked fine. The problem occurs when using the Divi Builder. Here are two use cases where the 404 problem occurs:

1. I go to "Pages" and Switch to English (the flag in the wp admin top bar). Then I try to create a new (English page) with the Divi Builder and publish. Result: 404 error page.

2. I create a new Swedish page with the Divi Builder and publish. Then I choose "Edit page" and click "Translate this document with WordPress editor" using Divi Builder. Result: 404 error.

Please see if you can reproduce the error in the attached screen recording: hidden link

March 7, 2024 at 10:01 am #15383133

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've tested it on my end following the method you shared to replicate the issue but it worked fine on my end here. hidden link . Could you try deactivating the remaining plugins and leave only WPML activated and see if you're able to make this work correctly?

March 7, 2024 at 10:43 am #15383518

victorD-16

Could you also try to create a new English page from scratch? See video: hidden link

Wordpress editor translations works with Gutenberg but not with Divi Builder. A workaround could be to first create and publish the page using Gutenberg, and after that edit the page with Divi, but that's a workaround and quite time consuming. WPML must be compatible with Divi, right?

March 7, 2024 at 2:07 pm #15384742

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I can see the issue now. Yes, you're right, if we publish the page first, then we'll be able to edit it using DIVI builder. If not, it will show page not found.

Please allow me to escalate this and I will come back to you once I've feedback.

March 13, 2024 at 9:02 am #15402578

victorD-16

Hi! Any progress on this?

March 13, 2024 at 9:09 am #15402614

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience.

I'm reaching out to update you on your request. It's worth mentioning that due to the presence of a workaround solution, it diverges from our typical workflow, resulting in a lower priority. However, I want to assure you that our compatibility team has been notified, and they will investigate this promptly.

March 15, 2024 at 2:29 pm #15414812

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

Our second tier support found a workaround and this is what you'll have to do.

Open .../wp-content/themes/Divi/includes/builder/core.php file.

Look for line 5949.

Replace this:

return add_query_arg( $args, et_fb_prepare_ssl_link( $url ? $url : get_the_permalink() ) );

With:

//workaround compsupp-7256
		$wpml_default_lang = apply_filters('wpml_default_language', NULL );
		$wpml_current_lang = apply_filters( 'wpml_current_language', NULL ); 

		$wpml_url = get_the_permalink();
		if ($wpml_default_lang !== $wpml_current_lang ) {
			$wpml_url = apply_filters( 'wpml_permalink', $wpml_url, $wpml_current_lang ); 
		}		

		return add_query_arg( $args, et_fb_prepare_ssl_link( $url ? $url : $wpml_url ) );

Once you've done that, please try editing the page using the DIVI builder without first saving/updating the page.

March 20, 2024 at 1:44 pm #15431813

victorD-16

Thanks a lot for your thorough research! The solution seems to work, but I'm a bit hesitant to modify the Divi theme core files. It will be overwritten the next time I update Divi, and I don't want to override the Divi core.php file in my child theme since it might create conflicts with future Divi updates.

Is it likely that it will come an WPML update that fixes this compatibility issue with Divi in the future?

March 20, 2024 at 2:35 pm #15432279

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for responding.

The resolution for this issue might not have been implemented in Divi yet, as it currently holds a lower priority. However, if additional reports are received regarding this matter, it will prompt further escalation.