Skip to content

Please improve your exception handling #31

@udf2457

Description

@udf2457

At the moment, your code appears to make no attempt whatsoever to catch errors... after entering database details on the first install.php screen and clicking submit, I was greeted by a white screen.

No on-screen error messages, only found out more once I'd dug through the PHP logs.

PHP message: PHP Warning: chmod(): Operation not permitted in /usr/XXXX/www/lib/PhpRbac/install
.php on line 286
PHP message: PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to
open database file' in /usr/XXXX/www/lib/PhpRbac/src/PhpRbac/core/setup.php:51

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions