Just downloaded and tryed to install the 7.x-1.3 version, and i got the error

Recoverable fatal error: Argument 2 passed to db_query() must be an array, integer given in line 11 of fast_404.install

I just changed line 11 from:

db_query("UPDATE {system} SET bootstrap = %d, weight = %d WHERE name = '%s' AND type = '%s'", $bootstrap, $weight, $name, $type); 

to

db_query("UPDATE {system} SET bootstrap = :bt, weight = :we WHERE name = :na AND type = :ty", array(':bt' => $bootstrap, ':we' => $weight, ':na' => $name, ':ty' => $type)); 

and now works.

Looks like the D6 db_query syntax is been used in the D7 version?

Comments

mikemiles86’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new1.02 KB

I ran into the same issue and have created a patch based on the changes recommended by Strae.

lex0r’s picture

mikemiles86, the patch doesn't apply to 7.x-1.3. Will you re-check that, please?

JamesAn’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (duplicate)

It appears this has been addressed in 7.x-1.x-dev in #1500092-19: Recoverable fatal error upon installation.. The fix has been sitting in dev since May 2013, but the accepted #1500092-14: Recoverable fatal error upon installation. seems to resolve this issue along with using the preferred D7 PDO API.