SOLVED: Internal server error after update Bricks and Wocommerce

Browser: chrome 130.0.6723.119
OS: WindowsURL: Link to a page that illustrates this issue
Video: Jam

Hi,
after last update of Woocommerce and Bricks, some website funkcionalities are broken.

  1. I see this info in admin: " Your theme (Bricks Child Theme) contains outdated copies of some WooCommerce template files."
  2. when i set in woocommerce settings that shop page should point to “projekty-domow”, then wp returns an error 500 internal server error
    BR
  3. search opiton also retrun error

Hi,

well, the first one has already been reported and will be fixed (and released) very soon.

About the second one, can you check debug.log, what does it say?

Thanks,
Matej

1 Like

Woocommerce eroors from WooCommerce → Status → Logi:

2024-11-14T07:37:56+00:00 Błąd krytyczny Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-query.php:2201

2024-11-14T07:37:59+00:00 Błąd krytyczny Uncaught TypeError: Cannot access offset of type string on string in /home/platne/serwer248030/public_html/budujdom.pl/wp-content/themes/bricks/includes/query.php:2079

debug.log:

[14-Nov-2024 14:56:46 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/platne/serwer248030/public_html/budujdom.pl/wp-content/themes/bricks/includes/query.php:2079
Stack trace:
#0 /home/platne/serwer248030/public_html/budujdom.pl/wp-content/themes/bricks/includes/database.php(268): Bricks\Query::merge_tax_or_meta_query_vars()
#1 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-hook.php(324): Bricks\Database->set_main_archive_query()
#2 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/plugin.php(565): WP_Hook->do_action()
#4 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-query.php(1881): do_action_ref_array()
#5 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-query.php(3852): WP_Query->get_posts()
#6 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp.php(696): WP_Query->query()
#7 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp.php(816): WP->query_posts()
#8 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/functions.php(1336): WP->main()
#9 /home/platne/serwer248030/public_html/budujdom.pl/wp-blog-header.php(16): wp()
#10 /home/platne/serwer248030/public_html/budujdom.pl/index.php(17): require(‘…’)
#11 {main}
thrown in /home/platne/serwer248030/public_html/budujdom.pl/wp-content/themes/bricks/includes/query.php on line 2079
[14-Nov-2024 14:56:47 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/platne/serwer248030/public_html/budujdom.pl/wp-content/themes/bricks/includes/query.php:2079
Stack trace:
#0 /home/platne/serwer248030/public_html/budujdom.pl/wp-content/themes/bricks/includes/database.php(268): Bricks\Query::merge_tax_or_meta_query_vars()
#1 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-hook.php(324): Bricks\Database->set_main_archive_query()
#2 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/plugin.php(565): WP_Hook->do_action()
#4 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-query.php(1881): do_action_ref_array()
#5 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp-query.php(3852): WP_Query->get_posts()
#6 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp.php(696): WP_Query->query()
#7 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/class-wp.php(816): WP->query_posts()
#8 /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/functions.php(1336): WP->main()
#9 /home/platne/serwer248030/public_html/budujdom.pl/wp-blog-header.php(16): wp()
#10 /home/platne/serwer248030/public_html/budujdom.pl/index.php(17): require(‘…’)
#11 {main}
thrown in /home/platne/serwer248030/public_html/budujdom.pl/wp-content/themes/bricks/includes/query.php on line 2079

[14-Nov-2024 14:57:12 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the duracelltomi-google-tag-manager domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/functions.php on line 6114
[14-Nov-2024 14:57:30 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the duracelltomi-google-tag-manager domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/functions.php on line 6114
[14-Nov-2024 14:57:35 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the duracelltomi-google-tag-manager domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/functions.php on line 6114
[14-Nov-2024 14:57:42 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the duracelltomi-google-tag-manager domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/platne/serwer248030/public_html/budujdom.pl/wp-includes/functions.php on line 6114

The problem disappear after updating Bricks to latest version. Thank You.

1 Like

thats perfect! , will do it mine too

Thanks for the report. I’ll mark this topic as SOLVED :slight_smile:

Error was discovered in Query Monitor plugin. How to improve?

_load_textdomain_just_in_time
called by mistake. Translations for bricks domain loaded too quickly

PHP 8.2.26
WP 6.7.1
Bricks 1.11.1.1

Hey, sorry for late reply.

Can you check debug.log, and upload the log here, so I can check it? Also, make sure that when you test, you only have Bricks installed, as it’s possible that the issue is from another plugin?

Matej

Okay, I’ll check it out!
Bricks does not have a template to implement BBPRESS, so using Elementor at the same time may be the problem.

Preferably a partial that can be used with Elementor
If there is a way to implement the code on the Bricks side, you can eliminate the need for Elementor.

Hey,

I don’t have experience with BBPRESS, so, how do you implement it generally? Why would you need a template?