NO BUG: Error while creating a class in Bricks

Browser: Firefox
OS: macOS

I’m having an issue with Bricks when creating any class. I’m using version 1.12.4, and every time I create a class, I get this error on the frontend.

The suggested solution is to switch to PHP 7.4, but I’m normally using PHP 8.3 and haven’t had this kind of issue until now.

All plugins were deactivated when I recorded this video.

I’ve attached a video showing the problem.

I tried a few things to troubleshoot the issue.

I deleted all existing classes and variables, upgraded to the beta v2 version, but the problem still persists.

I can provide access details to the site to a moderator.

Hi @antonio,

thank you for the video and description. I tried to replicate it locally, using PHP 8.3, but I can’t replicate the issue.

Before sending us the login credentials, can you first check debug.log file, and paste here full error, if it’s there? That way, I may see where the issue is. Best if you do this on 2.0-beta :slight_smile:

Thanks,
Matej

This is the error for last stable version of Bricks

[10-Jun-2025 12:15:54 UTC] PHP Warning: Undefined array key “name” in /home/pixeldev/site1.pixeldev.ro/wp-includes/class-wp-list-util.php on line 200
[10-Jun-2025 12:16:00 UTC] PHP Warning: Undefined array key “name” in /home/pixeldev/site1.pixeldev.ro/wp-includes/class-wp-list-util.php on line 200

Bricks BETA

[10-Jun-2025 12:15:54 UTC] PHP Warning: Undefined array key “name” in /home/pixeldev/site1.pixeldev.ro/wp-includes/class-wp-list-util.php on line 200
[10-Jun-2025 12:16:00 UTC] PHP Warning: Undefined array key “name” in /home/pixeldev/site1.pixeldev.ro/wp-includes/class-wp-list-util.php on line 200
[10-Jun-2025 12:20:06 UTC] PHP Warning: Undefined array key “name” in /home/pixeldev/site1.pixeldev.ro/wp-includes/class-wp-list-util.php on line 200
[10-Jun-2025 12:20:08 UTC] PHP Warning: Undefined array key “name” in /home/pixeldev/site1.pixeldev.ro/wp-includes/class-wp-list-util.php on line 200

Hi @antonio,

thank you. I still can’t replicate it locally, so can you send temporary login credentials to your test/staging website and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?

Thanks,
Matej

I have just sent an email with the access details.

Hi @antonio and thank you for the login credentials. It seems that you had one class with only a . as a name, that it was causing the issue. I’ve removed it, and it seems that it’s working now.
Can you confirm?

Thanks,
Matej

Oh wow, so that was the issue? I must have typed it by mistake.

Is there a way to prevent creating a class with just a dot, so others don’t run into the same problem in the future?

Thanks for the help!

Hi @antonio,

thanks for confirming. I’ll mark the topic as NO BUG then.

But, regarding the class ., honestly, you should not be able to type it mistakenly. I’ve tried to replicate it in various ways, but I could not add the . as a class.
If you figure out how to replicate it, or if you remember what you did just before it stopped working, please let me know.

Thanks,
Matej

Hi @antonio,

maybe to consider, if you used Class Converter from AT, it might create this class, if you used space as an element name?

Could that be the case?

Matej

I didn’t use any other modules for Bricks, such as AT, CoreFramework, etc.

I’m not even sure how I managed to add “.” as a class without any text next to it. I tried to reproduce it now, but I couldn’t.

All I remember is that I typed the class name quickly, and then I ran into this issue — but I’m glad it was discovered. Thank you!