MyBB Community Forums

Full Version: Plugin, help.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi,

I am not a Professional on scripting and I need help here. Its just easy. My Plugins page at ACP shows this

Warning [2] require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory - Line: 28 - File: inc/plugins/chat.php PHP 5.3.24 (Linux)
File Line Function
/inc/plugins/chat.php 28 errorHandler->error
/inc/plugins/chat.php 28 require_once
/admin/modules/config/plugins.php 477 require_once
/admin/index.php 541 require



------------------------------------------------------------------------I checked line 28 of inc/plugins/chat.php and it shows this
require_once './global.php';
Now Anyone can help me here?

Thanks in Advance.
try changing it to require_once MYBB_ROOT."/global.php";
btw, which chat plugin you are trying
Hmm thanks! I am using JM-IRC

Well, its not working. But instead http://prntscr.com/1ts233
Why are you requiring global.php inside a plugin? That is unnecessary.
What will you require?
that chat.php file should be uploaded to forum's root (main) directory - not to the plugins folder
hmm, I will transfer it then?

Where can I find Main Directory? Can you give me a direct link? Example /yourwebsite.com/inc/install blah vblah
^ most probably root directory is shown as / or public_html or www in ftp
there you have global.php, index.php, newthread.php .. etc files

another simple clue is it is the upper level directory of inc folder
Do I have to delete the chat.php file from Plugins ?
^ yes. plugins folder should consist of jm_irc.php file
Pages: 1 2 3