Background:
I had chat set up and working beautifully on the old phpbb2 forum (/forums/chat). I upgraded to phpBB3, then renamed the old forums to /phpbb2 and deleted the chat directory. I then renamed /phpBB3 to /forums, thereby "taking over" the old location with the new forum. I uploaded the chat app to /forums/chat and then proceeded to go to the /chat/install.php file. This is what I get:
Notice: Undefined index: SCRIPT_FILENAME in D:\inetpub\vhosts\mysite.com\httpdocs\forums\chat\install.php on line 14
Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\inetpub\vhosts\mysite.com\httpdocs\forums\chat\install.php on line 18
Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;./includes;./pear') in D:\inetpub\vhosts\mysite.com\httpdocs\forums\chat\install.php on line 18
I know, I know. I've seen this before on this site and the php site, but I've tried every suggestion, including http://www.phpbb.com/community/viewtopic.php?p=7457175#p7457175, but nothing works. Not only does nothing work, but it doesn't change anything in the message. It's the same error, over and over.
In install.php, I even changed
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
The install script doesn't have anything to do with your previous installation of phpbb. The installation is a simple script that doesn't detect things like that.
Problem is only with the script trying to detect its current directory.
That wasn't it, just a typo when I wrote the above.
// Show all errors:
error_reporting(E_ALL);
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');
// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');
my chat is installed at 'http://www.mysite.com/forums/chat/'
Anything I should change here? I know lib/custom.php and lib/classes.php are there. Perhaps a script issue at the host? I'm crying here. Okay, not really crying, but extremely frustrated because I KNOW it works, wonderfully I might add. At least in phpBB2 it did for me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Background:
I had chat set up and working beautifully on the old phpbb2 forum (/forums/chat). I upgraded to phpBB3, then renamed the old forums to /phpbb2 and deleted the chat directory. I then renamed /phpBB3 to /forums, thereby "taking over" the old location with the new forum. I uploaded the chat app to /forums/chat and then proceeded to go to the /chat/install.php file. This is what I get:
Notice: Undefined index: SCRIPT_FILENAME in D:\inetpub\vhosts\mysite.com\httpdocs\forums\chat\install.php on line 14
Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\inetpub\vhosts\mysite.com\httpdocs\forums\chat\install.php on line 18
Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;./includes;./pear') in D:\inetpub\vhosts\mysite.com\httpdocs\forums\chat\install.php on line 18
I know, I know. I've seen this before on this site and the php site, but I've tried every suggestion, including http://www.phpbb.com/community/viewtopic.php?p=7457175#p7457175, but nothing works. Not only does nothing work, but it doesn't change anything in the message. It's the same error, over and over.
In install.php, I even changed
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
to
// Path to the chat directory:
define('AJAX_CHAT_PATH', http://www.mysite.com/forums/chat/');
but again, nothing at all.
PLEASE HELP ME <:O
What was the work around, there are a couple similar issues for the SMF Intergration.
Thanks
The install script doesn't have anything to do with your previous installation of phpbb. The installation is a simple script that doesn't detect things like that.
Problem is only with the script trying to detect its current directory.
Your change to this
// Path to the chat directory:
define('AJAX_CHAT_PATH', http://www.mysite.com/forums/chat/');
Is missing a single quote around the URL. It should be
define('AJAX_CHAT_PATH', 'http://www.mysite.com/forums/chat/');
That wasn't it, just a typo when I wrote the above.
// Show all errors:
error_reporting(E_ALL);
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');
// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');
my chat is installed at 'http://www.mysite.com/forums/chat/'
Anything I should change here? I know lib/custom.php and lib/classes.php are there. Perhaps a script issue at the host? I'm crying here. Okay, not really crying, but extremely frustrated because I KNOW it works, wonderfully I might add. At least in phpBB2 it did for me.
>> Warning: main(/lib/custom.php)
In my view, this cannot be true, just for lack of your realpath.
It's working. I found the work around that someone posted here before.