Opened 5 years ago

Closed 5 years ago

#13274 closed defect (fixed)

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

Reported by: Jon Holstrom Owned by: Ryan J Ollos
Priority: normal Component: BacklogPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2


How to Reproduce

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

(please provide additional details here)

Request parameters:


User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

System Information

Trac 1.2.2
Genshi 0.7 (with speedups)
mod_wsgi 4.3.0 (WSGIProcessGroup WSGIApplicationGroup|/trac/test)
Pygments 2.1
pysqlite 2.6.0
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
pytz 2014.10
RPC 1.1.7.dev0
setuptools 20.7.0
SQLite 3.11.0
Subversion 1.9.3 (r1718519)
jQuery 1.11.3
jQuery UI 1.11.4
jQuery Timepicker 1.5.5

Enabled Plugins

BacklogPlugin 0.2dev-r0
CodeExampleMacro 1.2.post0
ComponentHierarchy 1.2.0.dev0
ExtendedVersionPlugin 1.0dev-r0
GridModify 1.0.0.dev0
MultipleWorkflowPlugin 1.4.1
SimpleMultiProject 0.5.2.dev0
TimeTracking 1.2
TracAdvancedTicketWorkflow 1.2.1.dev0
TracAdvParseArgsPlugin 0.4
TracCiteCode 0.3.5
TracCodeReviewer 1.0.0.dev0
TracDownloads 1.0.0.dev0
TracIniAdminPanel 1.0.2
TracTags 0.10.dev0
Tracticketstats 3.0.0.dev0
TracUserManagerPlugin 1.2.0.dev0
TracWikiExtras 1.3.1.dev0
TracXMLRPC 1.1.7.dev0

Interface Customization

site-htdocs tracworkflowadmin

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/", line 623, in _dispatch_request
  File "build/bdist.linux-x86_64/egg/trac/web/", line 239, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/backlog/", line 101, in process_request
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by Ryan J Ollos

This is not a good plugin. Consider using MultiProjectBacklogPlugin or TracBacklogPlugin.

comment:2 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 16834:

BacklogPlugin 0.3dev: Make compatible with Trac 1.0+

Fixes #13274.

Modify Ticket

Change Properties
Set your email in Preferences
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.