• Resolved Daniele

    (@dabesa)


    Dear support,

    We found that WP-Appbox is defining a WordPress function incorrectly.
    This is affecting WPremote plugin, that is using that function if available causing a fatal error.

    ‘ Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /var/www/vhosts/<site>/httpdocs/wp-content/plugins/wp-appbox/wp-appbox.php:102\nStack trace:\n#0 /var/www/vhosts/<site>/httpdocs/wp-content/plugins/wpremote/protect/fw/fw.php(182): is_user_logged_in()\n#1 /var/www/vhosts/<site>/httpdocs/wp-content/plugins/wpremote/protect/fw/fw.php(188): BVFW->canLog()\n#2 [internal function]: BVFW->log()\n#3 {main}\n thrown in /var/www/vhosts/<site>/httpdocs/wp-content/plugins/wp-appbox/wp-appbox.php on line 102′, referer: https://<site>/&#8217;

    WP-appbox plugin is defining the following function in the wp-appbox/wp-appbox.php file.
    if ( !function_exists(‘is_user_logged_in’) ) :
    function is_user_logged_in() {
    $user = wp_get_current_user();
    if ( empty( $user->ID ) )
    return false;
    return true;
    }
    endif;

    Now anyone using this function will face the same issue.

    Can you issue a fix?

    Thanks!
    Daniele

    • This topic was modified 2 years, 6 months ago by Daniele. Reason: hidden site with
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug in function definition’ is closed to new replies.