Title: Parameter error on Request construct
Last modified: May 20, 2019

---

# Parameter error on Request construct

 *  Resolved [DMS](https://wordpress.org/support/users/dmseaton/)
 * (@dmseaton)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/parameter-error-on-request-construct/)
 * 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](https://wordpress.org/support/users/dmseaton/)
 * (@dmseaton)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/parameter-error-on-request-construct/#post-11550745)
 * Disregard this – some code had been introduced elsewhere which resulted in $_GET
   being set to null! 😀
 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/parameter-error-on-request-construct/#post-11550900)
 * 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.

 * ![](https://ps.w.org/oauth2-provider/assets/icon-256x256.gif?rev=2603051)
 * [WP OAuth Server (OAuth Authentication)](https://wordpress.org/plugins/oauth2-provider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oauth2-provider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oauth2-provider/)
 * [Active Topics](https://wordpress.org/support/plugin/oauth2-provider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oauth2-provider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oauth2-provider/reviews/)

## Tags

 * [parameter](https://wordpress.org/support/topic-tag/parameter/)
 * [request](https://wordpress.org/support/topic-tag/request/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * 2 replies
 * 2 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/parameter-error-on-request-construct/#post-11550900)
 * Status: resolved