Support

Bug Report: PHP Warning in misc-functions.php (Bricks Builder Integration)

Matias
Matias
Publish date: February 19, 2026

Hi Support Team,

I’ve found a bug in Scripts Organizer when using it alongside Bricks Builder after deleting or modifying the default color variables.

The Issue

A PHP Warning is triggered on line 697 of misc-functions.php:

PHP Warning: Undefined array key "name" in .../scripts-organizer/includes/misc-functions.php on line 697

The Cause

The function SCORG_bricks_colors() attempts to access $color['name'] without verifying if the key exists. When the Bricks palette is reset or customized, this key may be missing from the array.

Suggested Fix

Update line 697 to use the null coalescing operator:

$color_name = $color['name'] ?? 'Unnamed Color';

Current Workaround applied

To keep my logs clean, I’ve temporarily disabled the integration using the following snippet in my child theme:

add_action('init', function() {
    remove_action('admin_init', 'SCORG_check_plugin_activeness');
    if (get_option('SCORG_bricks_active') !== 'no') {
        update_option('SCORG_bricks_active', 'no');
    }
}, 5);

Please let me know if you need more details. Thanks for the great plugin!

Best regards,
Matías

Leave a Reply