Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find template "FOSUserBundle::layout.html.twig" server error 500 #7032

Closed
DeRuiterIndustrieleAutomatisering opened this issue Oct 18, 2023 · 13 comments

Comments

@DeRuiterIndustrieleAutomatisering

Version: 2.6.7
Installation: Installatron (host provider)
PHP version: 8.0.27
OS: Linux
Database: MariaDB
Parameters:

when I try to login I suddenly get "500: Internal Server Error

Unable to find template "FOSUserBundle::layout.html.twig" (looked into: /../public_html/templates, /../public_html/vendor/symfony/twig-bridge/Resources/views/Form) in "@FOSUser/Security/login.html.twig" at line 1."

As far as I know the configuration and the system wasn't changed. What can I do to solve this error?

What steps will reproduce the bug?

no idea

@j0k3r
Copy link
Member

j0k3r commented Oct 18, 2023

What did you do to have that error? Did you upgrade wallabag? Did you make a fresh installation?

@Selwyk
Copy link

Selwyk commented Oct 18, 2023

I had that one (and many others) but it was a new installation. The issue was the domain name.

@DeRuiterIndustrieleAutomatisering
Copy link
Author

it looks like some symbolic links in the bundles folder became invalid (../../filename instead of ../filename) after the octobere update. I recreated them to the new level and now it's working fine again

@Sebfff
Copy link

Sebfff commented Dec 20, 2023

it looks like some symbolic links in the bundles folder became invalid (../../filename instead of ../filename) after the octobere update. I recreated them to the new level and now it's working fine again

@DeRuiterIndustrieleAutomatisering Hello, Thanks for this answer, I've exactly the same error but can you describe how to recreate the symbolics links ? (In which files on my ftp server ) My host provider is Infomaniak and I've Maria DB too. thanks a lot

@Sebfff
Copy link

Sebfff commented Jan 11, 2024

Hello @j0k3r have you any idea to repair this ? thanks a lot

it looks like some symbolic links in the bundles folder became invalid (../../filename instead of ../filename) after the octobere update. I recreated them to the new level and now it's working fine again

@DeRuiterIndustrieleAutomatisering Hello, Thanks for this answer, I've exactly the same error but can you describe how to recreate the symbolics links ? (In which files on my ftp server ) My host provider is Infomaniak and I've Maria DB too. thanks a lot

@j0k3r
Copy link
Member

j0k3r commented Jan 12, 2024

Sorry no, I've no idea.

@Sebfff
Copy link

Sebfff commented Jan 28, 2024

Sorry no, I've no idea.

Thanks you for you response, @DeRuiterIndustrieleAutomatisering please can you help me to get your solution ? Thanks a lot

@DeRuiterIndustrieleAutomatisering
Copy link
Author

I logged in with SSH into my server and renamed the corrupted symbolic links (just in case) and then created new ones with the old names

@Sebfff
Copy link

Sebfff commented Jan 29, 2024

I logged in with SSH into my server and renamed the corrupted symbolic links (just in case) and then created new ones with the old names

Thanks a lot but precisely my problem is how to do that ? thanks

--> it looks like some symbolic links in the bundles folder became invalid (../../filename instead of ../filename) after the octobere update. I recreated them to the new level and now it's working fine again @DeRuiterIndustrieleAutomatisering Hello, Thanks for this answer, I've exactly the same error but can you describe how to recreate the symbolics links ? (In which files on my ftp server ) My host provider is Infomaniak and I've Maria DB too. thanks a lot

@DeRuiterIndustrieleAutomatisering
Copy link
Author

but do you know how to login with ssh on your Infomaniak server?

@Sebfff
Copy link

Sebfff commented Feb 2, 2024

but do you know how to login with ssh on your Infomaniak server?

hello, yes I do but I don't know exactly what to do to exactly to fix the problem in the ssh terminal. Is it with the ln command or something else ? (I am on shared server) Thanks a lot if you can tell me what is the prompt / steps to use to solve this issue

@Sebfff
Copy link

Sebfff commented Feb 7, 2024

@DeRuiterIndustrieleAutomatisering Can you please tell me the command you've used in the ssh terminal ? I can navigate in directories but I am not sure on the precise command to use to fix the problem (and I don't want to mess it all) thanks a lot

@Sebfff
Copy link

Sebfff commented Mar 4, 2024

Hello @DeRuiterIndustrieleAutomatisering

My Bundles folder
Initialy like that

drwxr-xr-x  2 uid174014 ldapusers  124 Jan  4 22:40 .
drwxr-xr-x 21 uid174014 gid174014 4096 Mar  4 00:35 ..
lrwxrwxrwx  1 uid174014 ldapusers   45 Jan  4 22:39 babdevpagerfanta -> ../../vendor/babdev/pagerfanta-bundle/public/
lrwxrwxrwx  1 uid174014 ldapusers   50 Jan  4 22:39 craueconfig -> ../../vendor/craue/config-bundle/Resources/public/
lrwxrwxrwx  1 uid174014 ldapusers   64 Jan  4 22:39 fosjsrouting -> ../../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/
-rw-r--r--  1 uid174014 ldapusers    0 Jan  3 09:18 .gitkeep
lrwxrwxrwx  1 uid174014 ldapusers   52 Jan  4 22:39 nelmioapidoc -> ../../vendor/nelmio/api-doc-bundle/Resources/public/

I've done this :

unlink fosjsrouting

unlink craueconfig

unlink nelmioapidoc

unlink babdevpagerfanta

and this


ln -s  ../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/ fosjsrouting

ln -s  ../vendor/craue/config-bundle/Resources/public/craueconfig

ln -s  ../vendor/nelmio/api-doc-bundle/Resources/public/ nelmioapidoc

ln -s  ../vendor/babdev/pagerfanta-bundle/public/ babdevpagerfanta

To obtain this

lrwxrwxrwx  1 uid174014 ldapusers   42 Mar  4 17:37 babdevpagerfanta -> ../vendor/babdev/pagerfanta-bundle/public/
lrwxrwxrwx  1 uid174014 ldapusers   58 Mar  4 17:37 craueconfig -> ../vendor/craue/config-bundle/Resources/public/craueconfig
lrwxrwxrwx  1 uid174014 ldapusers   61 Mar  4 17:30 fosjsrouting -> ../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/
-rw-r--r--  1 uid174014 ldapusers    0 Jan  3 09:18 .gitkeep
lrwxrwxrwx  1 uid174014 ldapusers   49 Mar  4 17:37 nelmioapidoc -> ../vendor/nelmio/api-doc-bundle/Resources/public/

but the result is the same, still Unable to find template "FOSUserBundle::layout.html.twig" server error 500

Is there a another solution ? Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants