[resolved ⎯ user error] Fatal error updating from 3.3.10 to 3.3.12

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
richxrich
Registered User
Posts: 186
Joined: Mon Nov 21, 2016 9:17 am
Name: Rich

[resolved ⎯ user error] Fatal error updating from 3.3.10 to 3.3.12

Post by richxrich »

This was done in a test environment and not on our live board.

I followed the Full Update method to update from 3.3.10 to 3.3.12. I didn't run into errors during the install and it appeared to have completed successfully. However, after deleting the /install folder from the directory, and going to the index page, it threw these errors.

Code: Select all

Fatal error: Uncaught Twig\Error\LoaderError: Looks like you try to load a template outside configured directories (../template/lightbox/css/lightbox.min.css) in "@vse_lightbox/event/overall_header_head_append.html" at line 2. in /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Loader/FilesystemLoader.php:291 
Stack trace: 
#0 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Loader/FilesystemLoader.php(211): Twig\Loader\FilesystemLoader->validateName('../template/lig...') 
#1 /home/sfbaaps/sandbox.sfbaaps.org/phpbb/template/twig/loader.php(135): Twig\Loader\FilesystemLoader->findTemplate('@vse_lightbox/....', true) 
#2 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Loader/FilesystemLoader.php(150): phpbb\template\twig\loader->findTemplate('@vse_lightbox/....') 
#3 /home/sfbaaps/sandbox.sfbaaps.org/phpbb/template/twig/environment.php(327): Twig\Loader\FilesystemLoader->getCacheKey('@vse_lightbox/....') 
#4 /home/sfbaaps/sandbox.sfbaaps.org/cache/production/twig/94/941a7ea2b02c40f5ba5c4d283a67e558.php(45): phpbb\template\twig\environment->findTemplate('@vse_lightbox/....') 
#5 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Template.php(405): __TwigTemplate_857fbd862114e2aa1318f08a0d226789->doDisplay(Array, Array) 
#6 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array) 
#7 /home/sfbaaps/sandbox.sfbaaps.org/cache/production/twig/5a/5aae02703734d525e3c1539733d52531.php(357): Twig\Template->display(Array) 
#8 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Template.php(405): __TwigTemplate_0d5782b798b13df022e5f68f21c7da50->doDisplay(Array, Array) 
#9 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array) 
#10 /home/sfbaaps/sandbox.sfbaaps.org/cache/production/twig/3a/3a816f6ce2c128a0d97ba17677fc54e9.php(44): Twig\Template->display(Array) 
#11 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Template.php(405): __TwigTemplate_14f30c7ae2592c5f9d5e05c07d48d90a->doDisplay(Array, Array) 
#12 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array) 
#13 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array) 
#14 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render(Array, Array) 
#15 /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render(Array) 
#16 /home/sfbaaps/sandbox.sfbaaps.org/phpbb/template/twig/environment.php(223): Twig\Environment->render('login_body.html', Array) 
#17 /home/sfbaaps/sandbox.sfbaaps.org/phpbb/template/twig/environment.php(193): phpbb\template\twig\environment->display_with_assets('login_body.html', Array) 
#18 /home/sfbaaps/sandbox.sfbaaps.org/phpbb/template/twig/twig.php(317): phpbb\template\twig\environment->display('login_body.html', Array) 
#19 /home/sfbaaps/sandbox.sfbaaps.org/includes/functions.php(4318): phpbb\template\twig\twig->display('body') 
#20 /home/sfbaaps/sandbox.sfbaaps.org/includes/functions.php(2575): page_footer() 
#21 /home/sfbaaps/sandbox.sfbaaps.org/ext_disable.php(36): login_box('ext_disable.php') 
#22 {main} thrown in /home/sfbaaps/sandbox.sfbaaps.org/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 291
From the error codes, it looks like they may be related to installed extensions. Any thoughts on how to remedy? Thanks.
Last edited by richxrich on Thu Jun 13, 2024 5:29 pm, edited 2 times in total.
User avatar
ssl
Registered User
Posts: 1805
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by ssl »

This concern is mentioned here: viewtopic.php?t=2631681
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
richxrich
Registered User
Posts: 186
Joined: Mon Nov 21, 2016 9:17 am
Name: Rich

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by richxrich »

Thanks for the tip.

I went in and changed the path to the extension prefix for Lightbox in the file /home/sfbaaps/sandbox.sfbaaps.org/ext/vse/lightbox/styles/all/template/event/overall_header_head_append.html as called out in the error message.

The code now looks like this:

Code: Select all

{% if LIGHTBOX_RESIZE_WIDTH %}
	{% INCLUDECSS '@vse_lightbox/lightbox.min.css' %}
{% endif %}
I believe I did this correctly, but I'm still getting the same/similar error. I don't see callouts to any other files in the error. Am I missing something?
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2394
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by P_I »

richxrich wrote: Tue Jun 11, 2024 2:38 pm I went in and changed the path to the extension prefix for Lightbox
Deja vu all over again maybe? Maybe re-read phpBB • 3.3.9 Twig Error - Lightbox and ensure you have the most recent version installed.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
ssl
Registered User
Posts: 1805
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by ssl »

I think you are using an old version of the Lightbox extension, use the script mentioned here: https://www.phpbb.com/support/docs/en/3 ... s-at-once/ to disable all extensions.
Once the extensions are all deactivated you should regain access to your board, then you will need to check the versions of the extensions used and make the necessary updates.
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
richxrich
Registered User
Posts: 186
Joined: Mon Nov 21, 2016 9:17 am
Name: Rich

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by richxrich »

P_I wrote: Tue Jun 11, 2024 2:42 pm
richxrich wrote: Tue Jun 11, 2024 2:38 pm I went in and changed the path to the extension prefix for Lightbox
Deja vu all over again maybe? Maybe re-read phpBB • 3.3.9 Twig Error - Lightbox and ensure you have the most recent version installed.
Yes, I vaguely recall having done this previously. :oops:

All extensions were up to date. My error was not disabling them prior to the updates. I always seem to forget that step.

Thanks for the reminder. :)
User avatar
ssl
Registered User
Posts: 1805
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by ssl »

If the extensions were up to date you wouldn't have this error message, do we agree?
Is this your board? https://forum.sfbaaps.org/
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
richxrich
Registered User
Posts: 186
Joined: Mon Nov 21, 2016 9:17 am
Name: Rich

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by richxrich »

Correct. That's our live board. It's still on 3.3.10.

I always test updates on a test environment (sandbox.sfbaaps.org) before implementing on the live board.

Lightbox was up-to-date. Prior to the attempted update, I rechecked all versions of the installed extensions in the ACP to make sure I have the most recent and update them if they're not. I suspect my big error was not disabling all extensions before proceeding with the update to 3.3.12.

At this point, I can't get past the error, even with running the ext_disable.php script. I'll have to create a new instance of the board from backup and try again.
User avatar
ssl
Registered User
Posts: 1805
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by ssl »

richxrich wrote: Tue Jun 11, 2024 2:38 pm I went in and changed the path to the extension prefix for Lightbox in the file /home/sfbaaps/sandbox.sfbaaps.org/ext/vse/lightbox/styles/all/template/event/overall_header_head_append.html as called out in the error message.
The file modification you say you made here does not correspond to a recent version of the Lightbox extension, but to an older version 1.0.5 I think.
But in short, your extensions are up to date :D
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
richxrich
Registered User
Posts: 186
Joined: Mon Nov 21, 2016 9:17 am
Name: Rich

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by richxrich »

Yeah, I see that now. I just compared the files in directories and the latest version doesn't have that file.
richxrich
Registered User
Posts: 186
Joined: Mon Nov 21, 2016 9:17 am
Name: Rich

Re: Fatal error updating from 3.3.10 to 3.3.12

Post by richxrich »

Created a new db from backup, disabled all extensions and completed the update without a hitch. Everything's good in the world!

Thanks for the help and reminders!

Return to “[3.3.x] Support Forum”