Use of undefined constant SQ_CONF_TIMEZONE

When trying to run install/step02.php on an upgrade from 3.18.1 to 3.18.2 I get the following error at the beginning

    Notice: Use of undefined constant SQ_CONF_TIMEZONE - assumed 'SQ_CONF_TIMEZONE' in /Library/WebServer/mysource_matrix/core/include/init.inc on line 69
    
    Notice: date_default_timezone_set(): Timezone ID 'SQ_CONF_TIMEZONE' is invalid in /Library/WebServer/mysource_matrix/core/include/init.inc on line 69


after a lot of define statements, it then drops out with

    +---------------------------------------------------------------------------------------------------------------------------+
    | PHP Warning																											   |
    |---------------------------------------------------------------------------------------------------------------------------|
    | DAL::require_once([SYSTEM_ROOT]/core/lib/DAL/Oven/core/coreQueries.inc): failed to open stream: No such file or directory |
    +---------------------------------------------------------------------------------------------------------------------------+

Likely related to bug report #3055.


cheers, martin

[quote]Likely related to bug report #3055.


cheers, martin[/quote]



Interestingly, rerunning the step02 process proceeded with no errors this time and the rest of the upgrade seemed to have worked ok.

I don't know about the latter error, but with the former one about SQ_CONF_TIMEZONE, it appears that when you run step_02 it tries to set the time zone - in init.inc - before it regenerates your main.inc file (which should add the constant), and therefore, that constant is not there yet.


This would not occur with a fresh install (as it would be created during step_01), just an upgrade, it seems. It shouldn't be harmful after that particular running of step_02.