Opened 4 years ago

Closed 3 years ago

#7472 closed defect (fixed)

Error in customfieldAdmin module.

Reported by: mcpbalaji@… Owned by: osimons
Priority: highest Component: CustomFieldAdminPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description (last modified by osimons)


We are getting serious error. please guide me to resolve te below issue. After i have installed the TracCustomfield admin module i am getting the below error message because if this message we are not able to view the admin panel using admin user name.

#trac-admin /srv/webtracker/xeragotrac/citi permission add admin2 TRAC_ADMIN
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 7, in ?
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/", line 2221, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/admin/", line 14, in ?
    from trac.admin.api import *
  File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/admin/", line 36, in ?
    mycfcomp.update_custom_field(myenv, mycfdict, create=True)
  File "/usr/lib/python2.4/site-packages/TracCustomFieldAdmin-0.2.3-py2.4.egg/customfieldadmin/", line 103, in update_custom_field
    self.create_custom_field(env, customfield)
  File "/usr/lib/python2.4/site-packages/TracCustomFieldAdmin-0.2.3-py2.4.egg/customfieldadmin/", line 80, in create_custom_field
    env.config.set('ticket-custom', customfield['name'] + '.options', '|'.join(customfield['options']))
TypeError: sequence expected, NoneType found


Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by osimons

  • Description modified (diff)

Sorry, but I'm not able to recreate this error. An error that seems very strange, as the trac-admin ... permission add should not be calling create_custom_field() in a plugin. The Trac version seems old, and perhaps it is patched or otherwise changed? I would never expect the Trac code to call code in the plugin - which seems to be what is going on in the middle of your traceback:

File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/admin/", line 36, in ?
    mycfcomp.update_custom_field(myenv, mycfdict, create=True)

Perhaps you can look at that particular file, and compare its content with with the released version: trac:browser:tags

comment:2 Changed 3 years ago by anonymous

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

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from osimons. 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.