Menu

Install...same old but nothing works!

Help
2009-02-21
2012-11-15
  • Steve Alheim

    Steve Alheim - 2009-02-21

    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

     
    • mrtrc266

      mrtrc266 - 2009-04-05

      What was the work around, there are a couple similar issues for the SMF Intergration.

      Thanks

       
    • Philip Nicolcev

      Philip Nicolcev - 2009-02-21

      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/');

       
    • Steve Alheim

      Steve Alheim - 2009-02-23

      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.

       
    • easygo

      easygo - 2009-02-23

      >> Warning: main(/lib/custom.php)

      In my view, this cannot be true, just for lack of your realpath.

       
      • Steve Alheim

        Steve Alheim - 2009-03-08

        It's working. I found the work around that someone posted here before.

         

Log in to post a comment.