Support » Plugin: Super Page Cache for Cloudflare » PHP 8.1 Deprecated Notices

  • Hi,

    Just wanted to report the following Deprecated Notices that I’m seeing on PHP 8.1.13, you can see them with Query Monitor by just heading to the /wp-admin dashboard area.

    Notice #1

    Level: Deprecated

    Message: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

    Location:

    strpos()
    wp-includes/functions.php:7022
    wp_is_stream()
    wp-includes/functions.php:2155
    wp_normalize_path()
    wp-includes/plugin.php:768
    plugin_basename()
    wp-admin/includes/plugin.php:1405
    add_submenu_page()
    wp-content/plugins/wp-cloudflare-page-cache/libs/html_cache.class.php:41
    SWCFPC_Html_Cache->add_admin_menu_pages()
    wp-includes/class-wp-hook.php:308
    do_action('admin_menu')
    wp-admin/includes/menu.php:155

    Component: Plugin: wp-cloudflare-page-cache

    Notice #2

    Level: Deprecated

    Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

    Location:

    str_replace()
    wp-includes/functions.php:2162
    wp_normalize_path()
    wp-includes/plugin.php:768
    plugin_basename()
    wp-admin/includes/plugin.php:1405
    add_submenu_page()
    wp-content/plugins/wp-cloudflare-page-cache/libs/html_cache.class.php:41
    SWCFPC_Html_Cache->add_admin_menu_pages()
    wp-includes/class-wp-hook.php:308
    do_action('admin_menu')
    wp-admin/includes/menu.php:155

    Component: Plugin: wp-cloudflare-page-cache

    Kind regards,

    Jaime.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi,
    Thanks for reporting it. I’m also using this plug-in on many site that are running on PHP 8.1 without any issue.

    But as you have reported I’ll look at the code again to see if there is something that can be done better.

    But it will take some time. Add currently I won’t be able to go anywhere near my workstation. For more details please check: https://wordpress.org/support/topic/important-update-support-replies-might-be-delayed/

    Thread Starter Jaime Ayala

    (@jeayalar)

    Hi Saumya,

    No rush, but just to reiterate. These are NOT errors, but rather notices of deprecated functions.

    You can take a look at these notices by installing the Query Monitor plugin and just loading the wp-admin dashboard.

    Kind regards,

    Jaime.

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi @jeayalar,
    Thanks for reporting these to me and also how to reproduce them. Will definitely check it out when I am physically able to work on my workstation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.