Opened 10 years ago

Closed 10 years ago

#8422 closed defect (duplicate)

.tmpl. not resolving correct path

Reported by: iskimj@… Owned by: Rob Smith
Priority: minor Milestone: unknown
Component: Plugin - MythWeb Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I just upgraded to Ubuntu 10.04 with the repository mythweb package 0.23+fixes

When I try to browse to the mythweb page, I get this error:

Warning at /usr/share/mythtv/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php, line 23: require(modules/_shared/tmpl/tmpl/header.php): failed to open stream: No such file or directory

The error reports the path/file _shared/tmpl/tmpl/header.php which doesn't exist. There is a header.php located in _shared/tmpl/default/

Looking at db_vars_error.php, it appears that this line isn't resolving correctly:

require 'modules/_shared/tmpl/'.tmpl.'/header.php';

If I hard code my path:

require 'modules/_shared/tmpl/default/header.php';

I get past that error but the page which loads isn't very good. It's a simple box with a link "MythTV" which is a link to the homepage (current page) and that's the only thing on the page.

Is ".tmpl." in other files and causing a similar problem but not generating an error?

Change History (1)

comment:1 Changed 10 years ago by sphery

Resolution: duplicate
Status: newclosed

Dup of #8158 . Please see that ticket for the actual configuration issues that may be causing the bad error message. Basically, your Apache MythWeb configuration is not properly specifying the database or your MySQL permissions are not set properly.

Note: See TracTickets for help on using tickets.