Hi,
I have this error, when I want to show only on content type in the archive page, i.e. when I click on the content type story for example.
Recoverable fatal error : Argument 2 passed to db_query() must be an array, string given, called in /home/www/XXXXXXX.com/sites/all/modules/archive/archive.pages.inc on line 244 and defined dans db_query() (ligne 2309 dans /home/www/XXXXXX.com/includes/database/database.inc).
I've tried to uninstall and re-install the module. Always same error.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | archive_patch.txt | 508 bytes | shivachevva |
Comments
Comment #1
cutefilm commentedHi!
I have got the same error when choosing showing my posts by content types instead for data:
Recoverable fatal error: Argument 2 passed to db_query() must be an array, string given, called in /home3/cutefilm/public_html/sites/all/modules/archive/archive.pages.inc on line 244 and defined in db_query() (line 2313 of /home3/cutefilm/public_html/includes/database/database.inc).
Anyone can help with this?
Thank you!
Comment #2
shivachevva commentedHi,
Use this patch for removing the fatal error.
Thanks,
Shivakumar
Comment #3
a.kahn commentedHi shivachevva,
I am receiving the same error. Can you please tell me how to use this patch? Sorry I haven't done this before :)
Thanks, Alice
Comment #4
dddave commented@a.kahn https://www.drupal.org/patch/apply
In this case you should be able to hack it manually (try on test instal first!) because you basically only need to replace one line in archive/archive.pages.inc. Remove the line that has the minus and replace it with the line that has the plus.
(Note: I cannot vouch for the patch. Just explaining the process here.)
Comment #5
dddave commented@a.kahn https://www.drupal.org/patch/apply
In this case you should be able to hack it manually (try on test instal first!) because you basically only need to replace one line in archive/archive.pages.inc. Remove the line that has the minus and replace it with the line that has the plus.
(Note: I cannot vouch for the patch. Just explaining the process here.)