Summary:
Page Selector field causes error
Detailed Description:
After upgrading CGExtensions to the latest version (1.65.1 as of now) the Page
Selector field is no longer available to CGContentUtilities, only the Advanced
Page Selector is. This is workable on new installs, but on upgrades accessing
the module or editing a content page gives the error:
Invalid input passed to CGContentUtils\ContentBlock::from_array (when editing a
page)
and when accessing the module:
Fatal error: Uncaught InvalidArgumentException: Invalid input passed to
CGContentUtils\ContentBlock::from_array in
/var/www/path/modules/CGContentUtils/lib/class.ContentBlock.php:251 Stack trace:
#0 /var/www/path/modules/CGContentUtils/lib/class.BlockManager.php(79):
CGContentUtils\ContentBlock::from_array(Array) #1
/var/www/path/modules/CGContentUtils/lib/class.BlockManagerCacheDecorator.php(39):
CGContentUtils\BlockManager->load_all() #2
/var/www/path/modules/CGContentUtils/action.admin_blocks_tab.php(48):
CGContentUtils\BlockManagerCacheDecorator->load_all() #3
/var/www/path/modules/CGContentUtils/action.defaultadmin.php(62):
include('/var/www/vhosts...') #4
/var/www/path/lib/classes/class.CMSModule.php(1403):
include('/var/www/vhosts...') #5 /var/www/path/modules/CGExtensions/CGExtens in
/var/www/path/modules/CGContentUtils/lib/class.ContentBlock.php on line 251