Just updated to latest dev-versions and here some reports I have currently:
Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in /Applications/MAMP/htdocs/drupal-7.0-beta/includes/common.inc on line 2134 and defined in drupal_http_build_query() (line 469 of /Applications/MAMP/htdocs/drupal-7.0-beta/includes/common.inc).
PS: Just switched from PHP 5.2.13 to PHP 5.3.2 cause of the errors in the styles-module.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | loginerror.txt | 91.24 KB | Anonymous (not verified) |
| #14 | find-wrong-url-caller.patch | 680 bytes | Stevel |
| #2 | find-wrong-url-caller.patch | 681 bytes | Stevel |
Comments
Comment #1
Anonymous (not verified) commentedI have the same error, it arises when I log in to the site as an administrator.
Drupal 7 Beta 3
Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in /var/www/includes/common.inc on line 2134 and defined in drupal_http_build_query() (line 469 of /var/www/includes/common.inc)
This happens for all logins. So am unable to login to the site!
Comment #2
Stevel commentedThe function url is being called with $options['query'] not being an array. Could you apply the following patch to get the backtrace to where url is called in a wrong way, and report back the backtrace?
Comment #3
Stevel commentedPostponing this until further information is received. If you have a backtrace, please set back to active.
Comment #4
jcarlson34 commentedI can reproduce this error using the Link 7.x module link field (default field settings) and a website that has a ? query in it.
Here's an example website link that causes an error when attempted to be saved by the entity: http://www.facebook.com/profile.php?ref=profile&id=500042465
Here is my specific error warnings:
* Notice: Undefined index: enable_tokens in _link_sanitize() (line 472 of /ebs1/www/html/drupal7/sites/all/modules/link/link.module).
* Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in /ebs1/www/html/drupal7/includes/common.inc on line 2100 and defined in drupal_http_build_query() (line 473 of /ebs1/www/html/drupal7/includes/common.inc).
It may be a Link module sanitize problem but the printout from the patch in #2 is so large, I just included everything above instead to recreate the issue.
Comment #5
jcarlson34 commentedBumping back to active...
Comment #6
jcarlson34 commentedA patch here: http://drupal.org/node/947050 (see post #1) fixes the link_sanitize issue but my guess is a question mark ending up in an array must be something Drupal's core does not react kindly too.
Comment #7
Anonymous (not verified) commentedStill present in RC2 when logging in, so unable to login normally.
Only way round is to try to link to a page that doesn't exist and then the admin menu appears. if you link to a page that does exist I am not logged in,
Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in /var/www/includes/common.inc on line 2152 and defined in drupal_http_build_query() (line 473 of /var/www/includes/common.inc).
Any suggestions gratefully received, is this a data issue with the login credentials?
Thanks
Comment #8
Anonymous (not verified) commentedStill present when logging in with Drupal 7 RC4 - Chrome 10
Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in /var/www/includes/common.inc on line 2152 and defined in drupal_http_build_query() (line 473 of /var/www/includes/common.inc).
I would like to up the priority to major as this is a major problem for users logging into my site.
Is there any way to correct this other than the patch method?
Thanks
Comment #9
Stevel commentedPlease use the patch from #2 in your testing environment to find out where
urlis being called with thequery-parameter as a string, and paste that back here.Postponed until a backtrace is given or a pointer to which call to
urlis wrong.Comment #10
Anonymous (not verified) commentedSorry, should have provided this. The URL is:
hostname/home?destination=node/2 which is the home page.
Behaviour is as follows.
Try to login to home page, get the above error.
If I then set url to page that doesn't exist, e.g. hostname/help and then login, login works OK.
Can provide test login if that helps.
Thanks
Nigel
Comment #11
Stevel commentedI can't reproduce the error locally. It's probably not a bug in Drupal core, but more likely in a contrib module. Could you apply the patch from #2 and give the backtrace output? (which should appear just before the error message.)
Comment #12
Anonymous (not verified) commentedOK - will do - need to find best way to apply patch, will look this up and try to get back to you ASAP.
Thanks for your help.
Comment #13
Anonymous (not verified) commentedRecoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in /var/www/includes/common.inc on line 2152 and defined in drupal_http_build_query() (line 473 of /var/www/includes/common.inc).
Have tried to apply patch with dry-run option and get the following error.
ubuntu@ip-xx-xxx-xx-xxx:/var/www/nigel$ sudo cp *.patch /var/www/includes
ubuntu@ip-xx-xxx-xx-xxx:/var/www/nigel$ cd /var/www/includes
ubuntu@ip-xx-xxx-xx-xxx:/var/www/includes$ sudo cp common.inc common.njg
ubuntu@ip-xx-xxx-xx-xxx:/var/www/includes$ sudo patch -p0 --dry-run < find-wrong-url-caller.patch
patching file includes/common.inc
Hunk #1 FAILED at 2052.
1 out of 1 hunk FAILED -- saving rejects to file includes/common.inc.rej
But there is no .rej file.
Sorry noob at patching.
Comment #14
Stevel commentedI updated the patch to apply for current HEAD, could you try again with this patch?
Comment #15
Anonymous (not verified) commentedHi
I tried with the new patch with the following result. I am using RC4.
ubuntu@ip-xx-xxx-xx-xxx:~$ cd /var/www/includes
ubuntu@ip-xx-xxx-xx-xxx:/var/www/includes$ sudo patch -p0 -b < find-wrong-url-caller_0.patch
patching file includes/common.inc
Hunk #1 FAILED at 2071.
1 out of 1 hunk FAILED -- saving rejects to file includes/common.inc.rej
ubuntu@ip-xx-xxx-xx-xxx:/var/www/includes$
However just about to load final D7 release. Will try again after that and post result.
Thanks
Nigel
Comment #16
Anonymous (not verified) commentedSame error on D7.0
Comment #17
Anonymous (not verified) commentedSorry Stevel - my mistake, I was patching from within includes directory.
I have attached the output when accessing the home page.
I have reverted back to backup copy of common.inc
Thanks
Nigel
Comment #18
Anonymous (not verified) commentedI have disabled the Printer Friendly Pages module - this is the cause of the problem.
Sorry to have wasted your time, I will log the problem on the module page.
Nigel
Comment #19
Stevel commentedThat's what I was helping for, so no problem. Bugs still go against -dev though
Comment #20
jcarlson34 commentedJust looking back this thread. It looks to me like all the errors turned out to be contrib instead of from Drupal.
Marking this fixed to clean up the boards a bit. Obviously feel free to reopen if you experience any further occurrence of this.