Modify

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#9551 closed defect (fixed)

Error: Macro TracJSGanttChart(sample=1) failed %d format: a number is required, not unicode

Reported by: Peter Owned by: Chris Nelson
Priority: high Component: TracJsGanttPlugin
Severity: blocker Keywords:
Cc: Ryan J Ollos Trac Release: 0.12

Description

When I install the jsGantt plugin as described in the wiki and try the example

[[TracJSGanttChart(sample=1)]]

it results in the following error message:

Error: Macro TracJSGanttChart(sample=1) failed
%d format: a number is required, not unicode 

Here is my log trace:

DEBUG: Executing Wiki macro TracJSGanttChart by provider  tracjsgantt.tracjsgantt.TracJSGanttChart object at 0x7f761c14dbd0>
ERROR: Macro TracJSGanttChart(sample=1) failed: 
    text += 'var '+self.GanttID+' = new JSGantt.GanttChart("'+self.GanttID+'",document.getElementById("GanttChartDIV_'+self.GanttID+'"), "%s", "%d");\n' % (javascript_quote(format), showdep)

Environment: debian6, Babel0.9.5, trac0.12.2

How can I fix this????

Peter

Attachments (0)

Change History (6)

comment:1 Changed 5 years ago by Peter

Priority: normalhigh

comment:2 Changed 5 years ago by Chris Nelson

Status: newassigned

comment:3 Changed 5 years ago by Chris Nelson

(In [10928]) Don't try to use %d for a string. Refs #9551.

comment:4 Changed 5 years ago by anonymous

Resolution: fixed
Status: assignedclosed

thanks, it works now..

comment:5 Changed 5 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

comment:6 Changed 3 years ago by Ryan J Ollos

#9514 closed as a duplicate.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Chris Nelson.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.