MyBB Community Forums
Plugin, help. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Plugin, help. (/thread-145968.html)

Pages: 1 2 3


Plugin, help. - Tonex - 2013-09-27

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.


RE: Plugin, help. - .m. - 2013-09-27

try changing it to require_once MYBB_ROOT."/global.php";
btw, which chat plugin you are trying


RE: Plugin, help. - Tonex - 2013-09-27

Hmm thanks! I am using JM-IRC

Well, its not working. But instead http://prntscr.com/1ts233


RE: Plugin, help. - Wildcard - 2013-09-27

Why are you requiring global.php inside a plugin? That is unnecessary.


RE: Plugin, help. - Tonex - 2013-09-27

What will you require?


RE: Plugin, help. - .m. - 2013-09-27

that chat.php file should be uploaded to forum's root (main) directory - not to the plugins folder


RE: Plugin, help. - Tonex - 2013-09-27

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


RE: Plugin, help. - .m. - 2013-09-27

^ 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


RE: Plugin, help. - Tonex - 2013-09-27

Do I have to delete the chat.php file from Plugins ?


RE: Plugin, help. - .m. - 2013-09-27

^ yes. plugins folder should consist of jm_irc.php file