• hello so on wordpress 6.2.2 on php 8.1 it says Deprecated the next codes

    07-Jun-2023 06:40:57 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/domain.gr/httpdocs/wp-includes/functions.php on line 7053
    [07-Jun-2023 06:40:57 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/domain.gr/httpdocs/wp-includes/functions.php on line 2165

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    what exactly are you doing when this error appears?

    I would need a backtrace in order to debug this correctly, please go into the file wp-includes/functions.php and on the line 2157 (before the line if ( wp_is_stream( $path ) ) {

    Add these lines:

    if ( $path === null ) {
       debug_print_backtrace();
    }

    This will print the backtrace when the error occurs. Then please post this backtrace

    Thread Starter Insect Trojan

    (@insecttrojan)

    r/httpdocs/wp-includes/plugin.php(768): wp_normalize_path(NULL) #1 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/plugin.php(1405): plugin_basename(NULL) #2 /var/www/vhosts/domain.gr/httpdocs/wp-content/plugins/header-footer-code-manager/99robots-header-footer-code-manager.php(272): add_submenu_page(NULL, ‘…’, ‘…’, ‘…’, ‘…’, Array) #3 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(308): NNR_HFCM::hfcm_modifymenu(”) #4 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/menu.php(155): do_action(‘…’, ”) #7 /var/www/vhosts/domain.gr/httpdocs/wp-admin/menu.php(420): require_once(‘…’) #8 /var/www/vhosts/domain.gr/httpdocs/wp-admin/admin.php(158): require(‘…’) #9 /var/www/vhosts/domain.gr/httpdocs/wp-admin/index.php(10): require_once(‘…’) #0 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(768): wp_normalize_path(NULL) #1 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/plugin.php(1405): plugin_basename(NULL) #2 /var/www/vhosts/domain.gr/httpdocs/wp-content/plugins/header-footer-code-manager/99robots-header-footer-code-manager.php(282): add_submenu_page(NULL, ‘…’, ‘…’, ‘…’, ‘…’, Array) #3 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(308): NNR_HFCM::hfcm_modifymenu(”) #4 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/menu.php(155): do_action(‘…’, ”) #7 /var/www/vhosts/domain.gr/httpdocs/wp-admin/menu.php(420): require_once(‘…’) #8 /var/www/vhosts/domain.gr/httpdocs/wp-admin/admin.php(158): require(‘…’) #9 /var/www/vhosts/domain.gr/httpdocs/wp-admin/index.php(10): require_once(‘…’) #0 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(768): wp_normalize_path(NULL) #1 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/plugin.php(1405): plugin_basename(NULL) #2 /var/www/vhosts/domain.gr/httpdocs/wp-content/plugins/wp-google-places-review-slider/admin/class-wp-google-reviews-admin.php(273): add_submenu_page(NULL, ‘…’, ‘…’, ‘…’, ‘…’, Array) #3 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(308): WP_Google_Reviews_Admin->add_menu_pages(”) #4 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/menu.php(155): do_action(‘…’, ”) #7 /var/www/vhosts/domain.gr/httpdocs/wp-admin/menu.php(420): require_once(‘…’) #8 /var/www/vhosts/domain.gr/httpdocs/wp-admin/admin.php(158): require(‘…’) #9 /var/www/vhosts/domain.gr/httpdocs/wp-admin/index.php(10): require_once(‘…’) #0 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(768): wp_normalize_path(NULL) #1 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/plugin.php(1405): plugin_basename(NULL) #2 /var/www/vhosts/domain.gr/httpdocs/wp-content/plugins/wp-google-places-review-slider/admin/class-wp-google-reviews-admin.php(279): add_submenu_page(NULL, ‘…’, ‘…’, ‘…’, ‘…’, Array) #3 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(308): WP_Google_Reviews_Admin->add_menu_pages(”) #4 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/menu.php(155): do_action(‘…’, ”) #7 /var/www/vhosts/domain.gr/httpdocs/wp-admin/menu.php(420): require_once(‘…’) #8 /var/www/vhosts/domain.gr/httpdocs/wp-admin/admin.php(158): require(‘…’) #9 /var/www/vhosts/domain.gr/httpdocs/wp-admin/index.php(10): require_once(‘…’)

    Hi,

    this error is caused by the plugin header-footer-code-manage

    Please post these error messages and the backtrace to the plugin’s support forum, the developers should be able to help you out with that.

    https://www.ads-software.com/support/plugin/header-footer-code-manager/

    You could also deactivate the plugin if you don’t need it.

    PLEASE: delete the code that I told you to add earlier!

    Thread Starter Insect Trojan

    (@insecttrojan)

    thanks a lot

    You’re welcome ??

    Thread Starter Insect Trojan

    (@insecttrojan)

    sorry one last thing i deactivated the header-footer-code-manager but it still shows on logs the same error

    Hi,

    are you sure those aren’t the old errors? Try to delete the plugin and if the errors are still showing up then please first make sure it is the same error message, if it is then please add the code that I provided earlier to print the backtrace.

    Thread Starter Insect Trojan

    (@insecttrojan)

    when the plugin is deactivated is still running ?

    Sorry I don’t know, could be.

    Thread Starter Insect Trojan

    (@insecttrojan)

    with inactive the header-footer-code-manager it says

    r/httpdocs/wp-includes/plugin.php(768): wp_normalize_path(NULL) #1 /var/www/vhosts/doamin.gr/httpdocs/wp-admin/includes/plugin.php(1405): plugin_basename(NULL) #2 /var/www/vhosts/domain.gr/httpdocs/wp-content/plugins/wp-google-places-review-slider/admin/class-wp-google-reviews-admin.php(273): add_submenu_page(NULL, ‘…’, ‘…’, ‘…’, ‘…’, Array) #3 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(308): WP_Google_Reviews_Admin->add_menu_pages(”) #4 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/menu.php(155): do_action(‘…’, ”) #7 /var/www/vhosts/domain.gr/httpdocs/wp-admin/menu.php(420): require_once(‘…’) #8 /var/www/vhosts/domain.gr/httpdocs/wp-admin/admin.php(158): require(‘…’) #9 /var/www/vhosts/domain.gr/httpdocs/wp-admin/update-core.php(10): require_once(‘…’) #0 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(768): wp_normalize_path(NULL) #1 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/plugin.php(1405): plugin_basename(NULL) #2 /var/www/vhosts/domain.gr/httpdocs/wp-content/plugins/wp-google-places-review-slider/admin/class-wp-google-reviews-admin.php(279): add_submenu_page(NULL, ‘…’, ‘…’, ‘…’, ‘…’, Array) #3 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(308): WP_Google_Reviews_Admin->add_menu_pages(”) #4 /var/www/vhosts/domain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/vhosts/domain.gr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/vhosts/domain.gr/httpdocs/wp-admin/includes/menu.php(155): do_action(‘…’, ”) #7 /var/www/vhosts/domain.gr/httpdocs/wp-admin/menu.php(420): require_once(‘…’) #8 /var/www/vhosts/domain.gr/httpdocs/wp-admin/admin.php(158): require(‘…’) #9 /var/www/vhosts/domain.gr/httpdocs/wp-admin/update-core.php(10): require_once(‘…’)

    Hi,

    now the same problem occurs with the wp-google-places-review-slider plugin, please write in the plugin’s support forum: https://www.ads-software.com/support/plugin/wp-google-places-review-slider/

    We shouldn’t deactivate the plugins since these are only deprecation notices and not errors, when you deactivate WordPress debug mode, these messages should be silenced: https://www.ads-software.com/documentation/article/debugging-in-wordpress/

    • This reply was modified 1 year, 5 months ago by !Benni.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Deprecated: strpos():’ is closed to new replies.