2014-10-02, 12:26 PM
I upload in my serve: http://mods.mybb.com/view/jm-irc
But, if I opened the ACP and I open "Plugins" an error message appear.
This:
http://yugiohspirits.altervista.org/inc/...s/chat.php
The line 30 of "chat.php" file is:
The complete code of chat.php is:
How resolve this bug? D:
But, if I opened the ACP and I open "Plugins" an error message appear.
This:
http://yugiohspirits.altervista.org/inc/...s/chat.php
Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:') in /membri/yugiohspirits/inc/plugins/chat.php on line 30
The line 30 of "chat.php" file is:
require_once './global.php';
The complete code of chat.php is:
<?php
/**
* JM-IRC - Jordan Mussi
* Add a IRC chat page to your forum.
* ./chat.php
*
* @package JM-IRC
* @author Jordan Mussi <http://jordanmussi.github.io>
* @version 1
* @license GPL v3 <http://www.gnu.org/licenses/gpl-3.0.txt>
*
* Copyright (C) 2014 Jordan Mussi
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_MYBB', 1);
require_once './global.php';
if(empty($mybb->settings['jm_irc_page_action']))
{
header('Location: misc.php?action=chat');
}
else
{
header('Location: misc.php?action='.$mybb->settings['jm_irc_page_action']);
}
How resolve this bug? D: