The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error reporting for DB queries
#1
Using US 4.1.

How does one tell the PDO object to start dying (with informative messages) on errors? While under development it's a lot easier to let it die and tell me why than have it continue on its way without saying anything.

Obviously I can (and will) check the return value of each DB call, but while I'm in the development phase I'm used to leaning on those error messages. What settings is it that's making it so PDO errors get ignored?

(I just had an $db->insert() with the wrong table name and banged my head against it for a long time because I just didn't notice the typo - an error message would have called my attention to it immediately.)

Is this something in my wamp configuration or something set within UserSpice? I just reinstalled Wamp and so I've changed 2 things and I'm not sure which one to chase down...
  Reply


Messages In This Thread
Error reporting for DB queries - by plb - 08-27-2016, 12:47 PM
Error reporting for DB queries - by mudmin - 08-27-2016, 01:11 PM
Error reporting for DB queries - by mudmin - 08-27-2016, 01:11 PM
Error reporting for DB queries - by plb - 08-27-2016, 01:51 PM
Error reporting for DB queries - by waynez - 03-09-2017, 06:03 PM
Error reporting for DB queries - by mudmin - 03-09-2017, 09:32 PM
Error reporting for DB queries - by jmac - 08-15-2017, 10:57 AM
Error reporting for DB queries - by jmac - 08-15-2017, 11:58 AM
Error reporting for DB queries - by jmac - 08-15-2017, 11:25 PM
Error reporting for DB queries - by karsen - 08-17-2017, 06:26 PM
Error reporting for DB queries - by mudmin - 08-18-2017, 11:38 AM
Error reporting for DB queries - by mudmin - 08-18-2017, 03:01 PM
Error reporting for DB queries - by karsen - 08-18-2017, 05:09 PM
Error reporting for DB queries - by karsen - 08-18-2017, 07:06 PM
Error reporting for DB queries - by jmac - 08-19-2017, 04:34 AM
Error reporting for DB queries - by mudmin - 08-24-2017, 10:21 AM
Error reporting for DB queries - by mudmin - 08-25-2017, 12:14 PM
Error reporting for DB queries - by Katronix - 09-03-2017, 03:13 AM
Error reporting for DB queries - by Katronix - 09-03-2017, 03:32 AM
Error reporting for DB queries - by mudmin - 09-03-2017, 12:47 PM
Error reporting for DB queries - by Katronix - 09-03-2017, 02:56 PM
Error reporting for DB queries - by mudmin - 09-03-2017, 03:07 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)