• Resolved mwsat

    (@mwsat)


    We get this notice shown on the Dashboard and in the debug log for some time now:

    PHP Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /appl/www/htdocs/iptc.org/wp-includes/functions.php on line 3706

    … and not any other indicator of the real source of this issue as I understand this function.php is only the trigger of this notice, but not its source. How to find the plug-in or theme still using the deprecated function.

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

    (@sterndata)

    Volunteer Forum Moderator

    If you have SSH access to your site, you can use grep

    cd /path/to/wordpress; grep -r get_current_user *

    Otherwise….

    Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    Thread Starter mwsat

    (@mwsat)

    Thanks, using grep worked – with searching for get_currentuserinfo* !

    Found two plug-ins which have been updated recently without fixing this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to find the real location of deprecated function?’ is closed to new replies.