Opened 5 months ago

Closed 4 weeks ago

#13509 closed Bug Report - General (Fixed)

Mythweb Throws Errors in Ubuntu 18.04.3 LTS

Reported by: simplyseth Owned by: Stuart Auchterlonie
Priority: major Milestone: 31.0
Component: Plugin - MythWeb Version: v30-fixes
Severity: medium Keywords: mythweb, ubuntu, php7.2
Cc: Ticket locked: no

Description

OS

  • Ubuntu 18.04.3 LTS AMD64

Package versions

Package Version
apache2 2.4.29-1ubuntu4
mythweb 2:30.0+fixes.20
php-common 1:60ubuntu1
php7.2-common 7.2.24-0ubuntu0.18.04.1
mythtv2:30.0+fixes.20

Error output

Warning at /usr/share/mythtv/mythweb/includes/utils.php, line 334:
!!NoTrans: Use of undefined constant tmpl - assumed 'tmpl' (this will throw an Error in a future version of PHP)!!

Warning at /usr/share/mythtv/mythweb/includes/utils.php, line 335:
!!NoTrans: Use of undefined constant tmpl - assumed 'tmpl' (this will throw an Error in a future version of PHP)!!
  Fatal error: Uncaught Error: Call to undefined function t() in 
  /usr/share/mythtv/mythweb/modules/database/init.php:10 Stack trace: #0 
  /usr/share/mythtv/mythweb/classes/Modules.php(30): require_once() #1 
  /usr/share/mythtv/mythweb/classes/Modules.php(50): Modules::load() #2 
  /usr/share/mythtv/mythweb/modules/_shared/tmpl/default/header.php(144): Modules::getModule('tv') #3 
  /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/error.php(19): include('/usr/share/myth...') #4 
  /usr/share/mythtv/mythweb/includes/errordisplay.php(198): require_once('/usr/share/myth...') #5 
  /usr/share/mythtv/bindings/php/MythBackend.php(77): custom_error('Unable to conne...') #6 
  /usr/share/mythtv/bindings/php/MythBackend.php(138): MythBackend->connect(false) #7 
  /usr/share/mythtv/mythweb/includes/utils.php(56): MythBackend->sendCommand(Array) #8 
  /usr/share/mythtv/mythweb/includes/db_update.php(57): setting('recommend_enabl...', NULL, false) #9 
  /usr/share/mythtv/mythweb/includes/init.php(46): require_once('/usr/share/myth...') #10 /usr/share/mythtv/ in 
  /usr/share/mythtv/mythweb/modules/database/init.php on line 10

Attachments (1)

full_error.txt (68.3 KB) - added by simplyseth 5 months ago.
Full Output

Download all attachments as: .zip

Change History (3)

Changed 5 months ago by simplyseth

Attachment: full_error.txt added

Full Output

comment:1 Changed 8 weeks ago by faginbagin

I think these errors may only occur when mythbackend is not running. At least that's when I saw these errors. It would be nice if mythweb could produce more informative output when the backend isn't running, but if it is running, mythweb should be OK.

comment:2 Changed 4 weeks ago by Stuart Auchterlonie

Milestone: needs_triage31.0
Resolution: Fixed
Status: newclosed

We have fixed a lot of issues related to PHP-7.2 (and later), so i'm closing this as fixed.

Please open a new ticket if you have further issues.

Note: See TracTickets for help on using tickets.