所以我正在使用vbulletin并且大约一个星期以来我的所有mods基本上都被打破了 . 我认为我的php文件路径有些问题 .

我的代码是这样的:

<?php
// ####################### SET     PHP ENVIRONMENT     ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT', 'Roleplay-Chatroom');
define('CSRF_PROTECTION', true);
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('chatroom',

);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('../global.php');

// #######################################################################

// ######################## START MAIN SCRIPT ##################### ####### // ################################################### ##############################

$navbits = construct_navbits(array('' => 'RPGC Chatroom'));
$navbar = render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'Roleplaying Chatroom';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater = vB_Template::create('chatroom');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

?>

并在页面上输出此错误:

警告:require_once(/home/rpgchaz/public_html/chat/includes/init.php):无法打开流:第101行/home/rpgchaz/public_html/includes/class_bootstrap.php中没有此类文件或目录

致命错误:require_once():无法打开所需的'/home/rpgchaz/public_html/chat/includes/init.php'(include_path =' . :/ usr / lib / php:/ usr / local / lib / php')in第101行/home/rpgchaz/public_html/includes/class_bootstrap.php