Digests

UCP page is blank - Digests

UCP page is blank

by ZweiBieren » Sun Feb 25, 2024 7:28 pm

I have just started a new board and installed the latest digest module. I have even created a system cron job. Most things work. But when a user clicks the digest tab on the UCP, a blank page is all that appears.

The apache error log shows:
[Sun Feb 25 10:30:40.673750 2024] [fcgid:warn] [pid 427457:tid 3905549694720] [client 50.205.27.126:58062] mod_fcgid: stderr: PHP Fatal error: Uncaught Twig\\Error\\LoaderError: Looks like you try to load a template outside configured directories (../theme/jquery-ui-1.12.1.min.css) in "@phpbbservices_digests/event/overall_header_head_append.html" at line 4. in /home/zbe/zweibieren.earth/pp/vendor/twig/twig/src/Loader/FilesystemLoader.php:291, referer: https://www.zweibieren.earth/pp/ucp.php ... e=personal

[Sun Feb 25 10:30:40.673853 2024] [fcgid:warn] [pid 427457:tid 3905549694720] [client 50.205.27.126:58062] mod_fcgid: stderr: Stack trace:, referer: https://www.zweibieren.earth/pp/ucp.php ... e=personal

[Sun Feb 25 10:30:40.673870 2024] [fcgid:warn] [pid 427457:tid 3905549694720] [client 50.205.27.126:58062] mod_fcgid: stderr: #0 /home/zbe/zweibieren.earth/pp/vendor/twig/twig/src/Loader/FilesystemLoader.php(211): Twig\\Loader\\FilesystemLoader->validateName('../theme/jquery...'), referer: https://www.zweibieren.earth/pp/ucp.php ... e=personal
...
[Sun Feb 25 10:30:40.674392 2024] [fcgid:warn] [pid 427457:tid 3905549694720] [client 50.205.27.126:58062] mod_fcgid: stderr: #25 {main}, referer: https://www.zweibieren.earth/pp/ucp.php ... e=personal

[Sun Feb 25 10:30:40.674407 2024] [fcgid:warn] [pid 427457:tid 3905549694720] [client 50.205.27.126:58062] mod_fcgid: stderr: thrown in /home/zbe/zweibieren.earth/pp/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 291, referer: https://www.zweibieren.earth/pp/ucp.php ... e=personal
ZweiBieren
Registered User
Posts: 8
Joined: Thu Feb 15, 2024 3:47 pm

Re: UCP page is blank

by MarkDHamill » Sun Feb 25, 2024 8:36 pm

Last time I encountered an error like this it was shortly after a phpBB update from an earlier version. Your board's /cache folder typically contains two folders: /installer and /production. Removing the /installer directory manually with FTP or a file manager fixed the issue. Pressing purge the cache button has no effect on the /installer folder.

Both of these folders hold compiled PHP programs which gives faster access. It seems likely the templating engine changed between your old version of phpBB and the new one. I'm guessing the TWIG engine has changed and is referenced in the /installer directory. Removing the /installer directory and all its files should solve your issue.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: UCP page is blank

by ZweiBieren » Mon Feb 26, 2024 5:27 am

I have just started with phpbb. I loaded 3.3.11 rather than upgrade to it. I deleted the install/ directory. The only installer directories are cache/installer/ which is empty and config/installer/ which contains config.yml, container/, and routing/. These don't sound like what you are talking about. PHP version is 8.2.15

One possible difference from a normal installation: phpbb is not installed in the root directory, but in root/pp/
ZweiBieren
Registered User
Posts: 8
Joined: Thu Feb 15, 2024 3:47 pm

Re: UCP page is blank

by MarkDHamill » Mon Feb 26, 2024 1:09 pm

Not sure I can help then. My solution has worked in the past.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: UCP page is blank

by ZweiBieren » Thu Feb 29, 2024 4:54 pm

So I installed a new copy of phpbb and a new copy of digests. I made none of the changes I have made to my original board.

Once again the UCP page is blank.

Please test digests on a new install. For me it does not work.
Last edited by ZweiBieren on Thu Feb 29, 2024 9:30 pm
ZweiBieren
Registered User
Posts: 8
Joined: Thu Feb 15, 2024 3:47 pm

Re: UCP page is blank

by ZweiBieren » Thu Feb 29, 2024 9:03 pm

Upon further examination. The error message (below) says that
>> styles/all/template/event/overall_header_head_append.html
refers to
>> ../theme/jquery-ui-1.12.1.min.css
The latter looks iffy. There is such a file, but it is actually in
>> ./ext/phpbbservices/digests/styles/all/theme/jquery-ui-1.12.1.min.css

The reference to jquery...css is in file
>> styles/all/template/event/overall_header_head_append.html
where it says
>> {% INCLUDECSS '@phpbbservices_digests/../theme/jquery-ui-1.12.1.min.css' %}

Is this last line correct?


=========================
ERROR LOG

[Thu Feb 29 10:04:24.379731 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: PHP Fatal error: Uncaught Twig\\Error\\LoaderError: Looks like you try to load a template outside configured directories (../theme/jquery-ui-1.12.1.min.css) in "@phpbbservices_digests/event/overall_header_head_append.html" at line 4. in /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Loader/FilesystemLoader.php:291, referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.379871 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: Stack trace:, referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.379888 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #0 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Loader/FilesystemLoader.php(211): Twig\\Loader\\FilesystemLoader->validateName('../theme/jquery...'), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.379904 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #1 /home/zbe/zweibieren.earth/qq/phpbb/template/twig/loader.php(135): Twig\\Loader\\FilesystemLoader->findTemplate('@phpbbservices_...', true), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.379919 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #2 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Loader/FilesystemLoader.php(150): phpbb\\template\\twig\\loader->findTemplate('@phpbbservices_...'), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.379956 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #3 /home/zbe/zweibieren.earth/qq/phpbb/template/twig/environment.php(328): Twig\\Loader\\FilesystemLoader->getCacheKey('@phpbbservices_...'), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.379973 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #4 /home/zbe/zweibieren.earth/qq/cache/production/twig/74/7413be5b86010c73a82135f0f3d7bc10.php(50): phpbb\\template\\twig\\environment->findTemplate('@phpbbservices_...'), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.379995 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #5 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(405): __TwigTemplate_99ac8543726389ebcc9efd2f6dd724b4->doDisplay(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380011 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #6 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(378): Twig\\Template->displayWithErrorHandling(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380026 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #7 /home/zbe/zweibieren.earth/qq/cache/production/twig/c5/c525485f63b4326578586da663996828.php(269): Twig\\Template->display(Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380040 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #8 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(405): __TwigTemplate_ff1fd368d739be5a857ce17b9ecb1905->doDisplay(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380055 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #9 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(378): Twig\\Template->displayWithErrorHandling(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380070 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #10 /home/zbe/zweibieren.earth/qq/cache/production/twig/83/834067e10abe4f9460842303dd9e5afd.php(44): Twig\\Template->display(Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380085 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #11 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(405): __TwigTemplate_9d6216cf464499e6ab0991c7bc6364f7->doDisplay(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380099 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #12 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(378): Twig\\Template->displayWithErrorHandling(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380114 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #13 /home/zbe/zweibieren.earth/qq/cache/production/twig/9f/9f03361708de9d260c3d57b713660b7f.php(44): Twig\\Template->display(Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380129 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #14 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(405): __TwigTemplate_250ec4b6e5f145ea05a50a70fa7e7a45->doDisplay(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380143 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #15 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(378): Twig\\Template->displayWithErrorHandling(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380170 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #16 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Template.php(390): Twig\\Template->display(Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380185 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #17 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\\Template->render(Array, Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380199 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #18 /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Environment.php(318): Twig\\TemplateWrapper->render(Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380214 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #19 /home/zbe/zweibieren.earth/qq/phpbb/template/twig/environment.php(224): Twig\\Environment->render('ucp_digests.htm...', Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380229 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #20 /home/zbe/zweibieren.earth/qq/phpbb/template/twig/environment.php(194): phpbb\\template\\twig\\environment->display_with_assets('ucp_digests.htm...', Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380244 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #21 /home/zbe/zweibieren.earth/qq/phpbb/template/twig/twig.php(317): phpbb\\template\\twig\\environment->display('ucp_digests.htm...', Array), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380296 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #22 /home/zbe/zweibieren.earth/qq/includes/functions.php(4293): phpbb\\template\\twig\\twig->display('body'), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380312 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #23 /home/zbe/zweibieren.earth/qq/includes/functions_module.php(1036): page_footer(), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380327 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #24 /home/zbe/zweibieren.earth/qq/ucp.php(446): p_master->display('Basics'), referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380340 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: #25 {main}, referer: https://www.zweibieren.earth/qq/ucp.php

[Thu Feb 29 10:04:24.380354 2024] [fcgid:warn] [pid 271920:tid 3905709156096] [client 50.205.27.126:51023] mod_fcgid: stderr: thrown in /home/zbe/zweibieren.earth/qq/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 291, referer: https://www.zweibieren.earth/qq/ucp.php
ZweiBieren
Registered User
Posts: 8
Joined: Thu Feb 15, 2024 3:47 pm

Re: UCP page is blank

by MarkDHamill » Thu Feb 29, 2024 10:44 pm

jQuery certainly could be updated. 3.7.1 is the current version. Sorry I don't have time right now to do a new installation of phpBB and digests to see if I experience your errors. If you have a /cache/installer folder, I would delete that, purge the cache and it may go away.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: UCP page is blank

by ZweiBieren » Fri Mar 01, 2024 10:13 pm

Indeed, /../ fails after @phpbbservices_digests.
With the fixes below, the digests UCP pages appear.

FIX: In directory phpbbservices/digests/styles/all
  • move /theme/*.css to /template/event/
  • modify /template/event/overall_header_head_append.html
    by changing both instances of ../theme/ to event/
Fred Hansen
ZweiBieren
Registered User
Posts: 8
Joined: Thu Feb 15, 2024 3:47 pm

Re: UCP page is blank

by MarkDHamill » Fri Mar 01, 2024 11:22 pm

Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA