Jump to content

Supressing warnings from missing controllers


cmiddlebrook

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.