[mythtv-commits] Ticket #3824: require_once failed to open stream in mythweb/includes/init.php
MythTV
mythtv at cvs.mythtv.org
Tue Aug 14 01:11:46 UTC 2007
#3824: require_once failed to open stream in mythweb/includes/init.php
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: xris
Type: defect | Status: new
Priority: major | Milestone: unknown
Component: mythweb | Version: unknown
Severity: medium | Mlocked: 0
-----------------------+----------------------------------------------------
After updating mythweb I was recieving the following error:
Error at /var/www/html/mythweb/includes/init.php, line 119:
require_once(includes/objects/Database) [function.require-once]: failed to
open stream: No such file or directory
After further investigation, the function require once was trying to load
the Database object as a file. Line 119 of init.php showed:
// Load the database connection routines
foreach (get_sorted_files('includes/objects/', '/^Database/') as
$file) {
''' require_once "includes/objects/$file";'''
}
I patched this error, by surrounding it with a check if the $file was !=
to "Database" which then corrected the error.
// Load the database connection routines
foreach (get_sorted_files('includes/objects/', '/^Database/') as
$file) {
''' if ($file != "Database") {
require_once "includes/objects/$file";
}
'''
}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3824>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list