• Resolved Dave

    (@factory44)


    Hi,

    When editing any Page or Post while the website’s environment is set to ‘local’ or ‘development’, the following fatal error is displayed:

    Function WP_Styles::add was called <strong>incorrectly</strong>. The style with the handle "sbi_styles" was enqueued with dependencies that are not registered: sbi-tokens-local. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.9.1.)

    Switching to production or staging environment mode causes the problem to go away, but of course we need to work on the website in a local / development environment.

    If you need any further info please let me know.

    • This topic was modified 1 week, 4 days ago by Dave.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Smash Balloon Louis

    (@smashballoonlouis)

    Hi @factory44,

    Thank you for reporting this, and for the detail you included.

    I’ve shared this with our development team and so they can address it in an upcoming release.

    In the meantime,jthe code below should clear it. You can add this using a free plugin like WPCode, add it as a PHP snippet with the location set to Run Everywhere.

    add_action( 'enqueue_block_assets', function () {
        if ( ! defined( 'SBI_PLUGIN_URL' ) || wp_style_is( 'sbi-tokens-local', 'registered' ) ) {
            return;
        }
        wp_register_style( 'sbi-tokens-local', SBI_PLUGIN_URL . 'assets/tokens/sb-tokens-local.css', array(), SBIVER );
    }, 0 );

    If you need any assistance setting that up or if you have any other questions, please let us know.

    Thanks!

    Thread Starter Dave

    (@factory44)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.