Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cakephp 2: need help on misconfiguration with PDOStatement

I've got a problem with a request on Cakephp 2. When I try to put a ' or ? in a string I get the error message

Error: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound

[17:05:44] Root: #0 /var/home/public_html/lib/Cake/Model/Datasource/DboSource.php(436): PDOStatement->execute(Array)

This works on my local computer and all the local computers I've tried (all with WAMP installed). Only on the publication server do I get this issue.

Does anyone have a clue on this?

like image 504
Gael.D Avatar asked Jan 27 '26 16:01

Gael.D


1 Answers

I fixed this error by upgrading php to 5.3.6

the version of 5.2 my old mamp was using had this bug: https://bugs.php.net/bug.php?id=44251

like image 68
Will Avatar answered Jan 29 '26 08:01

Will