• Resolved DMS

    (@dmseaton)


    Getting the following error on page load:

    Fatal error: Uncaught TypeError: Argument 1 passed to WPOAuth2\Request::__construct() must be of the type array, null given, called in /var/www/html/WEBSITE/wp-content/plugins/wp-oauth-server/library/WPOAuth2/Request.php on line 201 and defined in /var/www/html/WEBSITE/wp-content/plugins/wp-oauth-server/library/WPOAuth2/Request.php:33 Stack trace: #0 /var/www/html/WEBSITE/wp-content/plugins/wp-oauth-server/library/WPOAuth2/Request.php(201): WPOAuth2\Request->__construct(NULL, Array, Array, Array, Array, Array) #1 /var/www/html/WEBSITE/wp-content/plugins/wp-oauth-server/wp-oauth-main.php(98): WPOAuth2\Request::createFromGlobals() #2 /var/www/html/WEBSITE/wp-includes/class-wp-hook.php(286): WO_Server->_wo_authenicate_bypass(false) #3 /var/www/html/WEBSITE/wp-includes/plugin.php(208): WP_Hook->apply_filters(false, Array) #4 /var/www/html/WEBSITE/wp-includes/user.php(2698): apply_filters('determine_curre...', false) #5 /var/www/html/WEBSITE/wp-includes/pluggable.php(69): in /var/www/html/WEBSITE/wp-content/plugins/wp-oauth-server/library/WPOAuth2/Request.php on line 33

    Server status reports OK while logged in as admin.

    No other code hooking into Wp OAuth Server as far as I can see.

    Using v3.7.3 PRO version of the plugin – if there’s some route for PRO-specific support, please let me know.

    Stack trace:

    #0 /var/www/html/WEBSITE/wp-content/plugins/wp-oauth-server/library/WPOAuth2/Request.php(202): WPOAuth2\Request->__construct(NULL, Array, Array, Array, Array, Array)
    #1 /var/www/html/WEBSITE/wp-content/plugins/wp-oauth-server/wp-oauth-main.php(98): WPOAuth2\Request::createFromGlobals()
    #2 /var/www/html/WEBSITE/wp-includes/class-wp-hook.php(286): WO_Server->_wo_authenicate_bypass(false)
    #3 /var/www/html/WEBSITE/wp-includes/plugin.php(208): WP_Hook->apply_filters(false, Array)
    #4 /var/www/html/WEBSITE/wp-includes/user.php(2701): apply_filters('determine_curre...', false)
    #5 /var/www/html/WEBSITE/wp-includes/pluggable.php(69): _wp_get_current_user()
    #6 /var/www/html/WEBSITE/wp-includes/class-wp.php(609): wp_get_current_user()
    #7 /var/www/html/WEBSITE/wp-settings.php(492): WP->init()
    #8 /var/www/html/WEBSITE/wp-config.php(107): require_once('/var/www/html/v...')
    #9 /var/www/html/WEBSITE/wp-load.php(37): require_once('/var/www/html/v...')
    #10 /var/www/html/WEBSITE/wp-blog-header.php(13): require_once('/var/www/html/v...')
    #11 /var/www/html/WEBSITE/index.php(17): require('/var/www/html/v...')
    #12 {main}
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter DMS

    (@dmseaton)

    Disregard this – some code had been introduced elsewhere which resulted in $_GET being set to null! ??

    Plugin Author Justin Greer

    (@justingreerbbi)

    Thank you for reaching out and updating the post! Let me know if there is ever anything else I can help you with.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parameter error on Request construct’ is closed to new replies.