After the update, I have two collections that give an error if I click to open them. The error is the same for both:
An exception has been thrown during the rendering of a template ("App\Entity\Item::getDatumByLabel(): Argument #1 ($label) must be of type string, null given, called in /app/public/vendor/twig/twig/src/Extension/CoreExtension.php on line 1918") in App/Collection/_items_list.html.twig at line 71.
Then:
Twig\Error\
RuntimeError
Show exception properties
in templates/App/Collection/_items_list.html.twig (line 71)
{{ item.quantity }}</td>{% endif %}{% for column in displayConfiguration.columns %}{% set datum = item.getDatumByLabel(column) %}<td class="center hide-on-small-and-down" data-column="{{ column }}">{% if datum is not null %}{% if datum.type != 'link' %}<a class="table-link" href="{{ link }}"></a>
in vendor/twig/twig/src/Template.php -> yield (line 366)
in vendor/twig/twig/src/Template.php -> display (line 381)
in vendor/twig/twig/src/TemplateWrapper.php -> render (line 51)
in vendor/twig/twig/src/Extension/CoreExtension.php -> render (line 1522)
in var/cache/prod/twig/95/954e97f1a19b79f5a61ec6ae16f6d94e.php :: include (line 449)
in [vendor/twig/twig/src/Template.php ](file:///app/public/vendor/twig/twig/src/Template.php#L366)-> block_content (line 456)
in var/cache/prod/twig/2f/2f5385532b1f0dba961cd987cdcaf581.php -> yieldBlock (line 240)
in [vendor/twig/twig/src/Template.php ](file:///app/public/vendor/twig/twig/src/Template.php#L381)-> block_body (line 456)
in var/cache/prod/twig/b2/b28ccc7bb2181f5458c76ca7fc7da274.php -> yieldBlock (line 176)
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
in var/cache/prod/twig/2f/2f5385532b1f0dba961cd987cdcaf581.php -> yield (line 54)
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
in var/cache/prod/twig/95/954e97f1a19b79f5a61ec6ae16f6d94e.php -> yield (line 57)
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
in vendor/twig/twig/src/Template.php -> yield (line 366)
in vendor/twig/twig/src/Template.php -> display (line 381)
in [vendor/twig/twig/src/TemplateWrapper.php ](file:///app/public/vendor/twig/twig/src/TemplateWrapper.php#L51)-> render (line 51)
in vendor/twig/twig/src/Environment.php -> render (line 333)
in vendor/symfony/framework-bundle/Controller/AbstractController.php -> render (line 462)
in vendor/symfony/framework-bundle/Controller/AbstractController.php -> doRenderView (line 467)
in vendor/symfony/framework-bundle/Controller/AbstractController.php -> doRender (line 279)
AbstractController->render('App/Collection/show.html.twig', array('collection' => object(Collection), 'children' => array(), 'items' => array(object(Item), object(Item), object(Item), object(Item), object(Item), object(Item), object(Item), object(Item), object(Item), object(Item), object(Item), object(Item), object(Item))))
in src/Controller/CollectionController.php (line 141)
in vendor/symfony/http-kernel/HttpKernel.php -> show (line 183)
in vendor/symfony/http-kernel/HttpKernel.php -> handleRaw (line 76)
in vendor/symfony/http-kernel/Kernel.php -> handle (line 191)
in vendor/symfony/runtime/Runner/FrankenPhpWorkerRunner.php -> handle (line 62)
FrankenPhpWorkerRunner->{closure:Symfony\Component\Runtime\Runner\FrankenPhpWorkerRunner::run():51}()
in vendor/symfony/runtime/Runner/FrankenPhpWorkerRunner.php frankenphp_handle_request (line 72)
in vendor/autoload_runtime.php -> run (line 33)
require_once('/app/public/vendor/autoload_runtime.php')
in public/index.php (line 5)
TypeError
App\Entity\Item::getDatumByLabel(): Argument #1 ($label) must be of type string, null given, called in /app/public/[vendor/twig/twig/src/Extension/CoreExtension.php ](file:///app/public/vendor/twig/twig/src/Extension/CoreExtension.php#L1522)on line 1918
I have tried to debug with a SQL client, but I do not see any glaring NULL entries that shouldn't be there. I did notice that if I use the action button to edit the collection, The "List Columns" field has 43 (!!!!) entries, all unchecked, all have no values, just checkboxes with no string.
OS: Ubunut and Docker
Koillection version: 1.8.2
PHP version: 8.5.7
Symfony version: 8.0.13
API Platform version: 4.3.10
FrankenPHP version: 1.12.4
Opcache enabled: true
After the update, I have two collections that give an error if I click to open them. The error is the same for both:
Then:
I have tried to debug with a SQL client, but I do not see any glaring NULL entries that shouldn't be there. I did notice that if I use the action button to edit the collection, The "List Columns" field has 43 (!!!!) entries, all unchecked, all have no values, just checkboxes with no string.
OS: Ubunut and Docker
Koillection version: 1.8.2
PHP version: 8.5.7
Symfony version: 8.0.13
API Platform version: 4.3.10
FrankenPHP version: 1.12.4
Opcache enabled: true