PDA

View Full Version : Error loading settings. Contact admin.


kumar.tusar
01-07-2010, 05:48 AM
Hi,

I installed the package on Godaddy hosting. The installation went on well and I received the success screen. It has a link to the admin page, but when I click on it, I receive a message:

Error loading settings. Contact admin.

Please follow the link below to the page:

http://careazy.biz/scp/admin.php

Could anyone please help me out of this....I did everything that was asked for....

Kelli
01-07-2010, 03:48 PM
Turn on error reporting and let us know what kind of errors you're getting.
In main.inc.php find:

#Don't display errors
ini_set('display_errors',0);
ini_set('display_startup_errors',0);


Change the 0s to 1s.

PRedmond
01-07-2010, 06:57 PM
The problem seems to be that the system cannot find either ostconfig.php or include/settings.php

Check that these files are there. If you have installed osTicket and seen the success message, then it should have created include/settings.php for you. Replacing this file is not as simple as re-uploading it, as it contains settings for the server running the installation, such as database name, password, etc.

I would suggest trying to re-install, and see how that goes.


From main.inc.php:

#load config info
if(file_exists(ROOT_DIR.'ostconfig.php')) //Old installs prior to v 1.6 RC5
require('ostconfig.php');
elseif(file_exists(INCLUDE_DIR.'settings.php')) //New config file.. v 1.6 RC5 +
require(INCLUDE_DIR.'settings.php');
else
die('<b>Error loading settings. Contact admin.</b>');

kumar.tusar
01-08-2010, 03:21 AM
The Problem was with the permission to the settings.php file. I was trying it to do it through filezilla.

Godaddy's default permissions for write is governed by the parent directories properties. It has to be changed by log in to the hosting account and using the file manager.

And it works.....Thanks a ton for all the ideas and help....

ASInspect
03-16-2010, 02:44 PM
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::Client($email,$id);
$this->session= new UserSession($email);


(Line 107 is the top-most "}" and the rest is for information on placement).

tweakservers
03-17-2010, 11:34 AM
I am having the exact issue installing this on a Windows 2003 box. I have manually copied the settings.php file over but it still showing the same message.

tberneman
02-01-2012, 10:56 AM
I was getting the same error on my Windows Server 2008 box running IIS7 and v1.6.0 of osTicket. After some major diagnostics and testing I changed line #53 in main.inc.php in the main folder;

OLD: define('INCLUDE_DIR',ROOT_DIR.'include/');
NEW: define('INCLUDE_DIR',ROOT_PATH.'include/');

This changes the INCLUDE_DIR path from "/include/" to "./include/". This worked for me. Hopefully nothing will break in the future!

Hope this helps someone else.

Additional Info:

I ended up putting the full path in to make it work. ie:

define('INCLUDE_DIR','C:/inetpub/wwwroot/helpdesk/include/');

spike zinglo
02-23-2012, 09:46 AM
i instald the niewe osticket on new server bevore on other server and older osticket no problems but now ( Error loading settings. Contact admin. )
i look here on the form for help but 70% i dont understand and 30 % dont work
is tehre one how can sent me teh missing files or the fixet files
i aslo sent ticket to osticket but no reonse :(

i hope oen can help my

http://support.spike-source.nl/

greetings spike

ntozier
02-23-2012, 10:44 AM
Presuming you downloaded the distribution file from this site you have the most current files so what exactly do you want us to send to you? If you installed it via some instant install at GoDaddy then I recommend that you click on the Downloads link above and install it manually.

IF you get the same issues:

Turn on error reporting and look for a solution on the forums for the error that is being generated.

If you have a gui or sql cli access you should probably look and see if the ost_config table has anything in it.