CMS MADE SIMPLE FORGE

CGContentUtils

 

[#12314] when editing a page with a CGContentUtils block a warning "Invalid input passed to CGContentUtils\ContentBlock::from_array" pops up.

avatar
Created By: Ludger Merkens (lume)
Date Submitted: Tue May 26 09:49:09 -0400 2020

Assigned To: Robert Campbell (calguy1000)
Version: 2.5.4
CMSMS Version: 2.2.14
Severity: Critical
Resolution: None
State: Open
Summary:
when editing a page with a CGContentUtils block a warning "Invalid input passed to CGContentUtils\ContentBlock::from_array" pops up.
Detailed Description:
when editing a page with a CGContentUtils block in the template, a warning
"Invalid input passed to CGContentUtils\ContentBlock::from_array" pops up. Whats
worse, when trying to save a page, the backend crashes leaving you with a blank
page, but no error in the php_error.log.

This problem occured after updating the cms from 2.2.8 (Flin Flon) to 2.2.14
(T'Sou-ke) and
CGContenttUtils from 2.2.3 to 2.5.4

regards
Ludger Merkens





History

Comments
avatar
Date: 2020-05-27 11:26
Posted By: Ludger Merkens (lume)

Ok, some debugging later, I now can give additional information. I obviously
have an old ContentBlock description in my database with type "pageselector" --
no longer listed in ContentBlock::types. The question arises, if it is safe to
treat the blocktype "pageselector" as the now listed "advpageselector". (Can I
change the value in the database?)

best regards
Ludger Merkens

      
avatar
Date: 2020-05-28 04:07
Posted By: Ludger Merkens (lume)

more (bad) news. I tried to edit the affected content blocks (with the backend
of the module) in the hope, that changing to 'advpageselector' from
'pageselector' will solve the problem (assuming they are probably compatible on
the data level). After doing this, the backend of the CGContentUtils module
doesn't load any longer.

Whats the supported way to debug code inside the 'content manager'? Error
Logging seems to be supressed in this area and I'd like to reenable
error_logging to do further investigations.

best regards
Ludger Merkens

      
Updates

Updated: 2020-05-26 16:12
summary: when editing a page with a CGContentUtils a warning "Invalid input passed to CGContentUtils\ContentBlock::from_array" pops up. => when editing a page with a CGContentUtils block a warning "Invalid input passed to CGContentUtils\ContentBlock::from_array" pops up.
resolution_id: => 5