Digests

HTTP error 500 when clicking on Digest tab in UCP - Digests

HTTP error 500 when clicking on Digest tab in UCP

by Peeagepeebeebee » Sat Feb 02, 2019 3:17 am

I've installed the Digest extension (3.2.11 on phpBB 3.2.5) and it shows up in both the UCP and ACP. Problem though is, that when I click the Digest tab in the UCP (User Control Panel) the underlaying URL myforumhere.com/ucp.php?i=230 leads to an HTTP error 500.

Any ideas or advice?
Peeagepeebeebee
Registered User
Posts: 45
Joined: Fri Jan 18, 2019 4:34 am
Location: Germany

Re: HTTP error 500 when clicking on Digest tab in UCP

by MarkDHamill » Sat Feb 02, 2019 3:21 am

I can say that no one else has reported this. My guess is that there was some hiccup during installation of the extension. You can try disabling it, deleting the data, unloading a fresh version, reinstalling it and see if the problem recurs. I am thinking the modules table was not populated with the right information.
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: HTTP error 500 when clicking on Digest tab in UCP

by Peeagepeebeebee » Sat Feb 02, 2019 2:32 pm

Disabled it in ACP, deleted the data, deleted the Digests extension folder from the server. Downloaded it again from here, pushed it to the server, activated it. Same situation: Looks perfectly fine in ACP, shows up as tab in UCP, but when I click the UCP Digest tab, I get HTTP error 500.

Further ideas where to look, which files to tweak? Could the problem be related to the PHP version (running 7.1.26 here)?
Thanks in advance.
Peeagepeebeebee
Registered User
Posts: 45
Joined: Fri Jan 18, 2019 4:34 am
Location: Germany

Re: HTTP error 500 when clicking on Digest tab in UCP

by MarkDHamill » Sat Feb 02, 2019 2:42 pm

The only thing I can think of is there might be some sort of module naming conflict. Did you previously have the digests mod installed on a phpBB 3.0 forum? I tested that approach and the FAQ requests that you remove the old modules manually before installing the extension. The UCP module settings should look like this:
User Control Panel.png
The module language names should be (in sequence):

UCP_DIGESTS_BASICS
UCP_DIGESTS_FORUMS_SELECTION
UCP_DIGESTS_POST_FILTERS
UCP_DIGESTS_ADDITIONAL_CRITERIA

Modules should be enabled and displayed.
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: HTTP error 500 when clicking on Digest tab in UCP

by Peeagepeebeebee » Sat Feb 02, 2019 2:54 pm

The board is virgin, with a fresh installation of 3.2.x. Thus also first, fresh installation of Digest. Scratching my head...

Disabled other UCP modules, changed UCP module orders, selectively disabled & re-enabled UCP/Digest modules. No change. Also tried to give e.g. UCP_DIGESTS_BASICS a different parent (–> Overview), to check if the problem lies only in the parent: Basics then shows up in the UCP/Overview tab, but when clicked, again: Error 500. Clueless...

Where can I find the log file for that error 500? Could that point us at the problem? Or is there some .htaccess file to be edited!? (Sorry, no UNIX nor phpBB expert). Also emptied /cache on server, as well as Browser cache.

Bildschirmfoto 2019-02-02 um 15.59.12.png
Bildschirmfoto 2019-02-02 um 16.00.21.png
Bildschirmfoto 2019-02-02 um 16.02.03.png
Last edited by Peeagepeebeebee on Sun Feb 03, 2019 6:04 pm
Peeagepeebeebee
Registered User
Posts: 45
Joined: Fri Jan 18, 2019 4:34 am
Location: Germany

Re: HTTP error 500 when clicking on Digest tab in UCP

by Peeagepeebeebee » Sat Feb 02, 2019 3:34 pm

Digging towards the cause of the problem... Found the server log files and came across this:

Code: Select all

PHP Fatal error:  Uncaught Twig_Error_Loader: Unable to find template "ucp_digests.html" (looked into: 
/mnt/web221/d3/72/52050872/htdocs/phpBB_04/ext/phpbbservices/digests/styles/all/template, 
/mnt/web221/d3/72/52050872/htdocs/phpBB_04/ext/phpbbservices/digests/styles/all/theme, 
/mnt/web221/d3/72/52050872/htdocs/phpBB_04/styles/quarto_asphalt/template, 
/mnt/web221/d3/72/52050872/htdocs/phpBB_04/styles/quarto_asphalt/theme, 
/mnt/web221/d3/72/52050872/htdocs/phpBB_04/styles/all/template). in 
/mnt/web221/d3/72/52050872/htdocs/phpBB_04/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:232
Looks to me as if it's related to the style theme I'm using. Will test it now with the default theme...

OK... That did the job: No problem calling UCP/Digests with standard style ”prosilver", but HTTP error 500 when switching to style "Quarto Asphalt". Question now is how make Digest work with my custom style? Seem like I have to copy ucp_digests.html somewhere into the custom style... But from where to where exactly? Can you help?

Fixed? Seems so.

So I cloned /ext/phpbbservices/digests/styles/prosilver/template/ucp_digests.html to /ext/phpbbservices/digests/styles/all/template/ucp_digests.html (as the above error log gave hints where it is looking for that file). It now works also with my custom theme, question though is whether that’s the correct/appropriate location for the copy of the file to be. If so, perhaps you should add this change to your distribution.
Last edited by Peeagepeebeebee on Sat Feb 02, 2019 6:05 pm
Peeagepeebeebee
Registered User
Posts: 45
Joined: Fri Jan 18, 2019 4:34 am
Location: Germany

Re: HTTP error 500 when clicking on Digest tab in UCP

by MarkDHamill » Sat Feb 02, 2019 4:11 pm

That is odd. I think all styles inherit from prosilver so it should have found it. Maybe yours doesn't and that's the 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: HTTP error 500 when clicking on Digest tab in UCP

by Peeagepeebeebee » Sat Feb 02, 2019 6:02 pm

Question is whether this hicup exists with other 3rd party styles as well!?

Another minor issue I ran into was the language file: In german we differentiate between German Casual Honorifics (ISO code: de) and German Formal Honorifics (ISO code: de-x-sie). As I'm using solely the latter, I had to rename the german language in /ext/phpbbservices/digests/language from de to de-x-sie. Not a big deal, but just another thing one has to figure out.
Peeagepeebeebee
Registered User
Posts: 45
Joined: Fri Jan 18, 2019 4:34 am
Location: Germany

Re: HTTP error 500 when clicking on Digest tab in UCP

by kasimi » Sat Feb 02, 2019 7:13 pm

The Quarto Asphalt style doesn't inherit from prosilver. All non prosilver-based styles will have this problem.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: HTTP error 500 when clicking on Digest tab in UCP

by MarkDHamill » Sat Feb 02, 2019 8:15 pm

That explains it. I'll look at moving that template into the /styles/all folder in a future release. I thought I had tested that and it didn't work.
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: HTTP error 500 when clicking on Digest tab in UCP

by darakhshan » Fri Feb 24, 2023 1:10 pm

I have the same problem now what can I do?
When you stop learning, stop listening, stop looking and asking questions, always new questions, then it is time to die. Lillian Smith :!:
User avatar
darakhshan
Registered User
Posts: 1032
Joined: Fri Apr 30, 2004 7:18 pm

Re: HTTP error 500 when clicking on Digest tab in UCP

by MarkDHamill » Fri Feb 24, 2023 1:17 pm

Are you using the latest approved version of Digests?

https://www.phpbb.com/customise/db/exte ... extension/
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: HTTP error 500 when clicking on Digest tab in UCP

by darakhshan » Fri Feb 24, 2023 1:18 pm

Yes just now installed 3.3.8
When you stop learning, stop listening, stop looking and asking questions, always new questions, then it is time to die. Lillian Smith :!:
User avatar
darakhshan
Registered User
Posts: 1032
Joined: Fri Apr 30, 2004 7:18 pm

Re: HTTP error 500 when clicking on Digest tab in UCP

by darakhshan » Fri Feb 24, 2023 1:18 pm

digests_3.3.17
When you stop learning, stop listening, stop looking and asking questions, always new questions, then it is time to die. Lillian Smith :!:
User avatar
darakhshan
Registered User
Posts: 1032
Joined: Fri Apr 30, 2004 7:18 pm

Re: HTTP error 500 when clicking on Digest tab in UCP

by MarkDHamill » Fri Feb 24, 2023 1:22 pm

It shouldn't happen if version 3.3.17 is installed correctly.
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