Support Request SupportFixed Footer Navbar crashes after update

Support Section
User avatar

Topic Author
LuMaReMa
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Mar 6th, '23, 14:44
    Windows 10 Chrome

Fixed Footer Navbar crashes after update

Post by LuMaReMa »

Your phpBB Version:
Your phpBB Type: Standard phpBB
Extensions installed: Yes
Your knowledge: Beginner

What have you done before the problem was there?
I've updated the forum from 3.3.5 to 3.3.10
As usually, I first try the new version in my testforum.
When the ext is activated the following errormessage appears:

Fatal error: Uncaught Twig\Error\LoaderError: Looks like you try to load a template outside configured directories (../theme/fixedfooternavbar.css) in "@dmzx_fixedfooternavbar/event/overall_header_head_append.html" at line 1. in /w__/htdocs/___.xxx/vendor/twig/twig/src/Loader/FilesystemLoader.php:291 Stack trace: #0 /w__/htdocs/___.xxx/vendor/twig/twig/src/Loader/FilesystemLoader.php(211): Twig\Loader\FilesystemLoader->validateName('../theme/fixedf...') #1 /w__/htdocs/w0140128/___.xxx/phpbb/template/twig/loader.php(135): Twig\Loader\FilesystemLoader->findTemplate('../theme/fixedf...', true) #2 /w--/htdocs/w0140128/____.xxx/vendor/twig/twig/src/Loader/FilesystemLoader.php(150): phpbb\template\twig\loader->findTemplate('../theme/fixedf...') #3 /w__/htdocs/____.xxx/phpbb/template/twig/environment.php(313): Twig\Loader\FilesystemLoader->getCacheKey('../theme/fixedf...') #4 /w__/htdocs/w0140128/testforum.esterelcl in /w__/htdocs/w0140128/____.xxx/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 291

Under 3.3.5 there were no errors


What have you already tried to solve the problem?
First I've activated the ext "in the flow" of activating my whole ext. I thought that the ext perhaps crashes in reaction with an other already activated. So I restored the old forumversion and than I activated the ext at first. But it also crashes. I also downloaded it and replaced the files in my directory.

Description and Message
User avatar

Scanialady
Users
Users
Status: Offline
User theme: Dark
Posts: 310
Joined: Apr 6th, '15, 16:04
    Windows 10 Chrome

Re: Fixed Footer Navbar crashes after update

Post by Scanialady »

It is probably a similar error as with the Board3 portal. You find the solution here: https://area51.phpbb.com/phpBB/viewtopi ... 56#p354956

It must of course be adapted to what this extension requires. Instead of @board3_portal enter the correct author_extension part
-
If you want to get German translations for extensions: ask me.
User avatar

Topic Author
LuMaReMa
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Mar 6th, '23, 14:44
    Windows 10 Chrome

Re: Fixed Footer Navbar crashes after update

Post by LuMaReMa »

Hi. The overall_header_head_append.html contains only one line
<!-- INCLUDECSS ../theme/fixedfooternavbar.css -->

I first changed to <!-- INCLUDECSS ../theme/@dmzx_fixedfooternavbar -->

and then to <!-- INCLUDECSS ../@dmzx_fixedfooternavbar -->

But both times there is the errormessage again

I also tried <!-- INCLUDECSS ../@dmzx/fixedfooternavbar -->

but also error
User avatar

ssl
Donator
Donator
Status: Offline
User theme: Dark
Posts: 137
Joined: Aug 19th, '20, 10:54
    Mac OS X Opera

Re: Fixed Footer Navbar crashes after update

Post by ssl »

Replace by

Code: Select all

<!-- INCLUDECSS '@dmzx_fixedfooternavbar/fixedfooternavbar.css' -->
phpBB: 3.3.14 | PHP: 8.3
[Some French translation of extensions]
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Fixed Footer Navbar crashes after update

Post by martin »

ssl wrote: Mar 6th, '23, 18:46 replace by

Code: Select all

<!-- INCLUDECSS '@dmzx_fixedfooternavbar/fixedfooternavbar.css' -->
It needs twig

Code: Select all

{% INCLUDECSS '@dmzx_fixedfooternavbar/fixedfooternavbar.css' %}
User avatar

Topic Author
LuMaReMa
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Mar 6th, '23, 14:44
    Windows 10 Chrome

Re: Fixed Footer Navbar crashes after update

Post by LuMaReMa »

Thanks Martin, it is working again. Can you pls tell me, what is Twig?
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Fixed Footer Navbar crashes after update

Post by martin »

Twig has been around for a while it's another way of coding html to keep up with browsers phpbb was just 20 years behind.
User avatar

Topic Author
LuMaReMa
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Mar 6th, '23, 14:44
    Android Chrome

Re: Fixed Footer Navbar crashes after update

Post by LuMaReMa »

20 years?? :yikes:

[ Posted using my Android device ]
User avatar

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1151
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Fixed Footer Navbar crashes after update

Post by Sniper_E »

Yes I think he said 20 years. :whistl: but he exaggerates
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
User avatar

Topic Author
LuMaReMa
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Mar 6th, '23, 14:44
    Windows 10 Chrome

Re: Fixed Footer Navbar crashes after update

Post by LuMaReMa »

What I wonder. when Twig is being used for such a long time - why the problem now appears? The ext is working since we est. our forum....
User avatar

ssl
Donator
Donator
Status: Offline
User theme: Dark
Posts: 137
Joined: Aug 19th, '20, 10:54
    Mac OS X Opera

Re: Fixed Footer Navbar crashes after update

Post by ssl »

The reason is that you have just upgraded your forum to version 3.3.10, since version 3.3.9 of phpBB the TWIG behavior has changed.

The error message in question has been around for a long time, precisely since phpBB 3.1.0 (Twig 1.13.2). However, the associated verification has changed several times over the years and remained unchanged for a long time with phpBB 3.3 up to phpBB 3.3.8 (Twig 2.15.1). However, with phpBB 3.3.9 (Twig 2.15.3), there was a small change in the following file, which, in combination with the relative path specification, then leads to the mentioned error message:

vendor\twig\twig\src\Loader\FilesystemLoader.php
User avatar

Topic Author
LuMaReMa
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Mar 6th, '23, 14:44
    Windows 10 Chrome

Re: Fixed Footer Navbar crashes after update

Post by LuMaReMa »

Thanks for this info. I'm not a professional, but I always try to understand what I do :D

With this background: I have many extensions (for example "Contact the admin") which are "sleeping" - they are not in use every day. Would it be good, to check in all extensions the overall_header_head_append.html?
User avatar

ssl
Donator
Donator
Status: Offline
User theme: Dark
Posts: 137
Joined: Aug 19th, '20, 10:54
    Mac OS X Opera

Re: Fixed Footer Navbar crashes after update

Post by ssl »

It is especially necessary to check if the extensions used do not need updating, this is an important rule to apply when updating phpBB.
User avatar

Topic Author
LuMaReMa
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Mar 6th, '23, 14:44
    Windows 10 Chrome

Re: Fixed Footer Navbar crashes after update

Post by LuMaReMa »

Yes, I know this and check it every update.

So, when there is no update for the ext there will be no problem?
User avatar

ssl
Donator
Donator
Status: Offline
User theme: Dark
Posts: 137
Joined: Aug 19th, '20, 10:54
    Mac OS X Opera

Re: Fixed Footer Navbar crashes after update

Post by ssl »

LuMaReMa wrote: Mar 10th, '23, 10:30 So, when there is no update for the ext there will be no problem?
In theory not, unless the developers have abandoned their extension or do not keep them up to date.