delta-cs / seminar-domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
2 stars 0 forks source link

Argument 1 passed to App\Twig\TwigExtension::problemBadge() must be an instance of App\Entity\ContestProblem, bool given #121

Closed zapotocnylubos closed 5 months ago

zapotocnylubos commented 5 months ago

on clarification list and detail page we get the following error

Snímek obrazovky 2024-03-19 v 7 06 02
zapotocnylubos commented 5 months ago

I traced the root cause of this problem.

It was caused because of somehow miscreated clarification for one user. The clarification belonged to contest 2 (not accessible to the user) but had a link to correct the problem.

The required change was to switch the database value of the contest id.

UPDATE domjudge.clarification t SET t.cid = 21 WHERE t.clarid = 469