In the class constructor for working with the database I set the attribute
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); However, no errors are displayed (although they exist).
In particular
$sql = "select count(*) from `punbb_users` where `username` = ? limit 1"; $params = 'somebody'; $stmt = $this->pdo->prepare($sql); $stmt->execute($params); It does not give an error, although it does not execute, since $params is not an array.
What could be the problem? (other warnings are displayed, that is, their output mode is enabled).