Publisher is EE6 compatible, but it does not support the Fluid field. 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: Relationship error after EE 5-6 upgrade

Status Resolved
Add-on / Version Bloqs 5.0.3
Severity
EE Version 6.3.5

Paul Larson

Sep 22, 2022

Upgraded an EE 5 site to EE 6.3.5, and updated Bloqs to 5.0.3.

Visiting a Channel Entry page, or a Bloqs definition page triggers an ft.relationship.php error.

Screenshot: https://www.dropbox.com/s/1qt6168stysk6kz/2022-09-22_11-15-44.png?dl=0

Error Caught
Call to a member function getId() on null
ee/ExpressionEngine/Addons/relationship/ft.relationship.php:544

Stack Trace: Please include when reporting this error
#0 ee/ExpressionEngine/Addons/relationship/ft.relationship.php(470): Relationship_ft->_buildOption()
#1 user/addons/bloqs/Adapter/RelationshipContentTypeAdapter.php(80): Relationship_ft->display_field()
#2 [internal function]: BoldMinded\Bloqs\Adapter\RelationshipContentTypeAdapter->display_field()
#3 user/addons/bloqs/Controller/FieldTypeWrapper.php(273): call_user_func_array()
#4 user/addons/bloqs/Controller/FieldTypeWrapper.php(355): BoldMinded\Bloqs\Controller\FieldTypeWrapper->call()
#5 user/addons/bloqs/Controller/PublishController.php(567): BoldMinded\Bloqs\Controller\FieldTypeWrapper->displayField()
#6 user/addons/bloqs/Controller/PublishController.php(499): BoldMinded\Bloqs\Controller\PublishController->publishAtom()
#7 user/addons/bloqs/Controller/PublishController.php(114): BoldMinded\Bloqs\Controller\PublishController->createBlockDefinitionsVars()
#8 user/addons/bloqs/ft.bloqs.php(291): BoldMinded\Bloqs\Controller\PublishController->displayField()
#9 user/addons/bloqs/Service/StandaloneField.php(70): Bloqs_ft->display_field()
#10 user/addons/bloqs/mcp.bloqs.php(889): BoldMinded\Bloqs\Service\StandaloneField->render()
#11 user/addons/bloqs/mcp.bloqs.php(576): Bloqs_mcp->getComponentBuilderView()
#12 [internal function]: Bloqs_mcp->blockDefinition()
#13 ee/ExpressionEngine/Controller/Addons/Addons.php(1489): call_user_func_array()
#14 ee/ExpressionEngine/Controller/Addons/Addons.php(797): ExpressionEngine\Controller\Addons\Addons->getModuleSettings()
#15 [internal function]: ExpressionEngine\Controller\Addons\Addons->settings()
#16 ee/ExpressionEngine/Core/Core.php(266): call_user_func_array()
#17 ee/ExpressionEngine/Core/Core.php(122): ExpressionEngine\Core\Core->runController()
#18 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run()
#19 admin.php(144): require_once(’...’)
#19 admin.php(144): require_once(’...’)

#1

Paul Larson

Sep 22, 2022

Comment has been marked private.

#2

BoldMinded (Brian)

Sep 22, 2022

Technically that error is coming from the native Relationship field. This error is kind of vague… can you share anything about the block itself? How is the Relationship field in the block configured (screenshot of its settings page?)

#3

Paul Larson

Sep 22, 2022

The issue seems to happen on any channel entry with bloqs. (entries w/o bloqs load just fine)

The relationship field within the Bloqs seems pretty tame.

#4

Paul Larson

Sep 22, 2022

Comment has been marked private.

#5

Paul Larson

Sep 22, 2022

Deleting that entry, DOES fix the blatant error. Bloqs seems to work.

Just FYI!

#6

BoldMinded (Brian)

Sep 22, 2022

Doest that fix it site wide? Not sure how channel_id of 0 got into that table.

#7

Paul Larson

Sep 22, 2022

Yes, seems to. Wonder if this was the issue for ages on the prior/ee5 site, and ee6 just happens to be stricter about it.

#8

BoldMinded (Brian)

Sep 23, 2022

Glad you found it. That is indeed very odd.

Login to reply