Opened 5 years ago

Last modified 5 years ago

#13563 closed enhancement

AttributeError: 'Environment' object has no attribute 'get_db_cnx' — at Version 1

Reported by: cornily@… Owned by: Ryan J Ollos
Priority: normal Component: StractisticsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description (last modified by Ryan J Ollos)

trac 1.2.3 + plugin Stractistics 0.6.dev

An error rised while accessing stractistics in the nav bar:

url: http://<host>/>project>/stractistics

Log:

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 647, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 248, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.7/site-packages/STractistics-0.6dev-py2.7.egg/stractistics/web_ui.py", line 85, in process_request
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
(139650773723264) Trac[uuuu:perm] DEBUG: DefaultPermissionPolicy allows admin performing TRAC_ADMIN on None
(139650773723264) Trac[uuuu:wikitopdf] DEBUG: Using HTMLDOC version 1.8.28

Change History (1)

comment:1 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.