Problem/Motivation

Seems there is missing some twig definietion in the maintenance tpl

 [pid 2131784] [client 91.41.187.200:63270] AH01071: Got error 'PHP message: Twig\\Error\\LoaderError: Template "@aspiration/../images/maintenance.svg" is not defined in "themes/contrib/aspiration/templates/layout/maintenance-page.html.twig" at line 37. in /var/www/cms/web/themes/contrib/aspiration/templates/layout/maintenance-page.html.twig on line 37 #0 /var/www/cms/vendor/twig/twig/src/Extension/CoreExtension.php(1540): Twig\\Loader\\ChainLoader->getSourceContext()\n#1 /var/www/cms/web/sites/default/files/php/twig/68dd01c595928_maintenance-page.html.twi__9ovJD1M2V9BhSWG2iGJyU9I5/TY9TYVEy7CsGowensvOXeBJwWgLOIBvSWKYDLqbY5N8.php(102): Twig\\Extension\\CoreExtension::source()\n#2 /var/www/cms/vendor/twig/twig/src/Template.php(402): __TwigTemplate_2c77e630983abe3bae32d50918084151->doDisplay()\n#3 /var/www/cms/vendor/twig/twig/src/Template.php(358): Twig\\Template->yield()\n#4 /var/www/cms/vendor/twig/twig/src/Template.php(373): Twig\\Template->display()\n#5 /var/www/cms/vendor/twig/twig/src/TemplateWrapper.php(51): Twig\\Template->render()\n#6 /var/www/cms/web/core/themes/engi...', referer: https://drupaltutorials.de/sites/default/files/css/css_y5iMKLE4jLJhznfFAq2kQMd0LsmQqPPQoEGjMMUs-WQ.css?delta=3&language=de&theme=aspiration&include=eJxtykEKgCAQheELZS6i88RoZgPjODQiePvcpdDqwfd-UMEHCma2_mRT93Vb4LMLjs6TUF-fJ4uUHZDR0gg5js8dqIbew4gJkP9iySLIumjTEpJ1oOEFHpA93g

Steps to reproduce

Install Theme
set site to maintenace
Logout
Go to homepage

Proposed resolution

crate a patch/fix code

Remaining tasks

create a patch.

User interface changes

nonen

API changes

none

Data model changes

none

CommentFileSizeAuthor
#3 3549742_1.patch669 bytesshank115

Comments

joachim namyslo created an issue. See original summary.

joachim namyslo’s picture

I removed the function in Line 37 snd now the maintenance Page is working correctly.

<div class="svg-wrapper">
  {{ source('@public_path'~asset('build/images/your_file.svg')) }}
</div>    

Should work as well.

{{ source('@aspiration/images/maintenance.svg') }}

should also be possible. but the original code
i"@aspiration/../images/maintenance.svg"
is outside the @aspiration namespace wich chauses the error.

shank115’s picture

Status: Active » Needs review
StatusFileSize
new669 bytes

I couldn't find any image in /images/maintenance.svg that is why it is throwing error. For now I have just commented out that part in the patch.

sujan shrestha’s picture

Version: 1.1.x-dev » 1.1.3
Status: Needs review » Fixed

Hi @Joachim @Shashank, thanks for your suggestion. i have removed the maintenance-icon since it wasn’t necessary. I appreciate you for pointing that out and suggesting a solution.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.