All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

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: 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

Comment has been marked private.

#2

BoldMinded (Brian)

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

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.

https://www.dropbox.com/s/iiob0oiwsqy7ldf/2022-09-22_15-46-44.png?dl=0

#4

Paul Larson

Comment has been marked private.

#5

Paul Larson

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

Just FYI!

#6

BoldMinded (Brian)

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

#7

Paul Larson

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)

Glad you found it. That is indeed very odd.

Login to reply