• Resolved sahro

    (@sahro)


    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /../wp-includes/functions.php on line 2162
    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /../wp-includes/functions.php on line 7022

    wp 6.1.1

    php 8.1

    • This topic was modified 1 year, 10 months ago by sahro.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    It looks like those are some deprecation notices that were triggered in WordPress core files. Are you reporting them here because you believe that they are related to this specific plugin? If so, could you elaborate on how you determined that? For example, if there is a stack trace that shows that the notices were indirectly triggered by a PHP file that’s part of Error Log Monitor, please post it here – it would help track down the bug.

    Thread Starter sahro

    (@sahro)

    FS_Admin_Menu_Manager::add_subpage($parent_slug = NULL, $page_title = 'Freemius Debug [v.2.4.5]', $menu_title = 'Freemius Debug [v.2.4.5]', $capability = 'manage_options', $menu_slug = 'freemius', $function = [0 => 'Freemius', 1 => '_debug_page_render']) ..\wp-content\plugins\error-log-monitor-\freemius\includes\class-freemius.php:3539
    
    add_submenu_page($parent_slug = NULL, $page_title = 'Freemius Debug [v.2.4.5]', $menu_title = 'Freemius Debug [v.2.4.5]', $capability = 'manage_options', $menu_slug = 'freemius', $callback = [0 => 'Freemius', 1 => '_debug_page_render'], $position = *uninitialized*) ..\wp-content\plugins\error-log-monitor-\freemius\includes\managers\class-fs-admin-menu-manager.php:959
    Plugin Author Janis Elsts

    (@whiteshadow)

    It looks like that’s related to the Freemius SDK used by this plugin. I’ll update the SDK to the latest release, and hopefully, that will help with PHP 8.1 compatibility. A new plugin version will be out today.

    Thread Starter sahro

    (@sahro)

    Thanks, now it is compatible with php 8.1+

    The above error is resolved but the following is also persisting.

    Creation of dynamic property FS_Plugin::$opt_in_moderation is deprecated

    wp-includes/functions.php:649unserialize()wp-includes/functions.php:649maybe_unserialize()wp-includes/option.php:1497get_network_option()wp-includes/option.php:1351get_site_option()wp-content/plugins/error-log-monitor/freemius/includes/managers/class-fs-option-manager.php:169FS_Option_Manager->load()wp-content/plugins/error-log-monitor/freemius/includes/managers/class-fs-option-manager.php:98FS_Option_Manager->__construct()wp-content/plugins/error-log-monitor/freemius/includes/managers/class-fs-option-manager.php:134FS_Option_Manager::get_manager()wp-content/plugins/error-log-monitor/freemius/includes/class-fs-options.php:87FS_Options->__construct()wp-content/plugins/error-log-monitor/freemius/includes/class-fs-options.php:68FS_Options::instance()wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php:3357Freemius::_load_required_static()wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php:2772Freemius::instance()wp-content/plugins/error-log-monitor/freemius/start.php:525fs_dynamic_init()wp-content/plugins/error-log-monitor/plugin.php:31wsh_elm_fs()wp-content/plugins/error-log-monitor/plugin.php:51

    Plugin Author Janis Elsts

    (@whiteshadow)

    That’s another notice in the Freemius SDK. I’ll update it once again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP 8.1 warning message’ is closed to new replies.