Error with EmailComponent in Comments and Contacts section
Reported by jacmoe | June 11th, 2010 @ 02:13 PM | in 1.3.1
Whenever a comment has been made, an error occurs:
Fatal error: Call to a member function addScript() on a non-object
in /ROOT_DIRS/cake/libs/view/helpers/html.php on line 443
I think it has to do with CakePHP 1.3 new html helper
format.
I fixed it in my own app by removing the extra arguments passed to
the html link function.
Haven't looked at Croogo code yet, so I'm not sure.
I upgraded to master yesterday, and the error still persists.
The comments are available after manually navigating away from
the error page, so they are entered successfully.
So it must be the redirect link or similar.
I'll see if I can track this down.
Comments and changes to this ticket
-

fahad19 April 5th, 2010 @ 01:13 AM
My guess is, the error occurs when EmailComponent renders the email element with View class.
-

fahad19 April 5th, 2010 @ 01:34 AM
- → Tag set to comments, contacts, email
- → Milestone set to 1.3.1
-

fahad19 April 5th, 2010 @ 03:34 AM
- → State changed from new to open
-

fahad19 April 5th, 2010 @ 11:39 PM
- → Title changed from Comments :Call to a member function addScript() on a non-object to Error with EmailComponent in Comments and Contacts section
-

nithinalex April 6th, 2010 @ 12:33 PM
Yes.. i also got this error in contact page.... so I disabled it in my site... I think its due to some new bug in new cakephp 1.3
-

-

kitten April 13th, 2010 @ 10:28 PM
The problem is described here:
http://cakephp.lighthouseapp.com/projects/42648/tickets/442-email-v...
Lines 119-121 in tinymce_hook.php (the calls to Html::script() and Html::scriptBlock()) trigger the error.
HTH
-

fahad19 April 14th, 2010 @ 04:51 PM
- → State changed from open to resolved
(from [a931b17712fb2c08d5b9391eba9fb967eb6de649]) fix for rendering in EmailComponent and View class. thanks kitten! Closes #62 http://github.com/croogo/croogo/commit/a931b17712fb2c08d5b9391eba9f...
-

jacmoe April 14th, 2010 @ 11:52 PM
I can confirm that it fixed the issue.
I had to update my custom plugins accordingly.
So maybe the docs should be updated?
For the plugin developers, I mean.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
-
#62 Error with EmailComponent in Comments and Contacts section
(from [a931b17712fb2c08d5b9391eba9fb967eb6de649])
fix for...
-
#91 fatal error on Add new comment
Already fixed in the repository. Always pull latest chang...