Hello folks,
After upgrading to 1.4.1, "Add new contact" does not work anymore. When New -> Contact
is pressed, the speech bubble appears with "Error 500: Internal Server Error". In the
server logs, this error appears:
FastCGI sent in stderr: "PHP Catchable fatal error: Argument 2 passed to Contact::canAdd() must be an instance of Project, null given, called in /myroot/application/controllers/ContactController.class.php on line 541 and defined in /myroot/application/models/contacts/Contact.class.php on line 674" while reading response header from upstream, client: 1.2.3.4, server: foo.com, request: "GET /?active_project=0&ajax=true&c=contact&a=add¤t=contacts-panel&_dc=1243704572000 HTTP/1.1", upstream: "fastcgi://unix:/tmp/nginx-phpfastcgi.socket:", host: "foo.com", referrer: "
http://foo.com/index.php?c=access&a=index"
The "New -> company" does not give error instead.