When I Install and set as default. the website encountered an unexpected error
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | After-patch.png | 3.56 MB | djsagar |
| #9 | Before-patch.png | 200.19 KB | djsagar |
| #8 | Theme installed.png | 1.13 MB | jay jangid |
| #8 | Issue-find.png | 304.04 KB | jay jangid |
| #6 | 3379028-installion-issue-6.patch | 740 bytes | bandanasharma |
Comments
Comment #2
sarwan_verma commentedI've successfully reproduced the issue on my machine, and created a patch to resolve it.
Please find the attached patch below, Thanks.
Comment #3
mukesh-kumar3 commentedHi i have apply patch for when install the theme website encountered an unexpected error because of the spaceless tag that is not to be supported after twig 2.7 now we can use {% apply spaceless %}{% endapply %} now the issue is fixed and theme installed successfully. I have attached the applying patch screenshot below please review.
Comment #4
keshavv commentedPatch #3 works well, But there are a few more occurrences.
Updated the patch.
Thank you.
Comment #5
bandanasharma commentedI also faced the installation issue. I don't think the previous patch changes are required in this issue. Please review and suggest.
This is not related to the
Spacelesstag, please create a separate issue for that.Comment #6
bandanasharma commentedThis issue exists due to the
drupal_get_path()function in the theme.theme file and it is deprecated. I have created a patch for this and attached the screenshot after fixing this issue.Comment #7
jay jangid commentedComment #8
jay jangid commentedHello @bandanasharma I have tested this issue in Drupal 9.5.x.
I am also getting the error "The website encountered an unexpected error. Please try again later" when I install & set it as the default theme.
Then I apply patch #2 and again I check this issue.
Now the theme is installed successfully.
Also, I agree with @bandanasharma, there is no need for the previous patch, excluding patch #2.
I am sharing screenshots for reference.
Please review.
Thank you.
Comment #9
djsagar commentedPatch @6 resolved the above issue.
Thanks to @bandanasharma.
Comment #10
rushikesh raval commentedThis is issue if duplicate issue of https://www.drupal.org/project/status_zymphonies_theme/issues/3379038.
So closing as duplicate.