Error loading settings. Contact admin.
I'm having this exact same issue.
I've installed and configured PHP, as directed by another post.
I've installed and configured MySQL, to the best of my abilities.
I slogged through a series of trial and error and finally got the setup screen - and after setup, I clicked the Admin link and Error loading settings. Contact admin. ...
Going by this thread, I checked file permissions and locations, and with the "Stable" version, there's a couple more lines of code in the file:
main.inc.php
#load config info
$configfile='';
if(file_exists(ROOT_DIR.'ostconfig.php')) //Old installs prior to v 1.6 RC5
$configfile=ROOT_DIR.'ostconfig.php';
elseif(file_exists(INCLUDE_DIR.'settings.php')) //OLD config file.. v 1.6 RC5
$configfile=INCLUDE_DIR.'settings.php';
elseif(file_exists(INCLUDE_DIR.'ost-config.php')) //NEW config file v 1.6 stable ++
$configfile=INCLUDE_DIR.'ost-config.php';
elseif(file_exists(ROOT_DIR.'include/'))
header('Location: '.ROOT_PATH.'setup/');
if(!$configfile || !file_exists($configfile)) die('<b>Error loading settings. Contact admin.</b>');
I've pretty much given up fighting it and will likely leave the installation alone unless anyone knows another reason this might not work.
- I passed configuration; it set up the MySQL database and added the configuration lines to the ost-config.php file as expected.
- I deleted the setup folder
- I ensured the ost-config.php file is present in the Include directory.
- File permissions for all users set to "Read" and "Read & Execute" but not "Write" or above for this file.
- Restarted IIS over half a dozen times
- Tried removing the error coding section
- Tried enabling error messages (no additional descriptive text presented in window)
- Tried moving the file in or out of the folder to see if anything different happened.
- Reinstalled osTicket twice (not PHP or MySQL - yet)
- Windows Server 2003, IIS 6, FastCGI w/ PHP 5.2, MySQL 5.1
With a new day, new things are tried, and new errors are found. Since the program was crashing trying to validate the config file I knew I had in place and providing me a near-useless error message, I removed the section of code and replaced it with:
#load config info
$configfile='include/ost-config.php';
Once I did that, I got a whole new error message out of it that almost makes more sense, but I still can't fix it:
error:
PHP Warning: include_once(/include/class.client.php): failed to open stream: No such file or directory in C:\Inetpub\intranet\crms\include\class.usersession.php on line 18 PHP Warning: include_once(): Failed opening '/include/class.client.php' for inclusion (include_path='./;/include/;/include/pear/') in C:\Inetpub\intranet\crms\include\class.usersession.php on line 18 PHP Warning: include_once(/include/class.staff.php): failed to open stream: No such file or directory in C:\Inetpub\intranet\crms\include\class.usersession.php on line 19 PHP Warning: include_once(): Failed opening '/include/class.staff.php' for inclusion (include_path='./;/include/;/include/pear/') in C:\Inetpub\intranet\crms\include\class.usersession.php on line 19 PHP Fatal error: Class 'Client' not found in C:\Inetpub\intranet\crms\include\class.usersession.php on line 107
and the "Fatal Error" at the end comes down to line 107 in class.usersession.php:
}
class ClientSession extends Client {
var $session;
function ClientSession($email,$id){
parent:($email,$id);
$this->session= new UserSession($email);
(Line 107 is the top-most "}" and the rest is for information on placement).