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?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fast_404-install_db_query_syntax-2086497-1.patch | 1.02 KB | mikemiles86 |
Comments
Comment #1
mikemiles86I ran into the same issue and have created a patch based on the changes recommended by Strae.
Comment #2
lex0r commentedmikemiles86, the patch doesn't apply to 7.x-1.3. Will you re-check that, please?
Comment #3
JamesAn commentedIt 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.