Updating a channel entry with a Bloqs field attached to it works fine, but we are running into an issue where updating (or creating) a channel entry in a channel that does NOT have a Bloqs field throws an error. Error below. We have this issue on both dev and prod, which are two completely separate environment setups, so I don’t think the server setup has anything to do with it.
It’s possible the error was there sooner, but we didn’t notice it, and the client didn’t mention anything, until we upgraded to 4.0.20. You can try creating/editing from the Alert or Location channel for an example of the error.
Fatal error: Uncaught TypeError: Argument 1 passed to EEBlocks\Controller\HookExecutor::updateSearchValues() must be of the type array, boolean given, called in /var/www/vhosts/pro0418-02-18.71.reusser.design/httpdocs/system/user/addons/bloqs/ext.bloqs.php on line 86 and defined in /var/www/vhosts/pro0418-02-18.71.reusser.design/httpdocs/system/user/addons/bloqs/libraries/EEBlocks/Controller/HookExecutor.php:256 Stack trace: #0 /var/www/vhosts/pro0418-02-18.71.reusser.design/httpdocs/system/user/addons/bloqs/ext.bloqs.php(86): EEBlocks\Controller\HookExecutor->updateSearchValues(false) #1 /var/www/vhosts/pro0418-02-18.71.reusser.design/httpdocs/system/ee/legacy/libraries/Extensions.php(222): Bloqs_ext->after_channel_entry_save(Object(EllisLab\ExpressionEngine\Model\Channel\ChannelEntry), Array) #2 /var/www/vhosts/pro0418-02-18.71.reusser.design/httpdocs/system/ee/legacy/libraries/Extensions.php(117): EE_Extensions->call_class(‘Bloqs_ext’, ‘after_channel_e…’, Array, Array) #3 [internal function]: EE_Extensions->call(‘aft in /var/www/vhosts/pro0418-02-18.71.reusser.design/httpdocs/system/user/addons/bloqs/libraries/EEBlocks/Controller/HookExecutor.php on line 256