Forums / Developer / Avoid the setup wizard affecting the entire installation

Avoid the setup wizard affecting the entire installation

Author Message

Eirik Alfstad Johansen

Friday 19 March 2004 4:45:46 am

Hi guys,

One of the projects I'm working on will be an ezp ASP running one installation, and with separate siteaccesses for each site and accompanying admin interface.

One of the things that needs to be done is therefore to create a setup wizard that can be run for each site, similar to the default setup process for ezp, but hiding some of the options (like db options which will be set by a preceeding script).

I was hoping that I might be able to modify the setup process to suit my needs, and to test, I setup an ezp installation, created a new siteaccess with some default INI settings and CheckValidity set to enabled.

This ran, of course, the setup process for the new siteaccess, but instead of applying the selected settings to simply this one siteaccess, it reset the settings for the entire installation.

So my question is this:

Is there a setting to ensure that a setup process is only applied to the selected siteaccesses instead of the entire installation?

And if not, where in the kernel should I start looking in order to change this manually?

Thanks in advance !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Sunday 02 May 2004 8:44:28 am

Could someone from the ez crew please address this issue?

Thanks in advance !

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Sunday 02 May 2004 3:12:29 pm

I assume you have looked in the files within 'kernel/setup'. I think all the rules used are in there, especially with the subdirectory 'steps'.

paul

--
http://www.visionwt.com

Jan Borsodi

Sunday 02 May 2004 11:20:33 pm

The file kernel/setup/steps/ezstep_create_sites.php does the entire site initialization.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Eirik Alfstad Johansen

Tuesday 11 May 2004 12:27:49 am

Hi Paul and Jan,

Thanks for your answers!

I have browsed through the files in kernel/setup and kernel/setup/steps. So far I've modified the kernel/setup/steps/ezstep_create_sites.php in order to keep the existing available site accesses in settings/override/site.ini.append from being overwritten (BTW: why is this not the default behaviour?).

My next goal is to hide some of the steps in the setup wizard completely, and others partially and instead provide default values. My first step here was to remove some of the values from the $Steps array at the bottom of kernel/setup/steps/ezstep_data.php, but when I ran the setup wizard again after this, all the steps were still performed (I did clear the cache).

Any other place where the setup wizard steps are defined?

Thanks in advance !

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Tuesday 11 May 2004 12:41:37 am

The array $StepTable should be the only place where you need to make changes to remove steps. Have you sprinkled a few print statements around to find out whats happening with the code?

paul

--
http://www.visionwt.com

eZ debug

Timing: Jan 31 2025 01:29:33
Script start
Timing: Jan 31 2025 01:29:33
Module start 'content'
Timing: Jan 31 2025 01:29:33
Module end 'content'
Timing: Jan 31 2025 01:29:34
Script end

Main resources:

Total runtime0.2324 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.1875370.2578
Module start 'content' 0.00780.0150 958.44531,009.6250
Module end 'content' 0.02270.2095 1,968.07033,898.8359
Script end 0.2323  5,866.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00451.9233200.0002
Check MTime0.00130.5804200.0001
Mysql Total
Database connection0.00070.291710.0007
Mysqli_queries0.132657.05181410.0009
Looping result0.00160.69801390.0000
Template Total0.209290.010.2092
Template load0.00070.296910.0007
Template processing0.208589.707410.2085
Override
Cache load0.00050.209210.0005
Sytem overhead
Fetch class attribute can translate value0.00170.741910.0017
XML
Image XML parsing0.00020.093010.0002
General
dbfile0.00632.7168200.0003
String conversion0.00000.002630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs