Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 11 Years, 4 Months ago Plugin, help.
#1
Solved: 11 Years, 4 Months ago
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.

Tyger! Tyger! burning bright In the forests of the night,
What immortal hand or eye Dare frame thy fearful symmetry?

------------------------
Skychat Forums!
#2
Solved: 11 Years, 4 Months ago
try changing it to require_once MYBB_ROOT."/global.php";
btw, which chat plugin you are trying
#3
Solved: 11 Years, 4 Months ago
Hmm thanks! I am using JM-IRC

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

Tyger! Tyger! burning bright In the forests of the night,
What immortal hand or eye Dare frame thy fearful symmetry?

------------------------
Skychat Forums!
#4
Solved: 11 Years, 4 Months ago
Why are you requiring global.php inside a plugin? That is unnecessary.
[retired]
#5
Solved: 11 Years, 4 Months ago
What will you require?

Tyger! Tyger! burning bright In the forests of the night,
What immortal hand or eye Dare frame thy fearful symmetry?

------------------------
Skychat Forums!
#6
Solved: 11 Years, 4 Months ago
that chat.php file should be uploaded to forum's root (main) directory - not to the plugins folder
#7
Solved: 11 Years, 4 Months ago
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

Tyger! Tyger! burning bright In the forests of the night,
What immortal hand or eye Dare frame thy fearful symmetry?

------------------------
Skychat Forums!
#8
Solved: 11 Years, 4 Months ago
^ 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
#9
Solved: 11 Years, 4 Months ago
Do I have to delete the chat.php file from Plugins ?

Tyger! Tyger! burning bright In the forests of the night,
What immortal hand or eye Dare frame thy fearful symmetry?

------------------------
Skychat Forums!
#10
Solved: 11 Years, 4 Months ago
^ yes. plugins folder should consist of jm_irc.php file


Forum Jump:


Users browsing this thread: 7 Guest(s)