WAIT: PHP error after adding class

Hi,

After I create a new class and apply it to an element I’m getting the following error:
/Users/xxxxxx/Local Sites/wordpress-bricks-base-v2/app/public/wp-includes/class-wp-list-util.php on line 198

I’m running this on LocalWP with no active plugins.

Here’s a video of the problem:

Here’s the System Information:

Thanks in advance for any ideas on how to fix this. I’m setting this site up as a base blueprint site. I have created several others in the past without this issue.

Hi @rschauer,

can you copy-paste the content of the debug.log here, so I can see from where it’s coming from?

Thanks,
Matej

Warning: Undefined array key “name” in /Users/romanschauer/Local Sites/wordpress-bricks-base-v2/app/public/wp-includes/class-wp-list-util.php on line 198
Call Stack

Time Memory Function Location

1 0.0039 374840 {main}( ) …/index.php**:0
2 0.0048 375256 require( '/Users/romanschauer/Local Sites/wordpress-bricks-base-v2/app/public/wp-blog-header.php ) …/index.php
:17
3 0.8711 11263872 require_once( '/Users/romanschauer/Local Sites/wordpress-bricks-base-v2/app/public/wp-includes/template-loader.php ) …/wp-blog-header.php
:19
4 0.8835 11416664 include( '/Users/romanschauer/Local Sites/wordpress-bricks-base-v2/app/public/wp-content/themes/bricks/page.php ) …/template-loader.php
:106
5 0.8835 11416664 get_header( $name = ???, $args = ??? ) …/page.php
:2
6 0.8835 11416880 locate_template( $template_names = [0 => ‘header.php’], $load = TRUE, $load_once = TRUE, $args = [] ) …/general-template.php
:48
7 0.8839 11417008 load_template( $_template_file = ‘/Users/romanschauer/Local Sites/wordpress-bricks-base-v2/app/public/wp-content/themes/bricks/header.php’, $load_once = TRUE, $args = [] ) …/template.php
:745
8 0.8841 11417600 require_once( '/Users/romanschauer/Local Sites/wordpress-bricks-base-v2/app/public/wp-content/themes/bricks/header.php ) …/template.php
:810
9 0.9560 11983600 do_action( $hook_name = ‘render_header’ ) …/header.php
:17
10 0.9560 11983816 WP_Hook->do_action( $args = [0 => ‘’] ) …/plugin.php
:517
11 0.9560 11983816 WP_Hook->apply_filters( $value = ‘’, $args = [0 => ‘’] ) …/class-wp-hook.php
:348
12 0.9560 11984248 Bricks\Frontend->render_header( ‘’ ) …/class-wp-hook.php
:324
13 0.9561 11989736 Bricks\Frontend::render_data( $elements = [0 => [‘id’ => ‘hkwjly’, ‘name’ => ‘section’, ‘parent’ => 0, ‘children’ => […], ‘settings’ => […], ‘label’ => ‘Header Placeholder’], 1 => [‘id’ => ‘tzbwkj’, ‘name’ => ‘container’, ‘parent’ => ‘hkwjly’, ‘children’ => […], ‘settings’ => […]], 2 => [‘id’ => ‘qieydu’, ‘name’ => ‘heading’, ‘parent’ => ‘tzbwkj’, ‘children’ => […], ‘settings’ => […]]], $area = ‘header’ ) …/frontend.php
:956
14 0.9561 11990176 Bricks\Frontend::render_element( $element = [‘id’ => ‘hkwjly’, ‘name’ => ‘section’, ‘parent’ => 0, ‘children’ => [0 => ‘tzbwkj’], ‘settings’ => [‘_cssGlobalClasses’ => […]], ‘label’ => ‘Header Placeholder’] ) …/frontend.php
:758
15 0.9594 12076976 Bricks\Element->init( ) …/frontend.php
:623
16 0.9595 12076976 Bricks\Element->set_root_attributes( ) …/base.php
:2599
17 0.9595 12077648 Bricks\Element::get_element_global_classes( $class_ids = [0 => ‘rmovsl’] ) …/base.php
:1734
18 0.9595 12077648 wp_list_pluck( $input_list = [0 => [‘id’ => ‘brxc_grid_grid-3’, ‘category’ => ‘brxc_grid_utility_classes’, ‘gridUtility’ => TRUE, ‘settings’ => […]], 1 => [‘id’ => ‘jqcscs’, ‘name’ => ‘bp-red’, ‘settings’ => […], ‘modified’ => 1747249817, ‘user_id’ => 1], 2 => [‘id’ => ‘rmovsl’, ‘name’ => ‘bp-grey’, ‘settings’ => […], ‘modified’ => 1747250939, ‘user_id’ => 1]], $field = ‘name’, $index_key = ‘id’ ) …/base.php
:2013
19 0.9595 12077744 WP_List_Util->pluck( $field = ‘name’, $index_key = ‘id’ ) …/functions.php
:**5380

Hi @rschauer,

thank you so much for the debug.log entry. I can see the line, where it happens, but I am not sure how to replicate this locally. Can you clone your website online, so I can access it, install a plugin to inspect debug.log and database if need, so I can figure out what is going on?

Once you clone the website, can you send login credentials and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so I can have a look?

Thank you,
Matej

Added to Cloudways Server
https://wordpress-1431977-5521761.cloudwaysapps.com/
Looks fine so it’s got to be some issue with Local WP (Version 9.2.4+6788)

I’ll try new clean install and see if that solves the issue. There are some settings you have to change so the SSL works on the local machine and I wonder if the order in which I do this has caused the problem.

I’ll post an update once that is complete.

Ok, let us know. Because I also use LocalWP (not sure which version), but I don’t see this issue. I also use SSL.

Matej

So I rebuilt the blueprint using my base WP blueprint but prior to installing Bricks I set the SSL to trusted (procedure below). This version works without error.

I do think in the previous installation I did not set the SSL to “trust” until well after I had installed and configured Bricks, including possibly after creating the class - although I don’t remember. It’s possible that there is some pathing issue created from this circumstance.

Here’s the procedure for posterity:

  • In the Local WP, dashboard, clicked “Trust” in the SSL line
  • Opened the Utility app Keychain Access (Mac OS 14.6.1 - Sonoma)
  • Clicked “System” then “Certificates” tab
  • Double-clicked the cert for the install
  • Clicked “Trust” then selected “Always Trust” (First available option) and closed both boxes, which saves the config.

Had this error when changing php from 7.4 to 8.3 on server.

also on wp-includes/class-wp-list-util.php on line 198

Content of $value (the item missing “name” as $index_key or $field): Array
(
[id] => brxc_grid_grid-3
[category] => brxc_grid_utility_classes
[gridUtility] => 1
[settings] => Array ( … )
)

1 Like