Modify

Opened 12 years ago

Last modified 11 years ago

#11059 assigned defect

pDate is null Javascript error

Reported by: wrobel.przemyslaw@… Owned by: Chris Nelson
Priority: normal Component: TracJsGanttPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (last modified by Ryan J Ollos)

I have a javascript error even with [[TracJSGanttChart(sample=1)]] macro.

jsgantt.js (line 2350)
TypeError: pDate is null
vYear4Str = pDate.getFullYear() + '';

Firefox 20.0.1 Trac 1.0.1

Attachments (1)

trac.ini (2.8 KB) - added by wrobel.przemyslaw@… 12 years ago.
configuration

Download all attachments as: .zip

Change History (11)

comment:1 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 12 years ago by Ryan J Ollos

I've encountered the same issue with the sample data. It is reported in one of the open tickets, I think.

I'd suggest pressing onward and trying some real data.

comment:3 Changed 12 years ago by wrobel.przemyslaw@…

I have tried with real data first (that is way I said "even") but it gave the same error

e.g. TracJSGanttChart(milestone=1.9.3)

comment:4 Changed 12 years ago by Ryan J Ollos

I can take a look in the morning. What are the contents of your [trac-jsgantt] and [TracPM] sections?

Changed 12 years ago by wrobel.przemyslaw@…

Attachment: trac.ini added

configuration

comment:5 Changed 11 years ago by anonymous

Give scrollTo parameter a value.

comment:6 Changed 11 years ago by wrobel.przemyslaw@…

Thanks it helped! Should not scrollTo be set to "today" by default?

comment:7 Changed 11 years ago by Erni

Error still exists. Changing the scrollTo parameter does not have any effect. Even the sample is not showing up. --- [15:50:39.385] TypeError: pDate is null @ https://myhost/trac/xy/chrome/tracjsgantt/jsgantt.js:2350 --- Please give a feedback if you will try to fix this or if I should delete the plugin. Thanks!

comment:8 Changed 11 years ago by Chris Nelson

In 13361:

Check scroll date before parsing or using. Refs #11059.

comment:9 Changed 11 years ago by Chris Nelson

Status: newassigned

comment:10 Changed 11 years ago by Chris Nelson

I don't see this problem but this change should fix it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Chris Nelson.

Add Comment


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

 
Note: See TracTickets for help on using tickets.