phpBB 3.2.0-b2 released

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.2/Rhea followed by 3.3.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.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: 694
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di » Mon Apr 11, 2016 9:31 pm

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. :)
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

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

Re: phpBB 3.2.0-b2 released

Post by Nicofuma » 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).
Member of the phpBB Development-Team
No Support via PM

User avatar
3Di
Registered User
Posts: 694
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di » Tue Apr 12, 2016 9:33 pm

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. :)
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

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

Re: phpBB 3.2.0-b2 released

Post by Nicofuma » Wed Apr 13, 2016 5:58 am

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: 694
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di » Wed Apr 13, 2016 7:21 am

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.
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

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

Re: phpBB 3.2.0-b2 released

Post by CHItA » Wed Apr 13, 2016 7:23 am

Try

Code: Select all

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

User avatar
3Di
Registered User
Posts: 694
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di » Wed Apr 13, 2016 7:28 am

Ok, trying now... and reporting.
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

User avatar
3Di
Registered User
Posts: 694
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di » Wed Apr 13, 2016 7:33 am

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

Code: Select all

@define('PHPBB_ENVIRONMENT', 'development');
rhea-config-1.png
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

User avatar
david63 Online
Registered User
Posts: 215
Joined: Mon Feb 07, 2005 7:23 am
Location: Lancashire, UK

Re: phpBB 3.2.0-b2 released

Post by david63 » Wed Apr 13, 2016 7:38 am

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: 694
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: phpBB 3.2.0-b2 released

Post by 3Di » Wed Apr 13, 2016 7:47 am

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. ;)
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

Post Reply