I really screwed things up and got this uncaught fatal error:
Fatal error: Uncaught exception 'Exception' with message
'file_get_contents() [<a href='http://php.net/function.file-get-
contents'>function.file-get-contents</a>]: Unable to access
[internal]' in /path/cake_1.2.0.7692-rc3/cake/libs/debugger.php:340
Stack trace: #0 /path/cake_1.2.0.7692-rc3/cake/libs/debugger.php(340):
file_get_contents('[internal]') #1 /path/cake_1.2.0.7692-rc3/cake/libs/
debugger.php(469): Debugger->excerpt('[internal]', -1, 1) #2 /path/
cake_1.2.0.7692-rc3/cake/libs/debugger.php(211): Debugger->__output(4,
'Warning', 2, NULL, 'SimpleXMLElemen...', 'APP/views/...', 5, Array)
#3 [internal function]: Debugger->handleError(2, 'SimpleXMLElemen...',
'/path/...', 5, Array) #4 /path/cake_1.2.0.7692-rc3/app/
views/...ctp(5): SimpleXMLElement->__construct() #5 /path/
cake_1.2.0.7692-rc3/cake/libs/view/view.php(654): include('/path/...')
#6 /us in /path/cake_1.2.0.7692-rc3/cake/libs/debugger.php on line 340
- some file names and paths are cut out. I was messing with
SimpleXMLElement, so that's why it is involved in the error.
I added a new line 340 before the existing line:
if (!file_exists($file)) return;
- and then I got rid of the fatal error and back to normal Cake error
handling.
I'm new to CakePHP, so could anyone confirm if this is a bug - and if
my solution seems reliable?
Regards
Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---