0

I have created a global field combined with Matrix and Super Table. Unfortunately getting error Return value of verbb\supertable\elements\SuperTableBlockElement::getContentTable() must be of the type string, null returned while updating it -

TypeError: Return value of verbb\supertable\elements\SuperTableBlockElement::getContentTable() must be of the type string, null returned in /opt/bitnami/nginx/vendor/verbb/super-table/src/elements/SuperTableBlockElement.php:322
Stack trace:
#0 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Content.php(157): verbb\supertable\elements\SuperTableBlockElement->getContentTable()
#1 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Elements.php(2363): craft\services\Content->saveContent(Object(verbb\supertable\elements\SuperTableBlockElement))
#2 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Elements.php(705): craft\services\Elements->_saveElementInternal(Object(verbb\supertable\elements\SuperTableBlockElement), false, false, true)
#3 /opt/bitnami/nginx/vendor/verbb/super-table/src/services/SuperTableService.php(773): craft\services\Elements->saveElement(Object(verbb\supertable\elements\SuperTableBlockElement), false)
#4 /opt/bitnami/nginx/vendor/verbb/super-table/src/fields/SuperTableField.php(1028): verbb\supertable\services\SuperTableService->saveField(Object(verbb\supertable\fields\SuperTableField), Object(craft\elements\MatrixBlock))
#5 /opt/bitnami/nginx/vendor/craftcms/cms/src/base/Element.php(3196): verbb\supertable\fields\SuperTableField->afterElementPropagate(Object(craft\elements\MatrixBlock), false)
#6 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Elements.php(2393): craft\base\Element->afterPropagate(false)
#7 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Elements.php(705): craft\services\Elements->_saveElementInternal(Object(craft\elements\MatrixBlock), false, false, true)
#8 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Matrix.php(728): craft\services\Elements->saveElement(Object(craft\elements\MatrixBlock), false)
#9 /opt/bitnami/nginx/vendor/craftcms/cms/src/fields/Matrix.php(988): craft\services\Matrix->saveField(Object(craft\fields\Matrix), Object(craft\elements\GlobalSet))
#10 /opt/bitnami/nginx/vendor/craftcms/cms/src/base/Element.php(3196): craft\fields\Matrix->afterElementPropagate(Object(craft\elements\GlobalSet), false)
#11 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Elements.php(2393): craft\base\Element->afterPropagate(false)
#12 /opt/bitnami/nginx/vendor/craftcms/cms/src/services/Elements.php(705): craft\services\Elements->_saveElementInternal(Object(craft\elements\GlobalSet), true, false, true)
#13 /opt/bitnami/nginx/vendor/craftcms/cms/src/controllers/GlobalsController.php(252): craft\services\Elements->saveElement(Object(craft\elements\GlobalSet))
#14 [internal function]: craft\controllers\GlobalsController->actionSaveContent()
#15 /opt/bitnami/nginx/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#16 /opt/bitnami/nginx/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array)
#17 /opt/bitnami/nginx/vendor/craftcms/cms/src/web/Controller.php(189): yii\base\Controller->runAction('save-content', Array)
#18 /opt/bitnami/nginx/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('save-content', Array)
#19 /opt/bitnami/nginx/vendor/craftcms/cms/src/web/Application.php(280): yii\base\Module->runAction('globals/save-co...', Array)
#20 /opt/bitnami/nginx/vendor/craftcms/cms/src/web/Application.php(583): craft\web\Application->runAction('globals/save-co...', Array)
#21 /opt/bitnami/nginx/vendor/craftcms/cms/src/web/Application.php(259): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#22 /opt/bitnami/nginx/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#23 /opt/bitnami/nginx/html/index.php(22): yii\base\Application->run()
#24 {main}

I am using:


PHP v7.2.26 Craft CMS v3.5.10.1 Super Table v2.6.3


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.