Page 1 of 1

CGFeedback module crash

Posted: Mon Sep 25, 2017 3:38 pm
by rvwilliams
I'm on 2.2.3.1 with CMSFeedback 2.0.4. When a new comment is posted the feedback module crashes with the error

Catchable fatal error: Argument 1 passed to CGFeedback::check_stopforumspam() must be an instance of CGFeedback\comment, null given in /home/richard/httpdocs/everything/modules/CGFeedback/CGFeedback.module.php on line 235

Here is a snippet from my comment template:

Code: Select all

  <div class="row">

       <label for="{$actionid}comment">{$mod->Lang('prompt_comment')}:</label>

      {cge_textarea class='form-control' wysiwyg=$wysiwyg name="{$actionid}comment" id="{$actionid}comment" rows=3 value=$comment_obj->data}

  </div>
Listing of all modules:

AdminSearch 1.0.4
CGBetterForms 1.1.3
CGBlog 1.14.4
CGExtensions 1.56.3
CGFeedback 2.0.4
CGSimpleSmarty 2.1.7
CMSContentManager 1.1.6
CMSMailer 6.2.14
Captcha 0.5.5
CmsJobManager 0.1.1
DesignManager 1.1.3
FileManager 1.6.4
FilePicker 1.0.1
FormBuilder 0.8.1.6
JQueryTools 1.4.0.3
MicroTiny 2.2.1
ModuleManager 2.1.2
Navigator 1.0.8
News 2.51.3
Search 1.51.2
SitemapMgr 1.5.1
TinyMCE 3.2-beta3
Uploads 1.25.8

Re: CGFeedback module crash

Posted: Mon Sep 25, 2017 4:41 pm
by calguy1000
This is actually a bug in the hook management stuff introduced with CMSMS 2.2. It is fixed in SVN and will be released with the next version of CMSMS.

In the interim you should be able to disable the stop-forum-spam stuff in the CGFeedback settings.