Zend Framework

Default ErrorController created by Zend_Tool generates notices.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.8
  • Component/s: Zend_Tool
  • Labels:
    None

Description

When I create a project with Zend_Tool, for exemple:

$ cd /var/www
$ zf create project test

And after, in the browser I call: "http://localhost/test/public/error/error", I see 3 notices in the development enviroment:

Notice: Trying to get property of non-object in /var/www/test/application/controllers/ErrorController.php on line 10
Notice: Trying to get property of non-object in /var/www/test/application/controllers/ErrorController.php on line 33
Notice: Trying to get property of non-object in /var/www/test/application/controllers/ErrorController.php on line 36

This occurred becouse $this->_getParam('error_handler') is null when I am in "/error/error".

Before proceeding this line, must have a verification if $this->_getParam('error_handler') is instance of ArrayObject.

Issue Links

Activity

Hide
Ramon Henrique Ornelas added a comment -

In a issue similar the this was fixed ZF-10252 with r22872.

Show
Ramon Henrique Ornelas added a comment - In a issue similar the this was fixed ZF-10252 with r22872.
Hide
Henrique Moody added a comment -

This does not solve the problem because the parameter "error_handler" can be passed through the URL:

/error/error?error_handler=123

You must see my diff, it checks if "error_handler" is instance of ArrayObject.

Show
Henrique Moody added a comment - This does not solve the problem because the parameter "error_handler" can be passed through the URL: /error/error?error_handler=123 You must see my diff, it checks if "error_handler" is instance of ArrayObject.
Hide
Henrique Moody added a comment -

In the 1.10.8 release it was solved.

Thanks!

Show
Henrique Moody added a comment - In the 1.10.8 release it was solved. Thanks!

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: