IRC-Bot icon indicating copy to clipboard operation
IRC-Bot copied to clipboard

Exception: File: "Classes/Library/IRC/Connection/Exception.php" not found

Open phillpafford opened this issue 13 years ago • 2 comments

Exception: File: "Classes/Library/IRC/Connection/Exception.php" not found. in ~/IRCBot/Classes/Autoloader.php on line 40

I've looked in your repo but do not see this file

phillpafford avatar Jul 10 '12 16:07 phillpafford

Nope, The autoloader is trying to load the Exception.php

There must be an Exception and I don't know why the autoloader is trying to load the Exception-Class.

It's a Class inside PHP 5.1.0. Perhaps your PHP is a 4.x or something else?

DanielSiepmann avatar Jul 10 '12 19:07 DanielSiepmann

Running PHP 5.3.x and the error is I can't connect with fopensocket which is fine but I get the above message. I also used a try catch in my bot

try {
        $bot->connectToServer();
    } catch(Exception $e) {
        echo 'Exception Message: ' .$e->getMessage();
    }

but still the same error.

If I just add a shell Exception.php file the file note found goes away but I get another fatal error.

I'm sure once I fix the socket issue and can connect the problem will correct itself but wanted to bring this to someones attention

phillpafford avatar Jul 10 '12 20:07 phillpafford