+ Reply to Thread
Results 1 to 1 of 1
Thread: Exception Error
-
11-14-2011 02:24 AM #1Member
- Join Date
- Jun 2011
- Posts
- 59
Exception Error
Okay guys, found this issue
on line 562, you have
Now this function somehow doesn't run well for me. My php info isCode:public static function throwException($msg, $exceptionClass = 'Exception') { throw new $exceptionClass($msg); }
Code:PHP 5.3.6 (cli) (built: Sep 12 2011 18:02:42) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
So php is alright. I created an exception class for mfpfs called mfpfsExceptions and hardcoded the prosperent api to
But, somehow it always throws up an errorCode:protected $_exceptionHandler = 'mfpfsExceptions';
when prosperent is down. So I changed the function above to eval rather than simple text... so the new function isCode:Fatal error: Uncaught exception 'mfpfsExceptions' with message 'Couldn't resolve host 'api.pro...
and now it works fine. I think the ealier method wasn't working well. Let me know if this could fook the system up!Code:public static function throwException($msg, $exceptionClass = 'Exception') { eval('throw new '.$exceptionClass.'($msg);'); }
Thanks
blackid

Reply With Quote