When a reply is posted to a topic this error occurs although the post appears. Email notifications and moderation emails are not received.
Has anyone seen this before? Thanks.
[User Error] Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'Member'
POST /members-login/forums/general-discussion/PostMessageForm
Line 750 in /var/www/vhosts/ctla.123abc.co.nz/httpdocs/framework/core/Object.php
Source
741 default :
742 throw new Exception (
743 "Object->__call(): extra method $method is invalid on $this->class:"
744 . var_export($config, true)
745 );
746 }
747 } else {
748 // Please do not change the exception code number below.
749 $class = get_class($this);
750 throw new Exception("Object->__call(): the method '$method' does not exist on '$class'", 2175);
751 }
752 }
753
754 // --------------------------------------------------------------------------------------------------------------
755
756 /**
Trace
Object->__call(forTemplate,Array)
ViewableData.php:439
Member->forTemplate()
ViewableData.php:439
ViewableData->XML_val(Author,,1)
call_user_func_array(Array,Array)
SSViewer.php:178
SSViewer_Scope->__call(XML_val,Array)
SSViewer.php:524
SSViewer_DataPresenter->__call(XML_val,Array)
.cache.forum.templates.email.ForumMember_TopicNotification.ss:19
SSViewer_DataPresenter->XML_val(Author,,1)
.cache.forum.templates.email.ForumMember_TopicNotification.ss:19
include(/var/www/vhosts/ctla.123abc.co.nz/httpdocs/silverstripe-cache/zctla12327663nz/.cache.forum.templates.email.ForumMember_TopicNotification.ss)
SSViewer.php:927
SSViewer->includeGeneratedTemplate(/var/www/vhosts/ctla.123abc.co.nz/httpdocs/silverstripe-cache/zctla12327663nz/.cache.forum.templates.email.ForumMember_TopicNotification.ss,ViewableData_Customised,,Array,)
SSViewer.php:994
SSViewer->process(ViewableData_Customised)
Email.php:370
Email->parseVariables()
Email.php:470
Email->send()
ForumThread.php:312
ForumThread_Subscription::notify(Post)
Forum.php:941
Forum_Controller->doPostMessageForm(Array,Form,SS_HTTPRequest)
Form.php:358
Form->httpSubmission(SS_HTTPRequest)
RequestHandler.php:288
RequestHandler->handleAction(SS_HTTPRequest,httpSubmission)
RequestHandler.php:200
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153
Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:203
ContentController->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:186
ContentController->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:186
ContentController->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:68
ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:325
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:143
Director::direct(/members-login/forums/general-discussion/PostMessageForm,DataModel)
main.php:189