[RC] Web Profiler Extension

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!
Scam Warning
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)
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

[RC] Web Profiler Extension

Post by nicofuma »

This is a development tool and MUST NOT be used in a production environment.
It also shouldn't be installed on a board accessible by everyone on the internet.


Extension Name: Web Profiler Extension
Author: Nicofuma

Extension Description:: This extension is a port of the WebProfilerBundle written by Fabien Potencier for Symfony.

It provides to the extension's developers a tool to profile and debug their extensions.

Extension Version:: 1.0.0-b1

Requirements: 3.1.0-RC2

Features:
  • Enable the Symfony Profiler with some data collectors
    • Config
    • Event
    • Memory
    • Request
    • Router
    • Time
  • Debug Toolbar
Screenshots: Image

Demo URL: http://phpbb3-1.nicofuma.fr/upstream/index.php

Extension Download:
https://github.com/Nicofuma/phpbb-ext-webprofiler (the files have to be put into ext/nicofuma/webprofiler/)

Updates: 8 July 2014 - All the required PR have been merged, switching to beta.
7 July 2014 - All the pages can be profiled.
Member of phpBB Development-Team
No Support via PM
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [BETA] Web Profiler Extension

Post by nicofuma »

First Beta released, by the way the minimum requirement is set to 3.1.0-RC2-dev
Member of phpBB Development-Team
No Support via PM
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [BETA] Web Profiler Extension

Post by PayBas »

Awesome ;).
User avatar
RMcGirr83
Former Team Member
Posts: 22061
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [BETA] Web Profiler Extension

Post by RMcGirr83 »

Go to "ACP" > "Customise" > "Extensions" and enable the "phpBB 3.1 NV Newspage Extension" extension.
:?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [BETA] Web Profiler Extension

Post by nicofuma »

oups xD
Member of phpBB Development-Team
No Support via PM
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma »

RC1 has been released.
This extension is also available on packagist now.
Member of phpBB Development-Team
No Support via PM
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5982
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [BETA] Web Profiler Extension

Post by MattF »

Been seeing this error:
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class Symfony\Component\Stopwatch\Stopwatch does not exist' in /phpBB/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php:957
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma »

It's a phpBB issue fixed by https://github.com/phpbb/phpbb/pull/2928

Btw, the RC2 is available.
Member of phpBB Development-Team
No Support via PM
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5982
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [RC] Web Profiler Extension

Post by MattF »

When you log out of the board, you get a blank screen, if this extension is still enabled. No PHP errors are logged :cry:
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma »

It's just an issue with the redirection I think. I'll have a look.
Member of phpBB Development-Team
No Support via PM
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma »

The last development version should fix the issue.
Member of phpBB Development-Team
No Support via PM
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma »

Version 1.1 released with the support of the Ajax calls (http://symfony.com/blog/new-in-symfony- ... ug-toolbar)
Member of phpBB Development-Team
No Support via PM
roufneck
Registered User
Posts: 11
Joined: Tue Feb 17, 2009 9:00 am

Re: [RC] Web Profiler Extension

Post by roufneck »

As requested...

For some reason the web profiler doesn't load. I'm getting this error:
Image

Also in the console it tells me it can't find the resource:

Code: Select all

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
Apache log:

Code: Select all

[Mon Oct 13 20:44:20.364639 2014] [core:error] [pid 1580:tid 2332] [client 192.168.1.2:56170] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://example.com/viewforum.php?f=48&sid=eefc8fe5fa78c50e9e5e0e73c4911e04
Nothing in the PHP log, so I guess it's an apache error. I'm using Apache 2.4.

If I add this line the error is gone, the profiler bar is loaded and I can access the _profiler url:

Code: Select all

RewriteEngine on
RewriteBase /
I've reproduced the error with all other extensions disabled and the cache cleared.
Edit: extension version 1.1.0 (current version from git)
nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma »

you have the url rewriting enabled in your .htaccess and in the acp?
Member of phpBB Development-Team
No Support via PM
roufneck
Registered User
Posts: 11
Joined: Tue Feb 17, 2009 9:00 am

Re: [RC] Web Profiler Extension

Post by roufneck »

Yes, URL rewriting is enabled in the ACP and I'm using the standard .htaccess file.

Like I said, for it to work I only need to add "RewriteBase /" and everything is working as expecting. But if I'm the only one with this error, it might be a bad/missing apache configuration. I'll dig into this when I've got more time. I'll also try my staging server and see what it does there.

Return to “Extensions in Development”