• Resolved Oliver Campion

    (@domainsupport)


    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)
  • Plugin Support Robert Fortaleza

    (@robfrtlz)

    Hi @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

    (@domainsupport)

    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)
  • You must be logged in to reply to this topic.