Modify

Opened 18 months ago

Last modified 14 months ago

#11059 assigned defect

pDate is null Javascript error

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

Description (last modified by rjollos)

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@… 18 months ago.
configuration

Download all attachments as: .zip

Change History (11)

comment:1 Changed 18 months ago by rjollos

  • Description modified (diff)

comment:2 Changed 18 months ago by rjollos

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 18 months 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 18 months ago by rjollos

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

Changed 18 months ago by wrobel.przemyslaw@…

configuration

comment:5 Changed 17 months ago by anonymous

Give scrollTo parameter a value.

comment:6 Changed 17 months ago by wrobel.przemyslaw@…

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

comment:7 Changed 15 months 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 14 months ago by ChrisNelson

In 13361:

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

comment:9 Changed 14 months ago by ChrisNelson

  • Status changed from new to assigned

comment:10 Changed 14 months ago by ChrisNelson

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

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.