Fatal error: Class 'disThread' not found in
[..]/core/components/discuss/controllers/web/messages/modify.class.php on line 44
$this->thread = $this->modx->call('disThread', 'fetch', array(&$this->modx,$this->post- >get('thread'),disThread::TYPE_MESSAGE)); if (empty($this->thread)) $this->discuss->sendErrorPage(); $this->modx->lexicon->load('discuss:post');
This question has been answered by mintnl. See the first response.
I'm guessing this parameter trying to call TYPE_MESSAGE is not working... Any idea where to check on this?
disThread::TYPE_MESSAGE
if (!class_exists('disThread')) { $this->modx->loadClass('disThread'); }
public function initialize() { $post = $this->getProperty('post',false); if (empty($post)) { $this->modx->sendErrorPage(); } $this->post = $this->modx->getObject('disPost',$post); if (empty($this->post)) { $this->discuss->sendErrorPage(); } $this->discuss->setPageTitle($this->modx->lexicon('discuss.modify_post_header',array('title' => $this->post->get('title')))); if (!class_exists('disThread')) { $this->modx->loadClass('disThread'); } $this->thread = $this->modx->call('disThread', 'fetch', array(&$this->modx,$this->post->get('thread'),disThread::TYPE_MESSAGE)); if (empty($this->thread)) $this->discuss->sendErrorPage(); $this->modx->lexicon->load('discuss:post'); }
if the modx install of Discuss for this actual forum is resting on an older modx version or current. It would help greatly I think if modx developers would comment.