CMS MADE SIMPLE FORGE

Form Builder

 

[#8510] Warning: Illegal string offset 'sent'

avatar
Created By: Birger Eriksson (bigge)
Date Submitted: Sat Oct 13 10:54:08 -0400 2012

Assigned To:
Version: 0.7.3
CMSMS Version: 1.10.3
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
Warning: Illegal string offset 'sent'
Detailed Description:
After someone have posted a form they get this error message:

Warning: Illegal string offset 'sent' in
/home/lindqvistb/domains/lindqvistbil.se/public_html/modules/FormBuilder/classes/DispositionEmailBase.class.php
on line 82

Form sends OK, and the receiver gets the message, but the visitor who sends it
gets confused by the error message.

My host have E_STRICT activated.


History

Comments
avatar
Date: 2012-10-14 15:29
Posted By: M4rc3L-XCN (M4rc3L-XCN)

FIX: 
Remove the $dbresult['sent'].

Line 82: if ($dbresult > 9)
$dbresult return not the count from query as sent, $dbresult return the count as
integer value.



      
avatar
Date: 2012-11-21 10:50
Posted By: Morten Poulsen (silmarillion)

fixed in svn, thanks!
      
avatar
Date: 2014-09-18 04:33
Posted By: Stephen (cmsgenie1)

The core CMSMS 1.11.10 comes with version 0.7.3 of FormBuilder which still has
this bug.
      
Updates

Updated: 2012-11-21 10:50
resolution_id: 5 => 7
state: Open => Closed

Updated: 2012-10-13 11:11
description: After someone have posted a form the get this error message: Warning: Illegal string offset 'sent' in /home/lindqvistb/domains/lindqvistbil.se/public_html/modules/FormBuilder/classes/DispositionEmailBase.class.php on line 82 Form sends OK, and the r => After someone have posted a form they get this error message: Warning: Illegal string offset 'sent' in /home/lindqvistb/domains/lindqvistbil.se/public_html/modules/FormBuilder/classes/DispositionEmailBase.class.php on line 82 Form sends OK, and the
resolution_id: => 5