CMS MADE SIMPLE FORGE

CGFeedback

 

[#11712] Fatal error: Uncaught TypeError: Argument 1 passed to CGFeedback\comment_operations::save() must be an instance of CGFeedback\comment

avatar
Created By: Rolf (rolf1)
Date Submitted: Thu Jan 25 13:21:22 -0500 2018

Assigned To: Robert Campbell (calguy1000)
Version: 2.1
CMSMS Version: 2.2.5
Severity: None
Resolution: None
State: Open
Summary:
Fatal error: Uncaught TypeError: Argument 1 passed to CGFeedback\comment_operations::save() must be an instance of CGFeedback\comment
Detailed Description:
Hello Robert,

Submitting the feedback form fails and ends in a white screen:

-----------------------------------------------------------------------------------------
Notice: Trying to get property of non-object in
/home/.../public_html/www.cmscanbesimple.org/modules/CGFeedback/action.default.php
on line 250

Fatal error: Uncaught TypeError: Argument 1 passed to
CGFeedback\comment_operations::save() must be an instance of CGFeedback\comment,
array given, called in
/home/.../public_html/www.cmscanbesimple.org/modules/CGFeedback/action.default.php
on line 264 and defined in
/home/.../public_html/www.cmscanbesimple.org/modules/CGFeedback/lib/class.comment_operations.php:125
Stack trace: #0
/home/.../public_html/www.cmscanbesimple.org/modules/CGFeedback/action.default.php(264):
CGFeedback\comment_operations->save(Array) #1
/home/.../public_html/www.cmscanbesimple.org/lib/classes/class.CMSModule.php(1415):
include('/home/.../...') #2
/home/.../public_html/www.cmscanbesimple.org/modules/CGExtensions/CGExtensions.module.php(622):
CMSModule->DoAction('default', 'm2411f', Array, '161') #3
/home/.../public_html/www.cmscanbesimple.org/lib/classes/class.CMSModule.php(1489):
CGExtensions->DoAction('default', 'm2411f', Array, '161') #4
/home/.../public_html/www.cmscanbesimple.org/lib/classes/internal/ in
/home/.../public_html/www.cmscanbesimple.org/modules/CGFeedback/lib/class.comment_operations.php
on line 125
-----------------------------------------------------------------------------------------

*** System Information ***
A regular install of CGFB and CGBlog,
No Captcha module
StopForumSpam Threshold Disabled

CMSMS 2.2.5
CGExtensions 1.58.1
CGFeedback 2.1
CGBlog 1.15.7
PHP 7.1.13

Tag in CGBlog detail template
{CGFeedback key1=$entry->canonical key2='Blog'
key3="{$smarty.server.REMOTE_ADDR}" redirectextra='#comments'}

Thanks, Rolf


History

Comments
avatar
Date: 2018-01-26 07:20
Posted By: KLaus Kügler (Lucy)

I can confirm this.
If StopForumSpam Threshold  is not disabeled (had it on 10), then it works fine.
Also User Notifications will be sent then.