SOLVED: WPML + bricks + php8.1 or php8.2 critical error , not with php7.4

Hi, I’m getting a similar error, and hoping that a new release will fix this. @charaf you mentioned it will be fixed in the “new release this week”. Which release # should I be looking for? 1.9.1.1 breaks part of my site. 1.9 works fine.

my error is:

Fatal error: Uncaught Error: Class "Bricks\Integrations\Wpml\Wpml" not found in /Users/joe/Srv/ignite-reading/app/public/wp-content/themes/bricks/includes/init.php:112 Stack trace: #0 /Users/joe/Srv/ignite-reading/app/public/wp-content/themes/bricks/includes/init.php(58): Bricks\Theme->init() #1 /Users/joe/Srv/ignite-reading/app/public/wp-content/themes/bricks/includes/init.php(171): Bricks\Theme->__construct() #2 /Users/joe/Srv/ignite-reading/app/public/wp-content/themes/bricks/includes/init.php(179): Bricks\Theme::instance() #3 /Users/joe/Srv/ignite-reading/app/public/wp-content/themes/bricks/functions.php(120): require_once('/Users/joe/Srv/...') #4 /Users/joe/Srv/ignite-reading/app/public/wp-settings.php(600): include('/Users/joe/Srv/...') #5 /Users/joe/Srv/ignite-reading/app/public/wp-config.php(103): require_once('/Users/joe/Srv/...') #6 /Users/joe/Srv/ignite-reading/app/public/wp-load.php(50): require_once('/Users/joe/Srv/...') #7 /Users/joe/Srv/ignite-reading/app/public/wp-blog-header.php(13): require_once('/Users/joe/Srv/...') #8 /Users/joe/Srv/ignite-reading/app/public/index.php(17): require('/Users/joe/Srv/...') #9 {main} thrown in /Users/joe/Srv/ignite-reading/app/public/wp-content/themes/bricks/includes/init.php on line 112`Preformatted text`

@heyfletch should be in 1.9.2 :slight_smile:

1 Like

Hello @charaf,

I have a code element inside my main language page:

And when I synchronize the others languages so they receive the same Bricks content (+ resigning shortcodes), I have this error on the translated pages “Error: Class “BricksQuery” not found”:

It’s not fixed yet?

Alright I found the issue
 Somehow Bricks is removing any "" in my code.
When I edit the alternative language page with Bricks, here’s the content of my code element:
image

So that’s why it’s not working
 Is it a previous security feature that you guys implemented that introduce this bug? @thomas

Thanks

The issue is that the „\“ are removed, which breaks the query. When you look at the translated codeblock you see that all \ are missing.
Just add these and the query should work on the translated page

1 Like

Yeah, instead (because I don’t want to have to edit all my translate bricks page) I use my own PHP function that run “return \Bricks\Query::get_loop_object();”

Hi everyone,

It seems we missed updating this forum thread. For the record, the original issue reported here was fixed back in version 1.9.2 :slight_smile:

@Adrien, your issue is different from the one initially reported in this thread (though it was tagged ‘WIP’, which might have caused some confusion). Could you please create a separate report for your issue so we can address it there? As @albertvisuals mentioned, it’s related to slashes being removed, so we’ll look into whether this is due to Bricks or WPML.

Done: WPML - Slashes being removed in Bricks code element (on translated pages)

I think I have a same problem. Website was built in Bricks and today I installed WPML to translate it. When I enable plugin and string addon for WPML website breaks.

I tested it without this addon and all works.

Any thoughts ?

@jahaweb please get in touch with us at help@bricksbuilder.io with temporary admin access to the site and the exact issues you’re facing so we can try to help :slight_smile:

I already did it but looks like no reply. Thanks