When I tried upgrading to PHP 7.2, I get the following error:
PHP message: PHP Fatal error: Redefinition of parameter $thisLink in WWWROOT/vhosts/www/htdocs/wp-content/plugins/wp-rss-multi-importer/inc/excerpt_functions.php on line 570
PHP message: PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in WWWROOT/vhosts/www/htdocs/wp-content/plugins/wp-photo-album-plus/wppa-users.php:68
#0 WWWROOT/vhosts/www/htdocs/wp-content/plugins/wp-photo-album-plus/wppa-session.php(169): wppa_get_user()
#1 WWWROOT/vhosts/www/htdocs/wp-includes/class-wp-hook.php(286): wppa_session_end(”)
#2 WWWROOT/vhosts/www/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 WWWROOT/vhosts/www/htdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#4 WWWROOT/vhosts/www/htdocs/wp-includes/load.php(679): do_action(‘shutdown’)
#5 [internal function]: shutdown_action_hook()
thrown in WWWROOT/vhosts/www/htdocs/wp-content/plugins/wp-photo-album-plus/wppa-users.php on line 68
Is there a way to fix this for PHP 7.2?
- The topic ‘Undefined call to wp_get_current_user’ is closed to new replies.