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

CommentFileSizeAuthor
#2 archive_patch.txt508 bytesshivachevva

Comments

cutefilm’s picture

Hi!

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!

shivachevva’s picture

StatusFileSize
new508 bytes

Hi,

Use this patch for removing the fatal error.

Thanks,
Shivakumar

a.kahn’s picture

Issue summary: View changes

Hi 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

dddave’s picture

@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.)

dddave’s picture

@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.)