phpBB 3.2.0-b2 released

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di »

Nicofuma wrote:@
Sorry to bother you but I am very interested to have an insight/school lesson from an expert like you about these things. https://area51.phpbb.com/phpBB/viewtopi ... 06#p290106

TIA for your time if any. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

Nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 299
Joined: Sun Apr 13, 2014 1:40 am
Location: Paris

Re: phpBB 3.2.0-b2 released

Post by Nicofuma »

The environment is a way to define different services and settings for the same board. Basically it allow us to have the installer using the same code but being completely dissociated and it also allow us having an env optimized for production and one optimized for development (slower but with debug tools and live reload of the cache).
Member of the phpBB Development-Team
No Support via PM

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di »

Nicofuma wrote: Tue Apr 12, 2016 4:23 am The environment is a way to define different services and settings for the same board. Basically it allow us to have the installer using the same code but being completely dissociated and it also allow us having an env optimized for production and one optimized for development (slower but with debug tools and live reload of the cache).
I see, thanks.

How us actually have to do to create the configs for these different environments?
I mean, I am speaking as an end-user/coder.

As far as I have understood that's something related to your own (phpBB Devs) environment but I am seeing this also into my Official download/installation.

Ofcourse I can be wrong (I am used to) that's why I am asking. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

Nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 299
Joined: Sun Apr 13, 2014 1:40 am
Location: Paris

Re: phpBB 3.2.0-b2 released

Post by Nicofuma »

The constant is just how you define the environment to use. Just like the DEBUG constant used to enable a few debug features.
Member of the phpBB Development-Team
No Support via PM

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di »

being my config.php this way

Code: Select all

@define('PHPBB_INSTALLED', true);
@define('PHPBB_DISPLAY_LOAD_TIME', true);
//@define('PHPBB_ENVIRONMENT', 'production');
@define('DEBUG_CONTAINER', true);
or this one

Code: Select all

@define('PHPBB_INSTALLED', true);
@define('PHPBB_DISPLAY_LOAD_TIME', true);
@define('PHPBB_ENVIRONMENT', 'production');
@define('DEBUG_CONTAINER', true);
nothing appears to change, I do not have the SQL explain in place.. what's wrong then? Is that a possible bug?
Link to my 3.2 board: http://3di.space/32/index.php ..If you need admin access I will give it to you, no probs.


In 3.1.x I am used to have..

Code: Select all

@define('PHPBB_INSTALLED', true);
@define('DEBUG', true);
@define('DEBUG_CONTAINER', true);
@define('PHPBB_DISPLAY_LOAD_TIME', true);
Last edited by 3Di on Wed Apr 13, 2016 7:26 am, edited 2 times in total.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

CHItA
Development Team
Development Team
Posts: 169
Joined: Thu Mar 12, 2015 1:43 pm
Location: Budapest, Hungary

Re: phpBB 3.2.0-b2 released

Post by CHItA »

Try

Code: Select all

@define('PHPBB_ENVIRONMENT', 'development');

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di »

Ok, trying now... and reporting.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di »

CHItA wrote: Wed Apr 13, 2016 7:23 am Try

Code: Select all

@define('PHPBB_ENVIRONMENT', 'development');
rhea-config-1.png
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
david63
Registered User
Posts: 355
Joined: Mon Feb 07, 2005 7:23 am

Re: phpBB 3.2.0-b2 released

Post by david63 »

CHItA wrote: Wed Apr 13, 2016 7:23 am Try

Code: Select all

@define('PHPBB_ENVIRONMENT', 'development');
That will only work if you have a "development" config in place otherwise it will give an error.

What I think @3Di is asking is how to create a development, or any other, configuration.

I think that it needs to be born in mind that we are not all experts in the use and configuration of Symfony and there are many occasions where we need "leading by the hand" and having things spelt out in words of one syllable rather than just one line comments that assume we know the inner workings of Symfony.

Edit: 3Di found the error
David
Remember: You only know what you know -
and you do not know what you do not know!

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di »

Especially because us (the coders for a pass-time or passion) we have differents lifes, in my case I am a Chef-cook of Cuisines. ;)

Helping out us understanding more and better means help the phpBB to grow up better, IMHO.

Thanks. ;)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

Post Reply