[SOLVED]Urgent: Cannot connect to OTRS (Died at Defaults.pm)

Moderator: crythias

Locked
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

[SOLVED]Urgent: Cannot connect to OTRS (Died at Defaults.pm)

Post by HervE »

Hi,

I've got the following error in my Internet browser whatever I do:

Software error:
Died at C:/PROGRA~2/OTRS/OTRS//Kernel/Config/Defaults.pm line 2387.


Let me tell how I came to this, if it can help to find a solution.

I noticed that Tanzania was not in the list of CustomerCompanyCountry (don't know why, by the way), so I added it in Kernel\Config\Defaults.pm in my test environment. It worked.
Then I saw Defaults.pm must not be edited, so I set it as before, and copied the whole CustomerCompany block into Kernel\Config.pm. It worked.

Then I copied both files into my production environment. It did not work, and now OTRS does not work at all, giving me the error above.
I tried to put Config.pm back as before. Still the same.
I don't have the old original Defaults.pm of the production environment. Is this file dependant on the environment?

Please help! I feel like I have played with fire somewhere, and don't know how to get out of this deadlock :(

Regards,
HervE
Last edited by HervE on 18 Jan 2011, 18:20, edited 2 times in total.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Urgent: Cannot connect to OTRS anymore

Post by crythias »

http://source.otrs.org/viewvc.cgi/otrs/ ... m?view=log (Choose your version).

It's likely you have missed a ; or something.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Urgent: Cannot connect to OTRS anymore

Post by HervE »

crythias wrote:http://source.otrs.org/viewvc.cgi/otrs/ ... m?view=log (Choose your version).

It's likely you have missed a ; or something.
Unfortunately not.

I followed the link and chose Revision 1.323.2.2 (which is the one I had), and the files are strictly the same.
I got the same error then.

Note that I've got this error even if I remove the file from Config directory!
I tried to empty IE cache, to restart service... still the same.

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Urgent: Cannot connect to OTRS anymore

Post by crythias »

This is what dies:

Code: Select all

    else {
2386	        print STDERR "ERROR: $Self->{Home}/RELEASE does not exist! This file is needed by central system parts of OTRS, the system will not work without this file.\n";
2387	        die;
2388	    }
So http://source.otrs.org/viewvc.cgi/otrs/ ... =rel-2_4_9 (?)

If not that, then somehow {Home} in Config.pm is bad...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Urgent: Cannot connect to OTRS anymore

Post by HervE »

This my RELEASE file:

Code: Select all

PRODUCT = OTRS
VERSION = 2.4.9
BUILDDATE = Wed Oct  6 15:28:13 CEST 2010
BUILDHOST = lusen.otrs.org
crythias wrote:If not that, then somehow {Home} in Config.pm is bad...
And here is {Home} definition in Config.pm:

Code: Select all

$Self->{Home} = 'C:/PROGRA~2/OTRS/OTRS';
which is good.

Any other idea?

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Urgent: Cannot connect to OTRS anymore (Died at Defaults

Post by HervE »

I restarted all services (MySQL, CRON and Apache) and it works again.

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Locked