I got this error when testing initial login as a new user after installing and configuring the module.

Recoverable fatal error: Argument 2 passed to drupal_goto() must be an array, string given, called in /var/www/drupal-7/sites/all/modules/password_policy/contrib/password_tab/password_policy_password_tab.module on line 71 and defined in drupal_goto() (line 668 of /var/www/drupal-7/includes/common.inc).

The call to drupal_goto is

// Change the drupal_goto to our change password tab.
        $path .= '/password';
        $query = isset($url_parts['query']) ? $url_parts['query'] : NULL;
        $fragment = isset($url_parts['fragment']) ? $url_parts['fragment'] : NULL;
        drupal_goto($path, $query, $fragment);

$query is evaluating to a string rather than an associative array.

Comments

erikwebb’s picture

Title: Password Tab passing string instead of array » Password Tab passing string instead of array to drupal_goto()
Status: Active » Needs review
StatusFileSize
new708 bytes

Please test.

erikwebb’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tatyana’s picture

Version: 7.x-1.0-rc2 » 7.x-1.0
Status: Closed (fixed) » Active

query parameter should also be an array, not string, as this is causing another fatal error when using one-time login link etc:

Location http://localhost/user/reset/426/1339690586/tcTn64417iS31RvKwzHMZvocMZZ3k...
Referrer http://localhost/user/reset/426/1339690586/tcTn64417iS31RvKwzHMZvocMZZ3k...
Message Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in .\includes\common.inc on line 2193 and defined in drupal_http_build_query() (line 477 of .\includes\common.inc).

Can be fixed by replacing parse_url() with drupal_parse_url().

erikwebb’s picture

Version: 7.x-1.0 » 7.x-1.0-rc2
Status: Active » Closed (fixed)

Because this requires a separate patch, please do not re-open a closed/fixed issue. Instead open a new one and reference the old ticket.

tatyana’s picture

ok, sorry, new issue is created http://drupal.org/node/1643980