Title: php error while editing post in development environment
Last modified: August 25, 2026

---

# php error while editing post in development environment

 *  Resolved [Dave](https://wordpress.org/support/users/factory44/)
 * (@factory44)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/php-error-while-editing-post-in-development-environment/)
 * 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](https://wordpress.org/support/users/factory44/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-while-editing-post-in-development-environment%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Smash Balloon Louis](https://wordpress.org/support/users/smashballoonlouis/)
 * (@smashballoonlouis)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/php-error-while-editing-post-in-development-environment/#post-19003007)
 * Hi [@factory44](https://wordpress.org/support/users/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](https://wordpress.org/plugins/insert-headers-and-footers/),
   add it as a PHP snippet with the location set to Run Everywhere.
 *     ```wp-block-code
       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](https://wordpress.org/support/users/factory44/)
 * (@factory44)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/php-error-while-editing-post-in-development-environment/#post-19003744)
 * Thank you!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-while-editing-post-in-development-environment%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dave](https://wordpress.org/support/users/factory44/)
 * Last activity: [1 week, 3 days ago](https://wordpress.org/support/topic/php-error-while-editing-post-in-development-environment/#post-19003744)
 * Status: resolved