CMS MADE SIMPLE FORGE

CGFeedback

 

[#11908] Most fields not saved to database, rejected by validation

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Sat Oct 13 17:35:19 -0400 2018

Assigned To:
Version: 2.2
CMSMS Version: 2.2.8
Severity: None
Resolution: None
State: Open
Summary:
Most fields not saved to database, rejected by validation
Detailed Description:
Using the default template, or creating a new one based on the default (with
{cge_form_csrf} added), with all default settings, the form rejects the
mandatory fields as blank even when they're populated.

If you disable the validations, the form submits but only the comment is saved
to the database - title, name, and email are all empty.

Verified on clean install, php 5.6 and 7.1.

Possibly related to:
PHP Warning:  filter_var() expects parameter 2 to be integer, string given in
/path/modules/CGFeedback/lib/class.param_cleaner.php on line 91


History

Comments
avatar
Date: 2018-10-14 10:15
Posted By: Martin Clayton (pinkelephant)

Presumably, due to a case typo in lib\class.param_cleaner.php (L91):

filter_var( $val, FILTER_SANITiZE_STRING );

( Seen at https://forum.cmsmadesimple.org/viewtopic.php?p=339562#p339562 )
      
avatar
Date: 2018-10-22 15:19
Posted By: cyrcle (cyrcle)

Fixed in CGBlog 2.2.1 for me.

Big thanks