• Resolved jlcarbwood

    (@jlcarbwood)


    I just downloaded the latest version and I love the tool. However, I’m getting this small error:

    Notice: Undefined variable: port in /var/www/html/wp-content/plugins/admin-bar-user-switching/functions/abus-core-functions.php on line 14

    function abus_get_current_url($parse = false )
    {
        $url = set_url_scheme( 'https://' . $_SERVER[ 'HTTP_HOST' ] . $port . $_SERVER[ 'REQUEST_URI' ] );
        $port = ( $_SERVER[ 'SERVER_PORT' ] == '80') ? '' : ( ":".$_SERVER[ 'SERVER_PORT' ] );

    A simple fix is to move line 15 first in the function. $port variable should be declared before being called in $url.

    • This topic was modified 3 years, 5 months ago by jlcarbwood.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[NSFW] $port varialble not define’ is closed to new replies.