On Mon, Oct 9, 2017 at 1:46 AM, Mike Dewhirst <mi...@dewhirst.com.au> wrote:
> I haven't seen anything related to this and can't find anything in trac.ini > > It is reproducible by clicking Admin | Ticket System | Custom Fields (at > ../admin) > > In Plugins we see ... > > > TracCustomFieldAdmin 0.2.8.post13289 > > Admin panel for managing Trac ticket custom fields. > > Author: > CodeResort.com & Optaros.com > Home page: > http://trac-hacks.org/wiki/CustomFieldAdminPlugin > License: > BSD > > Component[+ <https://trac.climate.com.au/ssds/admin/general/plugin?show= > TracCustomFieldAdmin#trac-plugin-TracCustomFieldAdmin>] [– < > https://trac.climate.com.au/ssds/admin/general/plugin#trac- > plugin-TracCustomFieldAdmin>] Enabled > > customfieldadmin.admin.* <https://trac.climate.com.au/s > sds/admin/general/plugin?show=customfieldadmin.admin#trac- > mod-customfieldadmin.admin>— Trac WebAdmin plugin for administration of > custom fields. > > > > CustomFieldAdminPage > > > > customfieldadmin.api.* <https://trac.climate.com.au/s > sds/admin/general/plugin?show=customfieldadmin.api#trac-mod- > customfieldadmin.api>— API for administrating custom ticket fields in > Trac. Supports creating, getting, updating and deleting custom fields. > > > > CustomFields <https://trac.climate.com.au/ssds/admin/general/plugin#trac- > comp-customfieldadmin.api.CustomFields>— These methods should be part of > TicketSystem API/Data Model. Adds update_custom_field and > delete_custom_field methods. (The get_custom_fields is already part of the > API - just redirect here, and add option to only get one named field back.) > > Input to methods is a 'cfield' dict supporting these keys: > > name = name of field (ascii alphanumeric only) type = > text|checkbox|select|radio|textarea label = label description value > = default value for field content options = options for select and > radio types > > (list, leave first empty for optional) > > cols = number of columns for text area rows = number of rows for > text area order = specify sort order for field format = text|wiki > (for text and textarea) > > > > > ... where there appears to be no 'width' specification. As mentioned in my > previous email about a different error I recently upgraded from 1.0 to 1.2 > and am getting contradictory indications where Trac thinks it is 1.0 on the > Plugins page but knows it is 1.2 when producing the error page. > > Any help greatly appreciated > > Mike > > > > Oops… > > *Trac detected an internal error:* > > KeyError: 'width' > > This is probably a local installation issue. > > > Found a bug in Trac? > > If you think this should work and you can reproduce the problem, you > should consider creating a bug report. > > Note that the following plugins seem to be involved: TracAccountManager, > TracVote, TracCustomFieldAdmin*Please report this issue to the plugin > maintainer.* > > Before you do that, though, please first try*searching < > http://trac-hacks.org/search?ticket=yes&noquickjump=1&q=Key > Error%3A+%27width%27>for similar issues*, as it is quite likely that this > problem has been reported before. For questions about installation and > configuration of Trac or its plugins, please try themailing list < > http://trac.edgewall.org/wiki/MailingList>instead of creating a ticket. > > Otherwise, pleasea new bug report describing the problem and explain how > to reproduce it. > > > Python Traceback > > Most recent call last: > > File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 623, > in _dispatch_request > dispatcher.dispatch(req) > File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 239, > in dispatch > resp = chosen_handler.process_request(req) > File "/usr/local/lib/python2.7/dist-packages/trac/admin/web_ui.py", line > 109, in process_request > provider.render_admin_panel(req, cat_id, panel_id, path_info) > File "/usr/local/lib/python2.7/dist-packages/TracCustomFieldAdmin > -0.2.8_r13289-py2.7.egg/customfieldadmin/admin.py", line 114, in > render_admin_panel > for item in cf_api.get_custom_fields(): > File "/usr/local/lib/python2.7/dist-packages/TracCustomFieldAdmin > -0.2.8_r13289-py2.7.egg/customfieldadmin/api.py", line 79, in > get_custom_fields > item['cols'] = item.pop('width') > > ------------------------------------------------------------------------ > > > System Information > > Package Version > Trac 1.2.2 > Babel 0.9.6 > Docutils 0.9.1 > Genshi 0.7 (without speedups) > mod_wsgi 4.3.0 (WSGIProcessGroup WSGIApplicationGroup %(GLOBAL)) > Pygments 2.1 > pysqlite 2.6.0 > Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] > pytz 2012d > setuptools 36.5.0 > SQLite 3.11.0 > Subversion 1.9.3 (r1718519) > > > Installed Plugins > > Name Version Location > TracAccountManager <http://trac-hacks.org/wiki/AccountManagerPlugin> > 0.4.4 /usr/local/lib/python2.7/dist-packages < > https://trac.climate.com.au/ssds/admin/ticket/customfields#frame0> > TracCustomFieldAdmin <http://trac-hacks.org/wiki/CustomFieldAdminPlugin> > 0.2.8.post13289 /usr/local/lib/python2.7/dist- > packages/TracCustomFieldAdmin-0.2.8_r13289-py2.7.egg < > https://trac.climate.com.au/ssds/admin/ticket/customfields#frame3> > TracVote <https://trac-hacks.org/wiki/VotePlugin> 0.6.0 > /usr/local/lib/python2.7/dist-packages <https://trac.climate.com.au/s > sds/admin/ticket/customfields#frame0> > > > Interface Customization > > Site templates site.html > Shared templates > Site static resources > Shared static resources The issue has been fixed: https://trac-hacks.org/changeset/14260/customfieldadminplugin You just need to update to the latest version of the plugin. https://trac-hacks.org/wiki/CustomFieldAdminPlugin - Ryan -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.