• Resolved kubiq

    (@kubiq)


    Can you please solve this?

    It’s creating huge debug.log files on my websites.

    PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7329

    It’s because your code in /wp-content/plugins/wp-asset-clean-up/classes/Menu.php on line 115

    $parentSlug is null when hide_from_side_bar is trueand that’s causing this.

    Then it is also causing similar problem with str_replace throwing another lines of deprecated messages, but it’s the same issue… just don’t use null in add_submenu_page and it will be ok 🙂

    Thank you for this great plugin 😉

    • This topic was modified 1 year, 6 months ago by kubiq.
Viewing 1 replies (of 1 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @kubiq this has been solved in the current version of the plugin, so I will mark this as “resolved”. In case there are still problems (the same deprecated error showing up), let me know!

Viewing 1 replies (of 1 total)

The topic ‘PHP Deprecated: strpos(): Passing null to parameter’ is closed to new replies.