Modify

Opened 5 years ago

Closed 5 years ago

#13563 closed enhancement (fixed)

AttributeError: 'Environment' object has no attribute 'get_db_cnx'

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

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 5 years ago by Ryan J Ollos

Status: newaccepted

comment:3 Changed 5 years ago by Ryan J Ollos

In 17376:

0.6dev: Make compatible with Trac 1.2+

Refs #13563.

comment:4 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.