Closed (fixed)
Project:
Spaces
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
4 Nov 2011 at 16:49 UTC
Updated:
2 Mar 2012 at 15:00 UTC
Visit a node you know is in a group:
/node/123
Notice how it will redirect:
/SPACENAME/node/123
Now try to visit the node URL with a query parameter:
/node/123?destination=home or any other $_GET query.
and you will see a big Error, and in the watchdog: Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given
This patch fixes it. Tracked it down to space_type_purl->activate(); the $options['query'] must still be an array.
| Comment | File | Size | Author |
|---|---|---|---|
| space_type_purl.inc_.options.patch | 649 bytes | jon pugh |
Comments
Comment #1
arosboro commentedWhen I used ?destination=home the page loaded without issue (perhaps because home is not a valid alias on my site) I managed to reproduce your error with '/node/4?test=test':
The error does not occur after patching.
original code:
'query' => drupal_http_build_query(drupal_get_query_parameters($_GET, array('q')))It looks like
drupal_http_build_query()was being called twice.Comment #2
tobby commentedExcellent find, and thanks for the patch careernerd. I've tested that patch (I ran into the same issue today) and it worked for me, so I committed that at http://drupalcode.org/project/spaces.git/commit/689abc6
Comment #3
jon pughSetting to fixed, since it has been committed.
Comment #4.0
(not verified) commentedreadability fix