• a1exus

    (@a1exus)


    I recently updated my WordPress to latest version, and now I’m getting following messages:

    Notice: get_currentuserinfo is deprecated since version 4.5! Use wp_get_current_user() instead. in /X/wordpress/wp-includes/functions.php on line 3658
    
    Notice: add_object_page is deprecated since version 4.5! Use add_menu_page() instead. in /X/wordpress/wp-includes/functions.php on line 3658

    How can I pinpoint whoever is responsible for generating these PHP notices?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you have wp_debug enabled, you’ll see those. Turn off wp_debug on production sites.

    Those functions are used in one (or more) of your plugins or theme. Given they were just deprecated, you may have to wait for an update or two for them to be cleared up.

    If they really trouble you, check the PHP code for your plugins and theme.

    girlieworks

    (@girlieworks)

    @a1exus: You might also try using plugins like Plugin Inspector and Theme Check to try to pinpoint where the deprecated functions are actually being used.

    Suyogya Shukla

    (@themeislesupport)

    Hey there,

    Looks like one of your plugins/themes is outdated. If your site is functioning properly, then you can safely ignore the notice. You can turn off WP_DEBUG in your wp-config.php file, so that it does not shows notices anymore by adding following piece of code to your wp-config.php file

    define( 'WP_DEBUG', false );

    Hope it helps.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Notice "is deprecated since version 4.5!"’ is closed to new replies.