Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

#11042 closed defect (duplicate)

AttributeError: NullTranslationsBabel instance has no attribute 'isactive'

Reported by: admin Owned by:
Priority: normal Milestone:
Component: general Version: 1.0
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /browser, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'path': '/'}

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17

System Information

Trac 1.0
Babel 1.0dev-r661 (translations unavailable)
Docutils 0.8.1
Genshi 0.6 (with speedups)
GIT 1.7.10.4
GIT 1.7.10.4
mod_wsgi 3.3 (WSGIProcessGroup WSGIApplicationGroup 127.0.0.1|/trac)
MySQL server: "5.5.28-1", client: "5.5.28", thread-safe: 1
MySQLdb 1.2.3
Pygments 1.5
Python 2.7.3rc2 (default, Apr 22 2012, 22:50:19)
[GCC 4.6.3]
pytz 2012c
RPC 1.1.2-r12546
setuptools 0.6
Subversion 1.6.17 (r1128011)
jQuery 1.7.2

Enabled Plugins

TracExtendedXmlRpc 0.1
TracGit 0.12.0.5dev
TracXMLRPC 1.1.2-r12546

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/main.py", line 179, in dispatch
    chosen_handler)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/main.py", line 325, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/versioncontrol/api.py", line 340, in pre_process_request
    if is_default(reponame):
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/versioncontrol/api.py", line 34, in is_default
    return not reponame or reponame in ('(default)', _('(default)'))
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/util/translation.py", line 195, in gettext
    if not self.isactive:
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/util/translation.py", line 190, in __getattr__
    return getattr(self.active, name)
AttributeError: NullTranslationsBabel instance has no attribute 'isactive'

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 11 years ago

Resolution: duplicate
Status: newclosed

Could you please apply and test the one liner fix proposed in ticket:10903#comment:5, and report in that other ticket if it worked for you?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.