Modify

Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#329 closed defect (fixed)

blog view problem - list index out of range

Reported by: perus@… Owned by: pacopablo
Priority: normal Component: TracBlogPlugin
Severity: normal Keywords:
Cc: akshay.guleria@…, varmasoft@… Trac Release: 0.10

Description

I've used TracBlog very satisfactorily for 2 weeks now, but suddenly this morning :

Traceback (most recent call last):
  File "/sw/lib/python2.4/site-packages/trac/web/main.py", line 300, in dispatch_request
    dispatcher.dispatch(req)
  File "/sw/lib/python2.4/site-packages/trac/web/main.py", line 176, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.darwin-8.6.0-Power_Macintosh/egg/tBlog/web_ui.py", line 173, in process_request
  File "build/bdist.darwin-8.6.0-Power_Macintosh/egg/tBlog/web_ui.py", line 265, in _generate_blog
  File "build/bdist.darwin-8.6.0-Power_Macintosh/egg/tBlog/web_ui.py", line 299, in _generate_calendar
IndexError: list index out of range

I had installed TracTags, TracBlog and TracChangeLog with easy_install.

Before having this problem I've updated an older post but I don't know whether this is connected. I've upgraded TracBlog (svn up) but without changes. I've made no updates to Trac for several weeks. My last Blog post was made on 06/04/21/16.04

Attachments (0)

Change History (6)

comment:1 Changed 9 years ago by anuradha.moturi@…

  • Cc akshay.guleria@… varmasoft@… added; anonymous removed
  • Summary changed from Blog suddenly no longer works to blog view problem - list index out of range

Hi

The blog view for our website is howing up the following error:

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler

dispatch_request(mpr.path_info, mpr, env)

File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch

resp = chosen_handler.process_request(req)

File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 173, in process_request File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 251, in _generate_blog File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 285, in _generate_calendar IndexError?: list index out of range The trac blog plugin we used is : " tracblogplugin-r658.zip "

The last thing that we had done was updated the TOC plugin to tocmacro-r696.zip,

comment:2 Changed 9 years ago by athomas

  • Cc changed from akshay.guleria@gmail.com,varmasoft@rediffmail.com to akshay.guleria@gmail.com, varmasoft@rediffmail.com

comment:3 Changed 9 years ago by uwe.belde@…

Hi, seems to be a problem with "first_week_day". I've set this to "Monday" (and boom!) Setting back the option to Sunday fix the error, but in Germany we start at monday (i don't like mondays :-(()

comment:4 Changed 9 years ago by anonymous

Indeed setting back to Sunday solved the problem. It seems I haven't worked last Monday …

comment:5 Changed 9 years ago by pacopablo

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

(In [725]) * Fix for list index bug in calendar, closes #329, #345

  • Added permisison check to new post. Still have a slight issue with the error not showing the permisison needed
  • Smal UI tweak to tags listing

comment:6 Changed 9 years ago by pacopablo

The bug turned out to be a mishandling of the calulation of the current week. I've now tested it with the fix, so you can now safely have Monday be the start of the week.

Add Comment

Modify Ticket

Action
as closed The owner will remain pacopablo.
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.