super3 / IRC-Bot

A very little basic IRCBot that will get improved over the next time.
http://www.wildphp.com
102 stars 47 forks source link

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

Open phillpafford opened 12 years ago

phillpafford commented 12 years ago

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

DanielSiepmann commented 12 years ago

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?

phillpafford commented 12 years ago

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