[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!
Ideas Centre
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: 529
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

[RC] Web Profiler Extension

Post by nicofuma » Sun Jun 29, 2014 1:30 am

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: 529
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [BETA] Web Profiler Extension

Post by nicofuma » Tue Jul 08, 2014 5:29 pm

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 » Tue Jul 08, 2014 5:29 pm

Awesome ;).

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20440
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [BETA] Web Profiler Extension

Post by RMcGirr83 » Tue Jul 08, 2014 5:50 pm

Go to "ACP" > "Customise" > "Extensions" and enable the "phpBB 3.1 NV Newspage Extension" extension.
:?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

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

Re: [BETA] Web Profiler Extension

Post by nicofuma » Tue Jul 08, 2014 6:05 pm

oups xD
Member of phpBB Development-Team
No Support via PM

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

Re: [RC] Web Profiler Extension

Post by nicofuma » Thu Aug 14, 2014 9:23 am

RC1 has been released.
This extension is also available on packagist now.
Member of phpBB Development-Team
No Support via PM

User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 4484
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: [BETA] Web Profiler Extension

Post by VSE » Sat Sep 06, 2014 4:37 am

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
Official phpBB Extensions My Extensions & MODs
Please do not PM me for support.
Dictated but not read.

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

Re: [RC] Web Profiler Extension

Post by nicofuma » Sun Sep 07, 2014 12:48 am

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
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 4484
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: [RC] Web Profiler Extension

Post by VSE » Fri Sep 12, 2014 5:13 am

When you log out of the board, you get a blank screen, if this extension is still enabled. No PHP errors are logged :cry:
Official phpBB Extensions My Extensions & MODs
Please do not PM me for support.
Dictated but not read.

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

Re: [RC] Web Profiler Extension

Post by nicofuma » Fri Sep 12, 2014 10:03 am

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: 529
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma » Fri Sep 12, 2014 10:12 am

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: 529
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma » Tue Sep 30, 2014 2:53 pm

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 » Mon Oct 13, 2014 6:52 pm

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: 529
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: [RC] Web Profiler Extension

Post by nicofuma » Mon Oct 13, 2014 8:09 pm

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 » Mon Oct 13, 2014 8:22 pm

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.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: deanmoke, JohnnyBigSpuds, Mathieu M., SalazarAG and 13 guests

cron