[mythtv-commits] Ticket #9399: Missing db_server environment setting gives strange errors
MythTV
noreply at mythtv.org
Wed Dec 22 22:10:43 UTC 2010
#9399: Missing db_server environment setting gives strange errors
----------------------------------+-------------------------
Reporter: mythweb@… | Owner: kormoc
Type: Bug Report | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeb | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
----------------------------------+-------------------------
Found this while experimenting with lighttpd and php-fpm.
If no setting is found for the database (db_server for example) an error
message will be constructed before some translation-variables have been
initalized. This gives errors similar to ticket #9255:
{{{
Fatal error: Failed to open translation file:
modules_path/_shared/lang/English.lang in
/var/www/mythweb.blizz.internal/htdocs/classes/Translate.php on line 172
}}}
I added a debug_print_backtrace() in Translate.php on line 167 and got
this trace which should be helpful:
{{{
#0 Translate->load_translation() called at
[/var/www/mythweb.internal/htdocs/classes/Translate.php:58]
#1 Translate->__construct()
#2 ReflectionClass->newInstanceArgs(Array ()) called at
[/var/www/mythweb.internal/htdocs/classes/MythBase.php:34]
#3 MythBase::find() called at
[/var/www/mythweb.internal/htdocs/includes/errors.php:111]
#4 error_handler(8, Use of undefined constant tmpl - assumed 'tmpl',
/var/www/mythweb.internal/htdocs/modules/_shared/tmpl/_errors/db_vars_error.php,
23, Array ([error] => db_vars_error,[page_title] => MythWeb - Error -
Database Setup Error,[headers] => Array ([0] => ))) called at
[/var/www/mythweb.internal/htdocs/modules/_shared/tmpl/_errors/db_vars_error.php:23]
#5
require_once(/var/www/mythweb.internal/htdocs/modules/_shared/tmpl/_errors/db_vars_error.php)
called at [/var/www/mythweb.internal/htdocs/includes/errordisplay.php:186]
#6 tailored_error(db_vars_error) called at
[/var/www/mythweb.internal/htdocs/includes/database.php:24]
#7 require_once(/var/www/mythweb.internal/htdocs/includes/database.php)
called at [/var/www/mythweb.internal/htdocs/includes/init.php:41]
#8 require_once(/var/www/mythweb.internal/htdocs/includes/init.php) called
at [/var/www/mythweb.internal/htdocs/mythweb.php:20]
}}}
Tested on latest 0.24
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9399>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list