Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@melroy89
Copy link
Member

@melroy89 melroy89 commented Sep 11, 2024

Check for filePath not null as well. Or it will cause 500 error like @DismalShadowX had.

So this error:

{"message":"Uncaught PHP Exception Twig\\Error\\RuntimeError: \"An exception has been thrown during the rendering of a template (\"Symfony\\Bridge\\Twig\\Extension\\AssetExtension::getAssetUrl(): Argument #1 ($path) must be of type string, null given, called in /var/www/mbin/var/cache/prod/twig/1c/1c737a7bdff942d195fff83b4530e26e.php on line 71\").\" at _magazine_activity_list.html.twig line 15","context":{"exception":{"class":"Twig\\Error\\RuntimeError","message":"An exception has been thrown during the rendering of a template (\"Symfony\\Bridge\\Twig\\Extension\\AssetExtension::getAssetUrl(): Argument #1 ($path) must be of type string, null given, called in /var/www/mbin/var/cache/prod/twig/1c/1c737a7bdff942d195fff83b4530e26e.php on line 71\").","code":0,"file":"/var/www/mbin/templates/layout/_magazine_activity_list.html.twig:15","previous":{"class":"TypeError","message":"Symfony\\Bridge\\Twig\\Extension\\AssetExtension::getAssetUrl(): Argument #1 ($path) must be of type string, null given, called in /var/www/mbin/var/cache/prod/twig/1c/1c737a7bdff942d195fff83b4530e26e.php on line 71","code":0,"file":"/var/www/mbin/vendor/symfony/twig-bridge/Extension/AssetExtension.php:44"}}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2024-09-11T16:05:56.424670+00:00","extra":{}}```

Tested & working now on his instance at: hub.everythingbagel.me. Specifically: https://hub.everythingbagel.me/u/shadow/subscriptions

@melroy89 melroy89 added bug Something isn't working frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end labels Sep 11, 2024
@melroy89 melroy89 enabled auto-merge (squash) September 11, 2024 20:40
@melroy89 melroy89 merged commit 88e8ae3 into main Sep 11, 2024
@melroy89 melroy89 deleted the null_check_magazine_icon branch September 11, 2024 20:45
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