Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Welcome to the Official Site of PHP-Fusion
Sign In
Not a member yet? Click here to register.
Navigation
2 Replies | Latest reply on 03-01-2017 04:08 by JoiNNN
JoiNNN
JoiNNN Posted 4 years ago 859 posts

Log SQL errors

SQL errors are not logged, further more they are displayed in plain sight.
Yodix already introduced PDO to PHP-Fusion, all we have to do is to set an attribute in maincore.php just after the connection to the DB is made
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);


Go to roadmap item #1494

2 Replies

Sort replies by
Falk
FalkPosted 4 years ago 3915 posts
Yes, we have it here : http://www.php-fusion.co.uk/forum/viewthread.php?thread_id=32708#post_183937
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Please read and comply with the Code of Conduct

(¯`·._.·(¯`°·._.·°º*[ Project Manager ]*º°·._.·°´¯)·._.·´¯)
JoiNNN
JoiNNNPosted 3 years ago 859 posts
Can we set error mode to WARNING since with ERRMODE_EXCEPTION the site will completely crash whereas with ERRMODE_WARNING will continue to work and log the error, then Fusion will take care of what to do when a DB result is not the expected one.

Actions

Sharing

More topics like this

You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Moderator: Development Team
JoiNNN

Log SQL errors
by JoiNNN Posted 4 years ago