SQL Explain, how to disabled? PhpBB 3.1.14

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
KenTSA
Registered User
Posts: 112
Joined: Thu Nov 27, 2014 7:11 pm
Location: România
Name: Oprea Cristian

SQL Explain, how to disabled? PhpBB 3.1.14

Post by KenTSA »

Hi. For a long time i have in footer of forum this text

Time: 0.275s | Peak Memory Usage: 14.32 MiB | GZIP: Off | Queries: 251 | SQL Explain

I want to remove it because anyone can acces SQL Explain and there is informations from databases... please help me..
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: SQL Explain, how to disabled? PhpBB 3.1.14

Post by Sniper_E »

In the root directory, in the bottom of your config.php you will see these lines.

Code: Select all

@define('PHPBB_INSTALLED', true);
@define('PHPBB_ENVIRONMENT', 'production');
@define('DEBUG_CONTAINER', true);
You can comment out that last line like this. // @define('DEBUG_CONTAINER', true);

That file is read only so you will have to change the permission on it to edit it with Notepad++
After editing it then make it read only again.
Last edited by Sniper_E on Thu Mar 13, 2025 11:19 pm, edited 1 time in total.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
KenTSA
Registered User
Posts: 112
Joined: Thu Nov 27, 2014 7:11 pm
Location: România
Name: Oprea Cristian

Re: SQL Explain, how to disabled? PhpBB 3.1.14

Post by KenTSA »

Sniper_E wrote: Thu Mar 13, 2025 11:01 pm In the root directory, in the bottom of your config.php you will see these lines.

Code: Select all

@define('PHPBB_INSTALLED', true);
@define('PHPBB_ENVIRONMENT', 'production');
@define('DEBUG_CONTAINER', true);
You can comment out that last line like this. // @define('DEBUG_CONTAINER', true);

That file is read only so you will have to change the permission on it to edit it with Editor++
After editing it then make it read only again.
Thanks for the information, I checked this for the first time, and my debug line is commented out.

Code: Select all

@define('PHPBB_INSTALLED', true);
@define('PHPBB_ENVIRONMENT', 'production');
// @define('DEBUG_CONTAINER', true);
**Edit*

I deleted the line of code with debug_output from the theme's overal_footer.html and it no longer appears for users and visitors, I only find it in the ACP, the problem is that if someone knows how to access SQL Explain from the forum link, they can see the database name and that confuses me a lot and gives me a headache.
User avatar
SpIdErPiGgY
Registered User
Posts: 346
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: SQL Explain, how to disabled? PhpBB 3.1.14

Post by SpIdErPiGgY »

Not everyone can see the Sql Explain. Only the load time.
Sql explain is only visible to founders OR admins that can see sql info in ACP
Image

Return to “[3.3.x] Support Forum”