cmiddlebrook Posted November 20, 2009 Share Posted November 20, 2009 If a user types in an invalid url Zend will throw up some errors and warnings about missing controllers which I don't really want clogging up my log files. I'm using the errorcontroller plugin which catches the exception and prints a friendly message to the user but there is still a php file not found warning displayed. For example if I try and access an invalid page of '/invalid', I'll get the following: 2009-11-20T15:31:27+00:00 ERR (3): PHP Warning occurred in C:\xampp\htdocs\code\ZendFramework-1.9.5\library\Zend\Loader.php on line 165 fopen(c:/xampp/htdocs/code/ima-live/application/controllers\InvalidController.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory I've tried using suppressNotFoundWarnings(true) on the auto loader but that doesn't seem to make any difference at all. Any idea how to suppress these? Caroline Link to comment https://forums.phpfreaks.com/topic/182298-supressing-warnings-from-missing-controllers/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.