Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Updating a channel that has no bloqs fields throws an error.

Status Resolved
Add-on / Version Bloqs 4.0.20
Severity
EE Version 5.2.2

Nick Johnson

May 15, 2019

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

#1

BoldMinded (Brian)

What is the build version of Bloqs? (its the hash in the zip file and it’s in the addon.setup.php file)

If it is not “2762fbb4” then you need to download the zip file again.

#2

Nick Johnson

It is 688b3f8e. I will re-download and see if that fixes it.

#3

Nick Johnson

This fixed the issue. Thanks, Brian!

#4

BoldMinded (Brian)

Good to hear 😊

Login to reply