Skip to content

Conversation

@BentiGorlich
Copy link
Member

Fix "LinkExtensionRuntime::getRel(): Argument #1 ($url) must be of type string, null given"

{
    "message": "Uncaught PHP Exception Twig\\Error\\RuntimeError: \"An exception has been thrown during the rendering of a template (\"App\\Twig\\Runtime\\LinkExtensionRuntime::getRel(): Argument #1 ($url) must be of type string, null given, called in /var/www/kbin/var/cache/prod/twig/b1/b19a01a9a35befa0b64192f6bcd4bc0f.php on line 142\").\" at _figure_entry.html.twig line 39",
    "context": {
        "exception": {
            "class": "Twig\\Error\\RuntimeError",
            "message": "An exception has been thrown during the rendering of a template (\"App\\Twig\\Runtime\\LinkExtensionRuntime::getRel(): Argument #1 ($url) must be of type string, null given, called in /var/www/kbin/var/cache/prod/twig/b1/b19a01a9a35befa0b64192f6bcd4bc0f.php on line 142\").",
            "code": 0,
            "file": "/var/www/kbin/templates/components/_figure_entry.html.twig:39",
            "previous": {
                "class": "TypeError",
                "message": "App\\Twig\\Runtime\\LinkExtensionRuntime::getRel(): Argument #1 ($url) must be of type string, null given, called in /var/www/kbin/var/cache/prod/twig/b1/b19a01a9a35befa0b64192f6bcd4bc0f.php on line 142",
                "code": 0,
                "file": "/var/www/kbin/src/Twig/Runtime/LinkExtensionRuntime.php:20"
            }
        }
    },
    "level": 500,
    "level_name": "CRITICAL",
    "channel": "request",
    "datetime": "2025-07-02T07:17:27.155290+00:00",
    "extra": {}
}

Fix "LinkExtensionRuntime::getRel(): Argument #1 ($url) must be of type string, null given"
@BentiGorlich BentiGorlich self-assigned this Jul 2, 2025
@BentiGorlich BentiGorlich added bug Something isn't working frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end labels Jul 2, 2025
@BentiGorlich BentiGorlich requested a review from melroy89 July 4, 2025 14:06
@BentiGorlich BentiGorlich enabled auto-merge (squash) July 4, 2025 15:21
@BentiGorlich BentiGorlich merged commit d0379bf into main Jul 4, 2025
7 checks passed
@BentiGorlich BentiGorlich deleted the fix/twig-figure-error branch July 4, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants