Bugs when using PHP v8.1
-
We have been noticing a lot of these errors when your plugin is active with PHP v8.1 …
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_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_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)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.