[CDB] Error Pages

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

[CDB] Error Pages

Post by John P » Wed Oct 01, 2014 3:26 pm

Extension Name: Error Pages
Authors: John P

Extension Description: Error Pages enables Custom Error Pages in your forum. Optionally with a explanation. It is also possible to log errors in Maintenance error log so you can look at the problems.

Extension Version: 3.1.0-RC4

Requirements: phpBB 3.1.*@dev

Features:
- Errors in your mother language
- Logging
- Logging of not found files (images etc.)

GitHub repository: https://github.com/ForumHulp/errorpages
Extension Download: https://github.com/ForumHulp/errorpages ... master.zip
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

User avatar
Meis2M
Translator
Posts: 874
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] Error Pages

Post by Meis2M » Wed Oct 01, 2014 4:25 pm

hello...
means 404 or 403 error?

thanks very lovely
phpBB persian international support
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

User avatar
Louis7777
Registered User
Posts: 247
Joined: Sat Apr 21, 2012 9:22 pm

Re: [DEV] Error Pages

Post by Louis7777 » Wed Oct 01, 2014 4:50 pm

John P, I honestly love your extensions man. Thank you!

User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

Re: [DEV] Error Pages

Post by John P » Wed Oct 01, 2014 6:21 pm

Hello Meis2M, yes server error it means.


Louis, thanks.
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [DEV] Error Pages

Post by nicofuma » Wed Oct 01, 2014 10:18 pm

Just a few tips:
1. You should either use

Code: Select all

 tags:
- { name: kernel.event_listener, event: kernel.exception, method: onKernelException }
or

Code: Select all


 kernel.listener.forumhulp_errorpages:
class: forumhulp\errorpages\event\listener
arguments:
- @config
- @user
- @log
tags:
            - { name: event.listener }

-----------------------

use Symfony\Component\HttpKernel\KernelEvents;

class listener implements EventSubscriberInterface
{
	...
	public static function getSubscribedEvents()
	{
		return array (
			KernelEvents::EXCEPTION => array('onKernelException', 2000),
		);
	}
}
But certainly not a mix of the both

2. getSubscribedEvents() returns an array, you don't need to call array_merge()

3. Never call trigger_error() in a controller or an event thrown only when we use the app.php frontend (like all the Symfony events (KernelEvents::*)) because it breaks a lot of things. All these events should alter the response ($event->getResponse() just edit the object returned by this method) and all the controllers have to return a response object.
You can look at the code of the \phpbb\event\kernel_exception_subscriber class if you need an example.
Member of phpBB Development-Team
No Support via PM

User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

Re: [DEV] Error Pages

Post by John P » Thu Oct 02, 2014 5:57 am

Thanks Nicofuma, that was the example I was searching for but could not find.
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Hi

Post by Mauron » Mon Nov 10, 2014 12:42 pm

Hello,
any news about the development of this extension?

User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

Re: [DEV] Error Pages

Post by John P » Mon Nov 10, 2014 12:46 pm

I will send it soon to the extension db.
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

Holger
Registered User
Posts: 1748
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Error Pages

Post by Holger » Mon Nov 10, 2014 2:23 pm

No htaccess needed for this one?

User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

Re: [DEV] Error Pages

Post by John P » Mon Nov 10, 2014 3:36 pm

Why ?
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

Holger
Registered User
Posts: 1748
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Error Pages

Post by Holger » Mon Nov 10, 2014 3:39 pm

I didnt know it is possible without. :D

User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

Re: [DEV] Error Pages

Post by John P » Mon Nov 10, 2014 3:44 pm

OK, the old one needed a .htaccess and now symphony is doing the job
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

Holger
Registered User
Posts: 1748
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Error Pages

Post by Holger » Mon Nov 10, 2014 3:45 pm

Cool! Great ext! Thanks a lot!

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6167
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] Error Pages

Post by Raul [ThE KuKa] » Mon Nov 10, 2014 9:50 pm

"PR" Spanish translation ready John. :wink:
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

Re: [DEV] Error Pages

Post by John P » Tue Nov 11, 2014 7:31 am

Thanks Raul
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

Locked

Return to “Extensions in Development”