Can not post comment on view task page

Project:ProjectPier
Version:0.8.8-alpha
Component:Code
Category:bug report
Priority:normal
Assigned:phpfreak
Status:closed - fixed
Description

hey. whenever i try to post comment on view task page, i get the following error message.

[6] create categories
Start date: Tuesday, September 20
Due date: Tuesday, September 20
Edit | Delete | Mark task as completed
exception 'Exception' with message 'Call to undefined method DataObject::hasAvatar()' in /home/five12/sites/projects/environment/classes/dataaccess/DataObject.class.php:1249 Stack trace: #0 /home/five12/sites/projects/application/views/comment/object_comments.php(21): DataObject->__call('hasAvatar', Array) #1 /home/five12/sites/projects/application/views/comment/object_comments.php(21): User->hasAvatar() #2 /home/five12/sites/projects/environment/classes/template/Template.class.php(77): include('/home/five12/si...') #3 /home/five12/sites/projects/environment/classes/template/Template.class.php(48): Template->includeTemplate('/home/five12/si...') #4 /home/five12/sites/projects/environment/classes/template/template.php(35): Template->fetch('/home/five12/si...') #5 /home/five12/sites/projects/application/helpers/application.php(493): tpl_fetch('/home/five12/si...') #6 /home/five12/sites/projects/application/views/task/view_task.php(57): render_object_comments(Object(ProjectTask), '/index.php?c=ta...') #7 /home/five12/sites/projects/environment/classes/template/Template.class.php(77): include('/home/five12/si...') #8 /home/five12/sites/projects/environment/classes/template/Template.class.php(48): Template->includeTemplate('/home/five12/si...') #9 /home/five12/sites/projects/environment/classes/template/template.php(35): Template->fetch('/home/five12/si...') #10 /home/five12/sites/projects/environment/classes/controller/PageController.class.php(107): tpl_fetch('/home/five12/si...') #11 /home/five12/sites/projects/environment/classes/controller/PageController.class.php(72): PageController->render() #12 /home/five12/sites/projects/environment/classes/Env.class.php(131): PageController->execute('view_task') #13 /home/five12/sites/projects/init.php(189): Env::executeAction('task', 'view_task') #14 /home/five12/sites/projects/index.php(11): require('/home/five12/si...') #15 {main}

#1
Assigned to:Visitor» phpfreak
Status:new» closed - fixed

Confirmed. Fix attached. Put file in /application/views/comment. Thanks!

AttachmentSize
object_comments.zip 986 bytes
#2

seems to be still a problem. Notification works (I get the email) but after posting the comment I get an exception page (see below and the error log attached - which only shows that buffer error you commented already) - additionally if I click the email link http://www.intersein.net/maitreya/index.php?c=task&a=view_list&1316594742&id=2&active_proj... I am getting the error page and not the comment......

Program installation
Private task lists
Completed: 0% (0 of 3)
Due date: Saturday, October 15

Setting up the plattform with actual projects
Tags: --
Edit | Copy | Move | Delete | Add task | Reorder tasks | Comments(1) | Download

[6] Setup projects
Due date: Saturday, October 15
dominik | Edit | Delete | View | Mark task as completed

[7] Setup and organisation of users
Due date: Saturday, October 15
christian | Edit | Delete | View | Mark task as completed

[8] Coordinate installation with Christian and Dominik to have a introduction into the use of the plattform
Due date: Saturday, October 15
Hien | Edit | Delete | View | Mark task as completed
exception 'Exception' with message 'Call to undefined method DataObject::hasAvatar()' in /home/intersei/public_html/maitreya/environment/classes/dataaccess/DataObject.class.php:1249 Stack trace: #0 /home/intersei/public_html/maitreya/application/views/comment/object_comments.php(21): DataObject->__call('hasAvatar', Array) #1 /home/intersei/public_html/maitreya/application/views/comment/object_comments.php(21): User->hasAvatar() #2 /home/intersei/public_html/maitreya/environment/classes/template/Template.class.php(77): include('/home/intersei/...') #3 /home/intersei/public_html/maitreya/environment/classes/template/Template.class.php(48): Template->includeTemplate('/home/intersei/...') #4 /home/intersei/public_html/maitreya/environment/classes/template/template.php(35): Template->fetch('/home/intersei/...') #5 /home/intersei/public_html/maitreya/application/helpers/application.php(493): tpl_fetch('/home/intersei/...') #6 /home/intersei/public_html/maitreya/application/views/task/view_list.php(15): render_object_comments(Object(ProjectTaskList), '/maitreya/index...') #7 /home/intersei/public_html/maitreya/environment/classes/template/Template.class.php(77): include('/home/intersei/...') #8 /home/intersei/public_html/maitreya/environment/classes/template/Template.class.php(48): Template->includeTemplate('/home/intersei/...') #9 /home/intersei/public_html/maitreya/environment/classes/template/template.php(35): Template->fetch('/home/intersei/...') #10 /home/intersei/public_html/maitreya/environment/classes/controller/PageController.class.php(107): tpl_fetch('/home/intersei/...') #11 /home/intersei/public_html/maitreya/environment/classes/controller/PageController.class.php(72): PageController->render() #12 /home/intersei/public_html/maitreya/environment/classes/Env.class.php(131): PageController->execute('view_list') #13 /home/intersei/public_html/maitreya/init.php(189): Env::executeAction('task', 'view_list') #14 /home/intersei/public_html/maitreya/index.php(11): require('/home/intersei/...') #15 {main}

AttachmentSize
log.txt 1.96 KB
#3

Judging from the error I can only conclude that the fix has not been applied.

#4

I checked and the file was changed on Sep 21 but still contained the old code. Replaced it and now it works fine in your environment.