Title: Bugs when using PHP v8.1
Last modified: February 3, 2025

---

# Bugs when using PHP v8.1

 *  Resolved [Oliver Campion](https://wordpress.org/support/users/domainsupport/)
 * (@domainsupport)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bugs-when-using-php-v8-1/)
 * We have been noticing a lot of these errors when your plugin is active with PHP
   v8.1 …
 *     ```wp-block-code
       E_DEPRECATED: str_starts_with(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/tourist.org.uk/html/wp-includes/class-wp-styles.php on line 430
       ```
   
 * We have identified the source of the issue which is on lines 406 to 418 of /App/
   App.php …
 *     ```wp-block-code
           wp_register_style('color', null);
           wp_register_style('forms', null);
           wp_register_style('dashboard', null);
           wp_register_style('list-tables', null);
           wp_register_style('edit', null);
           wp_register_style('revisions', null);
           wp_register_style('media', null);
           wp_register_style('themes', null);
           wp_register_style('about', null);
           wp_register_style('nav-menus', null);
           wp_register_style('widgets', null);
           wp_register_style('l10n', null);
           wp_register_style('site-icon', null);
       ```
   
 * We believe that if you change these lines to …
 *     ```wp-block-code
           wp_register_style('color', '');    wp_register_style('forms', '');    wp_register_style('dashboard', '');    wp_register_style('list-tables', '');    wp_register_style('edit', '');    wp_register_style('revisions', '');    wp_register_style('media', '');    wp_register_style('themes', '');    wp_register_style('about', '');    wp_register_style('nav-menus', '');    wp_register_style('widgets', '');    wp_register_style('l10n', '');    wp_register_style('site-icon', '');
       ```
   
 * … this will resolve the issue.
 * Thank you.
 * Oliver

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

 *  Plugin Support [Robert Fortaleza](https://wordpress.org/support/users/robfrtlz/)
 * (@robfrtlz)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bugs-when-using-php-v8-1/#post-18283291)
 * Hi [@domainsupport](https://wordpress.org/support/users/domainsupport/) ,
 * We appreciate you taking the time to bring this to our attention.
 * I’ve escalated this to our founder/lead developer, and our development team will
   be reviewing it. Rest assured, we’ll look into this thoroughly.
 * Please don’t hesitate to reach out if you have any additional questions or concerns
   regarding our plugin.
 *  Thread Starter [Oliver Campion](https://wordpress.org/support/users/domainsupport/)
 * (@domainsupport)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/bugs-when-using-php-v8-1/#post-18283432)
 * Thank you but I’m not sure why you’ve marked the topic as “resolved”? Can you
   please undo that and mark it as resolved when it’s actually been resolved?
 * Appreciated.
 * Oliver

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

The topic ‘Bugs when using PHP v8.1’ is closed to new replies.

 * ![](https://ps.w.org/wpide/assets/icon-256x256.png?rev=2769504)
 * [WPIDE - File Manager & Code Editor](https://wordpress.org/plugins/wpide/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpide/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpide/)
 * [Active Topics](https://wordpress.org/support/plugin/wpide/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpide/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpide/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Oliver Campion](https://wordpress.org/support/users/domainsupport/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/bugs-when-using-php-v8-1/#post-18283432)
 * Status: resolved