The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help tracking down error - Failed opening required
I have some code in a directory in my forum directory that keeps causing the following error whenever I call it:
Code:
Failed opening required 'DIR/includes/class_dm.php' (include_path='.:/usr/share/php:/usr/share/pear') 1) My function calls process_logout() in functions_login.php. (I have included functions_login.php with require_once - that is working and not an issue here). 2) In process_logout() on line 341 (I'm running version 3.6.8) the following call is made: Code:
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT); 3) The function datamanager_init() is in the file functions.php. In this file, at line 74, the following call is made: Code:
require_once(DIR . '/includes/class_dm.php'); Code:
if (!empty($vbulletin->config['Misc']['forumpath'])) { define('DIR', $vbulletin->config['Misc']['forumpath']); } Code:
$config['Misc']['forumpath'] = '/var/www/testvb'; Thanks! |
#2
|
|||
|
|||
Are you including class_dm.php or is vbulletin doing it?
|
#3
|
|||
|
|||
Thanks for the reply...
Quote:
--------------- Added [DATE]1207848468[/DATE] at [TIME]1207848468[/TIME] --------------- I'm not entirely sure how but I think that somehow I was overwriting the value for DIR in my script, thus causing the problem in functions.php where class_dm.php was being included. In my script, when I changed this Code:
define('FORUM_ROOT', $this->config['Misc']['forumpath']); Code:
define('DIR', $this->config['Misc']['forumpath']); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|