I've replaced v1.0 to v2.0, also upgraded the gantt library too.

Now my view doesn't display the chart. It shows nothing.

From the Chrome developer tools I see "Uncaught ReferenceError: gantt is not defined" in lots of files.
locale.js files, dhtmlxgantt_tooltip.js and dhtmlxgantt_quick_info.js (from the dhtmlxgantt library).

"sites/all/libraries/dhtmlxgantt/codebase/dhtmlxcommon.js" also doesn't exist in dhtmlxGantt v.2.1.1 Standard

What's happened?

Comments

manuelBS’s picture

Please checkt that the library is on the correct position at libraries/dhtmlxgantt/codebase
This changed the position due to the new file structure of the library.

tchurch’s picture

The library is in the same position it's always been in (previous and new versions)

sites/all/libraries/dhtmlxgantt/codebase

There is a missing file dhtmlxcommon.js but even if I copy this file from a previous version is makes no difference.

alexshipilov’s picture

1. Check that you use latest gantt library anf gantt_views module.
2. Flush cache.
3. Check views gantt style settings.

Please let me know if this hepled you.

tchurch’s picture

Library is dhtmlxGantt v.2.1.1 Standard
gantt_views is 7.x-2.0-alpha1+2-dev

I flushed the cache.

I checked my settings which I hadn't changed anyway.

I still get "gantt is not defined" messages.