Old 01-30-2012, 03:20 AM   #1 (permalink)
Untangler
 
Join Date: Nov 2008
Posts: 93
fear_angel is on a distinguished road
Default Internal Server Error - Language Problem

Hello all.
I have a problem that never happened to me but I feel that my partner went to edit the language file and put the language with pre-defined and now when I enter the portal gives the error: Internal Server Error

Someone can help me? Perhaps the shell .. liguagem know how to change to English for example?

thank you
Here is the code the error log

Code:
Mon Jan 30 11:10:55 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 425, in publish_object\n    return publish_object(req,util.apply_fs_data(object, req.form, req=req))
[Mon Jan 30 11:10:55 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/util.py", line 554, in apply_fs_data\n    return object(**args)
[Mon Jan 30 11:10:55 2012] [error] [client 10.68.88.6]   File "/usr/share/untangle/mod_python/auth/index.py", line 57, in login\n    title = cgi.escape(_("%s Administrator Login") % company_name)
[Mon Jan 30 11:10:55 2012] [error] [client 10.68.88.6] TypeError: not all arguments converted during string formatting
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] mod_python (pid=32681, interpreter='localhost', phase='PythonHandler', handler='mod_python.publisher'): Application error
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] ServerName: 'localhost'
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] DocumentRoot: '/var/www/'
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] URI: '/auth/login'
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] Location: None
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] Directory: '/usr/share/untangle/mod_python/auth/'
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] Filename: '/usr/share/untangle/mod_python/auth/index.py'
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] PathInfo: ''
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] Traceback (most recent call last):
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target\n    result = _execute_target(config, req, object, arg)
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target\n    result = object(arg)
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 213, in handler\n    published = publish_object(req, object)
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 425, in publish_object\n    return publish_object(req,util.apply_fs_data(object, req.form, req=req))
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6]   File "/usr/lib/python2.5/site-packages/mod_python/util.py", line 554, in apply_fs_data\n    return object(**args)
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6]   File "/usr/share/untangle/mod_python/auth/index.py", line 57, in login\n    title = cgi.escape(_("%s Administrator Login") % company_name)
[Mon Jan 30 11:11:18 2012] [error] [client 10.68.88.6] TypeError: not all arguments converted during string formatting
[Mon Jan 30 11:15:01 2012] [notice] [client 127.0.0.1] DbmSession: registered database cleanup.
fear_angel is offline  
Old 01-30-2012, 07:08 AM   #2 (permalink)
Untangle Ninja
 
dwasserman's Avatar
 
Join Date: Jun 2008
Location: Argentina
URLs submitted: 57
Posts: 3,634
dwasserman is on a distinguished road
Default

The path is: config/system/regional settings, but I cant certify the regional settings are the culprit, wait one answer from a better untangle user or staff.
__________________
The world is divided into 10 kinds of people, who know binary and those not
dwasserman is offline  
Old 01-30-2012, 09:05 AM   #3 (permalink)
Untangler
 
Join Date: Nov 2008
Posts: 93
fear_angel is on a distinguished road
Default

I've tried changing the original file to a backup :

/usr/share/untangle/lang/community/pt/untangle-apache2-config.po

but i have the same error ...
fear_angel is offline  
Old 01-30-2012, 02:51 PM   #4 (permalink)
Untangle Ninja
 
dwasserman's Avatar
 
Join Date: Jun 2008
Location: Argentina
URLs submitted: 57
Posts: 3,634
dwasserman is on a distinguished road
Default

I dont know, I never change anything from the CLI myself. Ever are patches from untangle wiki or hacks section. I learn this by the hard way in a production system
__________________
The world is divided into 10 kinds of people, who know binary and those not

Last edited by dwasserman; 01-30-2012 at 02:55 PM..
dwasserman is offline  
Old 01-30-2012, 03:23 PM   #5 (permalink)
Untangler
 
jcoffin's Avatar
 
Join Date: Aug 2008
Location: Sunnyvale, CA
URLs submitted: 1
Posts: 1,783
jcoffin is on a distinguished road
Default

Quote:
Originally Posted by fear_angel View Post
I've tried changing the original file to a backup :

/usr/share/untangle/lang/community/pt/untangle-apache2-config.po

but i have the same error ...
There are several po files. Have you tried switch the language to English? I would suggest downloading a new PO zip file from http://pootle.untangle.com to replace the entire existing language.
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
jcoffin is offline  
Old 01-31-2012, 01:40 AM   #6 (permalink)
Untangler
 
Join Date: Nov 2008
Posts: 93
fear_angel is on a distinguished road
Default

I think the problem is in the Portuguese language.
I like to switch to English, but do not know how to do because I don't have web access.
Do you know what file to change to make the English language in shell?

thank's
fear_angel is offline  
Old 02-01-2012, 02:58 AM   #7 (permalink)
Untangler
 
Join Date: Nov 2008
Posts: 93
fear_angel is on a distinguished road
Default

Problem solved.

I used a computer that had in cache browser panel login untangle without error went and changed the language to English and was working.

Thanks to everyone for the tips.
It can now tell me how it could change the liguagem the shell?
thank you
fear_angel is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:06 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2