CMS MADE SIMPLE FORGE

CGContentUtils

 

[#10633] content block from Content Utilities doesn't work

avatar
Created By: Philippe Thomas (filto)
Date Submitted: Fri Sep 11 18:03:16 -0400 2015

Assigned To: Robert Campbell (calguy1000)
Version: 2.0.1
CMSMS Version: 2.0
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
content block from Content Utilities doesn't work
Detailed Description:
i created new blocks with CGContentUtils 2.0.1

and include them in template with content_module tag.

when edit a page these inputs blocks are shown but "apply" button is not
fonctional.

if try submit button , i get this error :

Argument 4 passed to CGContentUtils::GetContentBlockFieldValue() must be an
instance of ContentBase, boolean given,
called in ...\lib\classes\contenttypes\Content.inc.php on line 158
and defined in ...\modules\CGContentUtils\CGContentUtils.module.php on line 652

i try to reinstall :
CGContentUtils 2.0.1
CGExtensions 1.49.7
CGSimpleSmarty 2.0.1

and i have same error.

can you confirm this bug ?


History

Comments
avatar
Date: 2015-09-28 20:43
Posted By: S Tom (stom)

I'm also experiencing this exact bug,

CGExtensions		1.49.9
CGContentUtils		2.1
CGSimpleSmarty	2.0.2

Getting a similar error when trying to read property of a CGContentUtil block
with CGSimpleSmarty.
      
avatar
Date: 2015-09-29 03:13
Posted By: S Tom (stom)

Found a fix. Edit line 158 of ./lib/classes/contenttypes/Content.inc.php:

$tmp =
$module->GetContentBlockFieldValue($blockName,$blockInfo['params'],$params,!$editing,$this);

To this: 

$tmp =
$module->GetContentBlockFieldValue($blockName,$blockInfo['params'],!$editing,$this);
      
avatar
Date: 2015-09-29 09:54
Posted By: Robert Campbell (calguy1000)

already fixed

      
Updates

Updated: 2015-09-29 09:54
resolution_id: => 7
state: Open => Closed