|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50818 SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
Submitted: 2010-01-22 00:36 UTC Modified: 2010-04-23 16:12 UTC
From: saschagros at gmail dot com Assigned:
Status: Not a bug Package: PDO related
PHP Version: 6SVN-2010-01-22 (snap) OS: Linux (Ubuntu)
Private report: No CVE-ID: None
 [2010-01-22 00:36 UTC] saschagros at gmail dot com
Once again trying to get Drupal to run with PHP 6.

I'm getting the following error on the first query that is run..

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in .../drupal7/includes/database/

That line looks like this:
    $return = parent::execute($args);
Note: parent is PDOStatement.

The executed query:
unicode(87) "SELECT data, created, headers, expire, serialized FROM cache_bootstrap WHERE cid = :cid"

$args contains:
array(1) {
  unicode(9) "variables"

I would suspect that it does have something to do with unicode.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-24 13:26 UTC]
There's no PHP 6 any more. What shall happen to those reports: close, bogus, test against 5.3, test against new trunk?
 [2010-04-23 16:12 UTC]
-Status: Open +Status: Bogus
 [2010-04-23 16:12 UTC]
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 10:01:28 2024 UTC