When I pull up the MIDAS home page for the first time after a fresh install on a Ubuntu system, I start the install process by entering the sql database information.
Continuing from there, I encounter the following error:
Unable to find sql file
In /var/www/midas/html/core/controllers/InstallController.php, line: 117
At 18:47:46 2015-05-18
I modified the exception thrown to print the name of the sql file it was trying to locate:
/var/www/midas/html/core/database//0.sq
The path is correct down to the database directory, but not after. So, looking at the code,
$sqlFile = BASE_PATH.'/core/database/'.$type.'/'.$sqlFile.'.sql'
it appears that the $type and $sqlFile variables are not being set. The $type variable should be arriving from the html dropdown list on the install page. The $sqlFile variable is set by a call to the getNewVersion method of $upgradeComponent. In my case, I installed version 3.4.0.
The file core/database/mysql/3.4.0.sql does exist.
So the problem seems to be the construction of the filename by the InstallController.php file.
The only point of divergence from the installation instructions I've introduced is that I'm forcing MIDAS to run under SSL. Do you think I'm missing some php.ini setting that's preventing HTML form entries from transmitting over SSL?
Thanks,
John.