I recently upgraded to PHP 7.0.16 on my opensuse 13.1 beta server to test out how our site will run. I'm getting an error in the Drupal 7 recent logs page everytime I try to run cron.
TypeError: Argument 2 passed to db_query() must be of the type array, string given, called in sites/default/modules/feeds_imagegrabber/feeds_imagegrabber.module on line 127 in db_query() (line 2401 of includes/database/database.inc).
Running cron from within Drupal produces this error with a white screen and the message:
The website encountered an unexpected error. Please try again later.
Comment | File | Size | Author |
---|---|---|---|
#4 | invalid_argument-2859003-3.diff | 525 bytes | idflood |
Comments
Comment #2
specificleaf CreditAttribution: specificleaf commentedSame error when trying to remove content:
TypeError: Argument 2 passed to db_query() must be of the type array, string given, called in /path/to/drupal/sites/all/modules/feeds_imagegrabber/feeds_imagegrabber.module on line 127 in db_query() (line 2401 of /path/to/drupal/includes/database/database.inc).
Comment #3
idflood CreditAttribution: idflood at Stimul.ch commentedComment #4
idflood CreditAttribution: idflood at Stimul.ch commentedHere is a simple patch for this.
Comment #5
zoraxthank's it' works well.
Comment #6
Dan Kolbas CreditAttribution: Dan Kolbas commentedI ran into this issue as well. Then made a patch before i noticed this was filled, but your solution looks good too.
Comment #7
calebtr CreditAttribution: calebtr commentedThe patch in #4 works well.
Comment #8
rooby CreditAttribution: rooby commentedClosing as duplicate of #2748459: Argument 2 passed to db_query() must be of the type array, string given
Comment #9
Liam Morland