2.17.0
http://192.168.1.104:8085/pl/attachment/list
how attachments error 500 in Docker
Uncaught PHP Exception TypeError: "App\Services\EntityURLGenerator::editURL(): Argument Part-DB/Part-DB-legacy#1 ($entity) must be of type App\Entity\Base\AbstractDBElement, null given, called in /var/www/html/src/DataTables/AttachmentDataTable.php on line 110" at EntityURLGenerator.php line 233
Error when attempting to display attachments;
it works fine on the Debian installation,
but there is an error in Docker.
500
Internal Server Error
Something bad happened internally.
There is nothing you could do about this, except trying to reload the page.
You can try to Go Back or Visit the homepage.
If this error persists, please contact your administrator.
Infos for Admin: You could try following things, if this error is unexpected:
Check var/log/prod.log (or docker logs when Part-DB is running inside a docker container) for additional informations
Run php bin/console cache:clear and php bin/console cache:pool:clear --all to clear caches
If you think that this is an error in Part-DB, open an Issue on GitHub.
You can disable these hints in config/parameters.yaml by setting partdb.error_pages.show_help to false.
I received this information from the AI.
The editURL() method in the EntityURLGenerator class expects an object of type AbstractDBElement as an argument.
However, it receives null, which means that an empty or non-existent object is being passed somewhere in the code (in AttachmentDataTable.php, line 110).
This triggers a TypeError exception, resulting in a 500 error on the page.
2.17.0
http://192.168.1.104:8085/pl/attachment/list
how attachments error 500 in Docker
Uncaught PHP Exception TypeError: "App\Services\EntityURLGenerator::editURL(): Argument Part-DB/Part-DB-legacy#1 ($entity) must be of type App\Entity\Base\AbstractDBElement, null given, called in /var/www/html/src/DataTables/AttachmentDataTable.php on line 110" at EntityURLGenerator.php line 233
Error when attempting to display attachments;
it works fine on the Debian installation,
but there is an error in Docker.
500
Internal Server Error
Something bad happened internally.
There is nothing you could do about this, except trying to reload the page.
You can try to Go Back or Visit the homepage.
If this error persists, please contact your administrator.
Infos for Admin: You could try following things, if this error is unexpected:
Check var/log/prod.log (or docker logs when Part-DB is running inside a docker container) for additional informations
Run php bin/console cache:clear and php bin/console cache:pool:clear --all to clear caches
If you think that this is an error in Part-DB, open an Issue on GitHub.
You can disable these hints in config/parameters.yaml by setting partdb.error_pages.show_help to false.
I received this information from the AI.
The editURL() method in the EntityURLGenerator class expects an object of type AbstractDBElement as an argument.
However, it receives null, which means that an empty or non-existent object is being passed somewhere in the code (in AttachmentDataTable.php, line 110).
This triggers a TypeError exception, resulting in a 500 error on the page.