<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 25 Apr 2022, at 10:31 pm, Paul Harrison <<a href="mailto:mythtv@mythqml.net" class="">mythtv@mythqml.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Looks like all db errors are being treated as fatal on your system but not on others.</p><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a class="moz-txt-link-freetext" href="https://github.com/MythTV/mythweb/blob/master/modules/music/init.php#L14">https://github.com/MythTV/mythweb/blob/master/modules/music/init.php#L14</a></p><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">It looks like that code should first disable fatal errors, check for the existence of the music_songs table and enable or disable the music module accordingly. </p></div></blockquote></div><br class=""><div class="">I'm not going to lose sleep but:</div><div class=""><br class=""></div><div class=""><div class=""><br class=""></div><div class="">// First, we should check to see that MythMusic is configured.</div><div class="">// Make sure to turn off fatal errors in case the table isn't there.</div><div class=""> $db->disable_fatal_errors();</div><div class=""> $has_music = $db->query_col('SELECT COUNT(*) FROM music_songs');</div><div class=""> $db->enable_fatal_errors();</div><div class=""> $db->error(false);</div></div><div class=""><br class=""></div><div class="">But I get a fatal error! maybe there's another check?</div><div class=""><br class=""></div><div class=""><br class="">Fatal error: Uncaught mysqli_sql_exception: Table 'mythconverg.music_songs' doesn't exist in /var/www/html/mythweb/classes/Database/Query/mysqlicompat.php:68 Stack trace: #0 /var/www/html/mythweb/classes/Database/Query/mysqlicompat.php(68): mysqli_query() </div><div class=""><br class=""></div><div class="">Yup</div><div class="">James</div></body></html>