Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Falk
    Post made: 1
  • JoiNNN
    Post made: 2

  1. PHP-Fusion Support Forums
  2. Development & Design
  3. Roadmap

Log SQL errors

[Development Team Access] All Roadmap items end up here for discussions.

2 Replies 3,246 Views Last Updated on 3 years ago

JoiNNN


Veteran Member

#1

Posted 3 years ago

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
Code Gist: Download source  

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


Go to roadmap item #1494

Posts: 862

Joined: 05/02/2011

Falk


Super Admin

#2

Posted 3 years ago

Yes, we have it here : http://www.php-fusion.co.uk/forum/viewthread.ph...ost_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 ]*._.)._.)

Posts: 3729

Joined: 27/09/2005

JoiNNN


Veteran Member

#3

Posted 3 years ago

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.

Posts: 862

Joined: 05/02/2011

Jump to Forum:
6 users are online
0 member and 6 guests