Modify ↓
#11783 closed defect (cantfix)
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Not sure how to get around this error. I have the following enabled in components in trac.ini: [components] tracfullblog.* = enabled
Thanks in advance for any help!
How to Reproduce
While doing a GET operation on /blog, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'blog_path': ''}
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0
System Information
Trac | 1.1.2beta1
|
Babel | 1.3 (translations unavailable)
|
FullBlog | 0.1.1-r13462
|
Genshi | 0.7 (with speedups)
|
pysqlite | 2.6.0
|
Python | 2.7.2 (default, Oct 2 2014, 14:57:02) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
|
pytz | 2014.7
|
setuptools | 6.0.2
|
SQLite | 3.6.20
|
jQuery | 1.8.3
|
jQuery UI | 1.9.2
|
jQuery Timepicker | 1.1.1
|
Enabled Plugins
TracFullBlogPlugin | 0.1.1-r13462
|
Python Traceback
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 550, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 224, in dispatch
resp = chosen_handler.process_request(req)
File "/home1/astrobet/python272/lib/python2.7/site-packages/TracFullBlogPlugin-0.1.1_r13462-py2.7.egg/tracfullblog/web_ui.py", line 119, in process_request
data['blog_about'] = BlogPost(self.env, 'about')
File "/home1/astrobet/python272/lib/python2.7/site-packages/TracFullBlogPlugin-0.1.1_r13462-py2.7.egg/tracfullblog/model.py", line 372, in __init__
self._load_post(version)
File "/home1/astrobet/python272/lib/python2.7/site-packages/TracFullBlogPlugin-0.1.1_r13462-py2.7.egg/tracfullblog/model.py", line 511, in _load_post
fields = self._fetch_fields(version)
File "/home1/astrobet/python272/lib/python2.7/site-packages/TracFullBlogPlugin-0.1.1_r13462-py2.7.egg/tracfullblog/model.py", line 480, in _fetch_fields
self.versions = self.get_versions()
File "/home1/astrobet/python272/lib/python2.7/site-packages/TracFullBlogPlugin-0.1.1_r13462-py2.7.egg/tracfullblog/model.py", line 457, in get_versions
cnx = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
Attachments (0)
Change History (4)
comment:1 by , 11 years ago
| Resolution: | → cantfix |
|---|---|
| Status: | new → closed |
comment:2 by , 11 years ago
This is caused by latest Trac making changes to the database API, and osimons hasn't updated or branched th:FullBlogPlugin yet.
Note:
See TracTickets
for help on using tickets.



PluginIssue (th:FullBlogPlugin).