Digests

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

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

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

MarkDHamill wrote:It shouldn't happen if version 3.3.17 is installed correctly.
I have installed it the right way . I am experienced with phpbb , Also have cron job in my cpanel
Is there any other thing that I might not be aware of?
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:35 pm

This problem was previously fixed by moving the template ucp_digests.html from /ext/phpbbservices/digests/styles/prosilver/template to /ext/phpbbservices/digests/styles/all/template. You may need to purge the cache. The problem was the board style did not inherit from prosilver. The directory structure should look similar to the screenshot.
Attachments
Screen Shot 2023-02-24 at 8.30.04 AM.png
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:46 pm

I have two of your mods

Image

None of them have digests/styles/prosilver/template

Image
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:53 pm

It sounds like you have not uploaded the files correctly. Procedures are on the manage extensions page. An extension consists of lots of files and folders and all must be uploaded correctly to the right location. Details here:

https://www.phpbb.com/extensions/installing/
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 2:07 pm

Thanks, I have so many extensions. I know how to install extensions but just to make sure I uninstalled, deleted all data, folder and reinstalled again but the same issue .
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 2:10 pm

Oh by the way
Board version: 3.3.9
PHP 7.4

Perhaps it is not working on this?
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 2:18 pm

Not sure what to recommend. You might want to try this FAQ to make sure you removed everything related to digests in the database then install again.

https://www.phpbb.com/customise/db/exte ... n/faq/2866
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 2:28 pm

This is not a good idea. Not at all. Hopefully people will not play with database specially those who are newbies and do not know what they are doing. They might get into trouble. For those who do please make sure you have a backup and a backup in cpanel.

Dear Mark have you tested this on the version I told you?
It seems you are uisng directadmin , Do you have multiple php version ?
Is there any server requirement or php modules? Mod security issue etc?

It should not be like go to database and delete some thing :)
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 4:00 pm

Of course the extension is well tested by me and others. It's a complex extension so it's not unusual to discover issues. That said it's impossible to test every variation and permutation with every release. I am currently testing it with PHP 8.1. There is no requirement by extension developers to make sure an extension works on every version of PHP that phpBB supports.

If this bothers you simply don't install the extension. But it is approved so it's clearly of sufficient quality for it to be accepted as an approved 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 4:05 pm

Sure , First of all thank you very much for such a useful MOD. It must be excellent . It is ok probably it has compatibility issues with other Mods
I will watch this forum and see if there will be more info. I hate to uninstall it :(
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 lacym350 » Fri Apr 21, 2023 3:35 am

Clean installation, running the most current everything, and just flushed the site cache from ACP. All works normally except having a user visit the UCP to update their digest preferences.

Thanks for the hard work put in to make this mod. I can probably get around the issue by just disabling individual user's access to the UCP tab, but would like to make it self-service if we get much bigger (~40 users now).

Thanks!
-Matt

Code: Select all

[Fri Apr 21 03:15:45.213171 2023] [proxy_fcgi:error] [pid 85156:tid 140520600831744] [client x.x.x.x:52013] AH01071: 

Got error 'PHP message: 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 /opt/bitnami/phpbb/vendor/twig/twig/src/Loader/FilesystemLoader.php:291
	\nStack trace:\n#0 /opt/bitnami/phpbb/vendor/twig/twig/src/Loader/FilesystemLoader.php(211): Twig\\Loader\\FilesystemLoader->validateName()\n
			#1 /opt/bitnami/phpbb/phpbb/template/twig/loader.php(135): Twig\\Loader\\FilesystemLoader->findTemplate()\n
			#2 /opt/bitnami/phpbb/vendor/twig/twig/src/Loader/FilesystemLoader.php(150): phpbb\\template\\twig\\loader->findTemplate()\n
			#3 /opt/bitnami/phpbb/phpbb/template/twig/environment.php(328): Twig\\Loader\\FilesystemLoader->getCacheKey()\n
			#4 /opt/bitnami/phpbb/cache/production/twig/bd/bd223bb2eea6a74244c92cc62d30be5f.php(50): phpbb\\template\\twig\\environment->findTemplate()\n
			#5 /opt/bitnami/phpbb/vendor/twig/twig/src/Template.php(405): __TwigTemplate_29c2d0bfd4ba96bf2e...', 

referer: https://forum.website.org/ucp.php?i=ucp_profile&mode=profile_info
lacym350
Registered User
Posts: 2
Joined: Fri Apr 21, 2023 3:27 am
Name: Matt

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

by MarkDHamill » Fri Apr 21, 2023 12:22 pm

Bear in mind that this post has the solution to the UCP issue.

https://www.phpbb.com/customise/db/exte ... 09#p857826

Installing version 2.2.18 off of my GitHub should solve the problem.
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 lacym350 » Tue Apr 25, 2023 5:49 pm

Much appreciated for the quick response. Upgraded 3.3.17 to 3.3.18 resolved the issue, even though the template file referenced was in the correct ("all") folder. Thanks for creating a great extension.
lacym350
Registered User
Posts: 2
Joined: Fri Apr 21, 2023 3:27 am
Name: Matt