CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#10684] processTemplateFromDatabase error

avatar
Created By: stephane (stephane85)
Date Submitted: Tue Oct 06 04:46:23 -0400 2015

Assigned To:
Version: 2.0.1.1
CMSMS Version: 2.0.1.1
Severity: None
Resolution: Fixed
State: Closed
Summary:
processTemplateFromDatabase error
Detailed Description:
hello,

I don't know if this is really a bug but in the file "modtemplates.inc.php"
(/classes/internal/module_support/), there are 3 functions at the end
(processTemplate, processTemplateFromData and processTemplateFromDatabase).

the first and second try to initialise smarty variable with
$modinstance->GetActionTemplateObject() and, if null returned, initialize smarty
variable with: Smarty_CMS::get_instance()...

but the 3rd, processTemplateFromDatabase, does'nt check if smarty is correctly
initialized.... the line:
if( !$smarty ) $smarty = Smarty_CMS::get_instance(); 

is missing and some modules (like FormBrowser) end with a fatal error: Call to a
member function fetch() on null ....

adding this line in the function solved my problem.... but it is not, for me, a
good idea to modify files from the core....

best regards,
steph


History

Comments
avatar
Date: 2015-10-06 09:51
Posted By: Robert Campbell (calguy1000)

already fixed in svn
      
Updates

Updated: 2015-12-08 10:23
state: Open => Closed

Updated: 2015-10-06 09:51
resolution_id: => 7