PDO::setAttribute() expects parameter 1 to be integer, string given

This is a regression bug affecting v0.9.0. It has been fixed in newer versions of the application.

To apply a fix, simply follow these instructions:

Open app/System/EnvironmentChecks.php, on line 218, replace:

$pdo->setAttribute("PDO::ATTR_ERRMODE", PDO::ERRMODE_EXCEPTION);

with

$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

Notice that the quotes around PDO::ATTR_ERRMODE have been removed in the new code.

Your vote was sent, thanks!
Was this article helpful?

Want to talk to a human?

Feel free to contact us if you cannot find what you are looking for in our help center. We will be answering you shortly!

Feel free to contact us if you cannot find what you are looking for in our help center. We will be answering you shortly!

Contact us
Woman messaging on mobile phone