Opened 3 years ago

Closed 22 months ago

Last modified 8 months ago

#9220 closed defect (fixed)

TypeError: 'NoneType' object is unsubscriptable

Reported by: fengxf Owned by: rjollos
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc:, vinay.mohan.dass Trac Release: 0.11


How to Reproduce

While doing a POST operation on /admin/discussion/forum, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'354e78d7425c93b3ad5ec8bd',
 'cat_id': u'discussion',
 'discussion_action': u'delete',
 'group': '-1',
 'panel_id': u'forum',
 'path_info': None,
 'remove': u'Remove selected items',
 'selection': u'3'}

User agent: Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv: Gecko/20110920 SUSE/3.6.23-0.2.1 Firefox/3.6.23

System Information

Trac 0.12.2
Babel 0.9.6
Docutils 0.6
FullBlog 0.1.1
Genshi 0.6
Mercurial 1.9.2+3-86380f24e697+20110908
Pygments 1.3.1
pysqlite 2.4.1
Python 2.6.5 (r265:79063, May 6 2011, 17:25:59)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]]
setuptools 0.6c11
SQLite 3.6.23
Subversion 1.6.17 (r1128011)
jQuery 1.4.2

Enabled Plugins

LightGreenTheme 0.1
TracDiscussion 0.8
TracFullBlogPlugin 0.1.1
TracTags 0.7dev
TracThemeEngine 2.0.1

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/", line 511, in _dispatch_request
  File "build/bdist.linux-x86_64/egg/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/", line 116, in process_request
  File "build/bdist.linux-x86_64/egg/tracdiscussion/", line 49, in render_admin_panel
    template, data = api.process_discussion(context)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/", line 259, in process_discussion
    self._do_actions(context, actions)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/", line 873, in _do_actions
  File "build/bdist.linux-x86_64/egg/tracdiscussion/", line 72, in forum_deleted
TypeError: 'NoneType' object is unsubscriptable

Attachments (0)

Change History (6)

comment:1 Changed 2 years ago by rjollos

  • Component changed from SELECT A HACK to DiscussionPlugin
  • Owner set to Blackhex

Yet another incorrectly filed ticket.

comment:2 Changed 22 months ago by rjollos

  • Cc added

#10369 closed as a duplicate.

comment:3 Changed 22 months ago by rjollos

  • Owner changed from Blackhex to rjollos
  • Status changed from new to assigned

comment:4 Changed 22 months ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [12055]) Fixes #9220: Fixed error when deleting forum when the tags module was enabled and the forum was being deleted from the admin panel.

comment:5 Changed 22 months ago by rjollos please let me know if you have any additional problems after updating to the latest revision of the 0.11 branch.

comment:6 Changed 8 months ago by rjollos

  • Cc vinay.mohan.dass added

#11420 closed as a duplicate.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.