Modify

#10514 closed defect (duplicate)

error produced by module simplemultiproject.admin_component.smpcomponentadminpanel trac 0.11.7

Reported by: crossroad Owned by: falkb
Priority: normal Component: SimpleMultiProjectPlugin
Severity: normal Keywords:
Cc: falkb Trac Release: 0.11

Description

if the user is offline and the module simplemultiproject.admin_component.smpcomponentadminpanel is enabled:

   simplemultiproject.admin_component.smpcomponentadminpanel = enabled

get the following error:

Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/wiki/web_ui.py", line 129, in process_request
    add_stylesheet(req, 'common/css/wiki.css')
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/chrome.py", line 78, in add_stylesheet
    if filename.startswith('common/') and 'htdocs_location' in req.chrome:
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/api.py", line 195, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/web/chrome.py", line 506, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/admin/web_ui.py", line 65, in get_navigation_items
    panels, providers = self._get_panels(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-0.11.7-py2.7.egg/trac/admin/web_ui.py", line 161, in _get_panels
    p = list(provider.get_admin_panels(req))
TypeError: 'NoneType' object is not iterable

I also think that the same are associated with the following warnings in the debug console:

/usr/local/lib/python2.7/dist-packages/SimpleMultiProject-0.0.3dev_r12068-py2.7.egg/simplemultiproject/admin.py:133: RuntimeWarning: Parent module 'simplemultiproject' not found while handling absolute import
  from pkg_resources import resource_filename
/usr/local/lib/python2.7/dist-packages/SimpleMultiProject-0.0.3dev_r12068-py2.7.egg/simplemultiproject/admin.py:125: RuntimeWarning: Parent module 'simplemultiproject' not found while handling absolute import

If the user is logged in the error and warnings disappear

the user has the following permissions: PROJECT_ADMIN PROJECT_SETTINGS_VIEW TRAC_ADMIN

Attachments (0)

Change History (2)

comment:1 Changed 20 months ago by falkb

  • Owner changed from crossroad to falkb
  • Status changed from new to assigned

comment:2 Changed 20 months ago by falkb

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

Crossroad, likely [12535] fixed this bug in the meanwhile as mentioned in comment:ticket:10798:21. Please, let me know if this is not the case.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.