CMS MADE SIMPLE FORGE

Form Builder

 

[#7110] Fatal error: Call to a member function getKeyList() on a non-object in /public/sites/www.site.com/modules/FormBuilder/classes/DispositionFormBrowser.class.php on line 155

avatar
Created By: Leon (Leon)
Date Submitted: Sun Nov 06 07:42:04 -0500 2011

Assigned To: Tapio Löytty (Stikki)
Version: 0.7.1
CMSMS Version: 1.10
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Fatal error: Call to a member function getKeyList() on a non-object in /public/sites/www.site.com/modules/FormBuilder/classes/DispositionFormBrowser.class.php on line 155
Detailed Description:
When i try to add a field  "save results for Formbrowser module" in formbuilder
module, I get the following error:

Fatal error: Call to a member function getKeyList() on a non-object in
/public/sites/www.site.nl/modules/FormBuilder/classes/DispositionFormBrowser.class.php
on line 155


History

Comments
avatar
Date: 2011-11-06 08:06
Posted By: Tapio Löytty (Stikki)

Fixed in SVN
      
avatar
Date: 2011-11-11 13:12
Posted By: Leon (Leon)

Thanx for the quick reply.
I've tried to replace the original file with
http://svn.cmsmadesimple.org/svn/formbuilder/tags/0.7.1/classes/DispositionFormBrowser.class.php
but I still get the same error message.
Are there additional files I should replace?
      
avatar
Date: 2011-11-16 03:24
Posted By: Tapio Löytty (Stikki)

Fixed finally in SVN, i tought i commited it but didn't so there it is now, get
DispositionFormBrowser.class.php from SVN and should do the trick.

Mail me to stikki@cmsmadesimple.org in case this dosen't still work.
      
avatar
Date: 2012-02-28 16:57
Posted By: Ryan Foster (RytoEX)

Bugs 7181, 7287, and 7441 are duplicates of this bug.

Pretty sure that this was fixed with Revision 565 (2011-11-16 03:21:00).  If
this is still a problem after the next release, let us know.


Technical Explanation
In case anyone is interested, what follows here is the technical explanation for
why this happened.  I'm pretty sure that I'm correct on this, but if I'm not and
someone else knows the correct reason, PLEASE correct me.  Thanks.

The problem seems to have been with the way we handle the results that
CMSModule::GetModuleInstance('module_name') returns.  The
CMSModule::GetModuleInstance('module_name') function changed at CMS Made Simple
Revision 6953 to use cms_utils::get_module('module_name'), which returns
different results than the previous CMSModule::GetModuleInstance('module_name')
function.  For modules that aren't installed,
CMSModule::GetModuleInstance('module_name') used to return FALSE but now returns
NULL, and FormBuilder's code hadn't been changed accordingly to deal with this
change.  This has been fixed, and will be included in the next release of
FormBuilder.

For reference, the CMSModule class file used to be called class.module.inc.php,
but was renamed to class.CMSModule.php when the 1.10.x branch was being created.
CMS Made Simple Revision 6953 compared to Revision 6947: 
http://viewsvn.cmsmadesimple.org/comp.php?repname=cmsmadesimple&compare[]=%2Fbranches%2F1.10.x%2Flib%2Fclasses%2Fclass.module.inc.php@6947&compare[]=%2Fbranches%2F1.10.x%2Flib%2Fclasses%2Fclass.module.inc.php@6953
      
avatar
Date: 2012-03-07 18:55
Posted By: Ryan Foster (RytoEX)

Closing this bug as the fix has been delivered in FormBuilder 0.7.2.  Please
reopen this bug if the bug persists.
      
Updates

Updated: 2012-03-07 18:55
state: Open => Closed

Updated: 2012-02-28 16:57
state: Closed => Open

Updated: 2011-11-06 08:06
resolution_id: => 7
assigned_to_id: 100 => 11306
state: Open => Closed