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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1504958-password_tab_passing_string_to_drupal_goto-1.patch | 708 bytes | erikwebb |
Comments
Comment #1
erikwebb commentedPlease test.
Comment #2
erikwebb commentedhttp://drupalcode.org/project/password_policy.git/commit/eed304b
Comment #4
tatyana commentedquery 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().
Comment #5
erikwebb commentedBecause this requires a separate patch, please do not re-open a closed/fixed issue. Instead open a new one and reference the old ticket.
Comment #6
tatyana commentedok, sorry, new issue is created http://drupal.org/node/1643980