OK, I’m down to one last major bug that for the life of me I can’t figure out. It involves the installer failing to install the demo data because it’s getting lost in the POST, somehow.
After you check the "install demo site data" the post values in the session are as follows. This comes as a result of the case statement (6) around line 660 of the install/index.php file. The actual function that builds this page is function buildSummaryScreen() around line 370 of the same file:
The value of $_POST['installmode'] is 'upd'
The value of $_POST['databasename'] is 'modx'
The value of $_POST['tableprefix'] is 'modx_'
The value of $_POST['databasehost'] is 'localhost'
The value of $_POST['databaseloginname'] is ''
The value of $_POST['databaseloginpassword'] is ''
The value of $_POST['testbox'] is ''
The value of $_POST['cmsadmin'] is 'admin'
The value of $_POST['cmspassword'] is ''
The value of $_POST['cmspasswordconfirm'] is ''
The value of $_POST['installdata'] is '1'
The value of $_POST['chunk'] is 'Array'
The value of $_POST['module'] is 'Array'
The value of $_POST['plugin'] is 'Array'
The value of $_POST['snippet'] is 'Array'
The value of $_POST['chkagree'] is '1'
The value of $_POST['syscheck'] is 'on'
The value of $_SESSION['session_test'] is '1'
Please note that installdata is set to ’1’ as it should be. However, after pressing the install now button, and going to the next page using case 7, using the actual POST and working through the logic found near line 88 of install/index.php:
The value of $_POST['installmode'] is 'upd'
The value of $_POST['databasename'] is 'modx'
The value of $_POST['tableprefix'] is 'modx_'
The value of $_POST['databasehost'] is 'localhost'
The value of $_POST['databaseloginname'] is ''
The value of $_POST['databaseloginpassword'] is ''
The value of $_POST['testbox'] is ''
The value of $_POST['cmsadmin'] is 'admin'
The value of $_POST['cmspassword'] is ''
The value of $_POST['cmspasswordconfirm'] is ''
The value of $_POST['chunk'] is 'Array'
The value of $_POST['module'] is 'Array'
The value of $_POST['plugin'] is 'Array'
The value of $_POST['snippet'] is 'Array'
The value of $_POST['chkagree'] is '1'
The value of $_POST['syscheck'] is ''
The value of $_SESSION['session_test'] is '1'
Setup will now attempt to setup the database:
So, as you can see, the $_POST value for installdata simply disappears!!! It’s the only _POST value which does so, and it’s also the only POST variable that I don’t readily see a specific JS function to set it to the session. Everything I’ve tried to do has failed, given that I’m really not a coder ... The JS-setting functions occur near the bottom around line 850 or in the case/swich around line 690.
FYI, the installdata post value is one half of the key stuff that tells the instprocess.php file near line 125 to install the demo data. If it’s not set, then it just skips that part.
Any help would be TREMENDOUSLY appreciated... Thanks!