Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with content not being translated when using the Bricks builder, this might be due to a specific problem with the Bricks builder plugin.
Solution:
We recommend you try the following workaround:
1. Open the

app/public/wp-content/themes/bricks/includes/ajax.php

file.
2. Inside

Ajax::update_bricks_postmeta()

, around line 1233, replace the following snippet:

if ( $is_bricks_postmeta && ! Capabilities::current_user_can_use_builder( $object_id ) ) {<br />return false;<br />}

With:

if ( $is_brics_postmeta && ! Capabilities::current_user_can_use_builder( $object_id ) ) {<br />// WPML Workaround for compsupp-7377<br />if ( class_exists("Sitepress") ) {<br />return $check;<br />}<br />return false;<br />}

For more details, check the related known issue on WPML Errata.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking the related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

0% of people find this useful.

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 6 replies, has 2 voices.

Last updated by Dražen Duvnjak 6 months, 1 week ago.

Assisted by: Dražen Duvnjak.

Author Posts
May 16, 2024 at 6:47 am #15633061

richardK-49

You're right. There was a separate section to enable Brickbuilder for you. I did it. I'm sorry for this inconveninces.

May 16, 2024 at 6:51 am #15633071

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I have opened this new ticket for issue with Bricks content not being translated correctly, and have escalated this issue to our compatibility team.

I will update you further here soon.

Regards,
Drazen

May 16, 2024 at 8:16 am #15633586

richardK-49

Hi,
Thank you for your efforts.
Did you forwarded the credentials also, or can i delete?
Zsolt

May 16, 2024 at 8:48 am #15633810

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Zsolt,

it would be nice if you can keep it for staging site, and for production you can remove them.

So when the issue is resolved, I can go back and check the issue with image.

Regards,
Drazen

May 29, 2024 at 6:18 am #15681724

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

as for issue with content not being translated this is the workaround:

Workaround
Open the app/public/wp-content/themes/bricks/includes/ajax.php file
Inside Ajax::update_bricks_postmeta(), around line 1233, replace the following snippet:

if ( $is_bricks_postmeta && ! Capabilities::current_user_can_use_builder( $object_id ) ) {
	return false;
}

With:

if ( $is_bricks_postmeta && ! Capabilities::current_user_can_use_builder( $object_id ) ) {

	// WPML Workaround for compsupp-7377
	if ( class_exists("Sitepress") ) {
		return $check;
	}

	return false;
}

- https://wpml.org/errata/bricks-translated-content-not-showing-on-frontend/

Regards,
Drazen

May 29, 2024 at 10:25 am #15682851

richardK-49

Thank you.
I still have questions:
What was the version of Brick of your workaround?
Is this compatiblity issue is reported to Brick? Will they fix it?
Zsolt

May 29, 2024 at 10:27 am #15682857

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Zsolt,

it was Bricks Version: 1.9.8, yes they will fix it, we have shared this bug with the Bricks team.

Regards,
Drazen