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: “Bloqs:Search for blocks titled” Search for…results in error after selecting a bloq from list

Status Resolved
Add-on / Version Bloqs 4.3.3
Severity
EE Version 6.0.0-b.3

Josh Brodleit

Nov 05, 2020

Error Caught
Call to a member function getPreviewIcon() on null
user/addons/bloqs/mcp.bloqs.php:357

Stack Trace: Please include when reporting this error
#0 [internal function]: Bloqs_mcp->blockDefinition()
#1 ee/ExpressionEngine/Controller/Addons/Addons.php(1554): call_user_func_array(Array, Array)
#2 ee/ExpressionEngine/Controller/Addons/Addons.php(780): ExpressionEngine\Controller\Addons\Addons->getModuleSettings(‘bloqs’, ‘blockdefinition’, Array)
#3 [internal function]: ExpressionEngine\Controller\Addons\Addons->settings(‘bloqs’, ‘blockdefinition’)
#4 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array(Array, Array)
#5 ee/ExpressionEngine/Core/Core.php(118): ExpressionEngine\Core\Core->runController(Array)
#6 ee/ExpressionEngine/Boot/boot.php(160): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#7 manage.php(154): require_once(’...’)
#7 manage.php(154): require_once(’...’)

#1

BoldMinded (Brian)

Try this new build in the next comment. I still don’t understand how this is even happening. The build should just skip a block definition if it is null.

#2

BoldMinded (Brian)

Comment has been marked private.

#3

Josh Brodleit

Same error (line 379)

Call to a member function getPreviewIcon() on null user/addons/bloqs/mcp.bloqs.php:379

Stack Trace: Please include when reporting this error

0 [internal function]: Bloqs_mcp->blockDefinition()

1 ee/ExpressionEngine/Controller/Addons/Addons.php(1554): call_user_func_array(Array, Array)

2 ee/ExpressionEngine/Controller/Addons/Addons.php(780): ExpressionEngine\Controller\Addons\Addons->getModuleSettings(‘bloqs’, ‘blockdefinition’, Array)

3 [internal function]: ExpressionEngine\Controller\Addons\Addons->settings(‘bloqs’, ‘blockdefinition’)

4 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array(Array, Array)

5 ee/ExpressionEngine/Core/Core.php(118): ExpressionEngine\Core\Core->runController(Array)

6 ee/ExpressionEngine/Boot/boot.php(160): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))

7 manage.php(154): require_once(‘…’)

7 manage.php(154): require_once(‘…’)

#4

BoldMinded (Brian)

I still don’t know how this is happening. Did you start over and create new fields and new bloq definitions? What actions did you take to get to this point? Did you add a bloq to an entry, I assign it from the field, then try to edit the entry?

#5

BoldMinded (Brian)

Can you do me a favor, clear your user/cache/default_site/jumpmenu folder, and see if the error still happens.

#6

Josh Brodleit

That folder didn’t exist. I cleared cache and same issue.

#7

BoldMinded (Brian)

What about the other questions… how did you get to this point? What sort of bloq creation, deletion, editing, re-assignments have you done?

#8

BoldMinded (Brian)

What is the URL in the browser when you get that second/new error?

Login to reply