Bug: Chart does not render on second and subsequent page reload due to Javascrip
-
Issue description
Chart does not render on second and subsequent page reload due to Javascript errors.
Chart displays correctly in the wpDataCharts back-end dashboard.
Error message
TypeError: undefined is not an object (evaluating ‘wdtObj.fnDraw’) in wdt.chartsRender.js at line 66Apparent cause
The global JS variable wpDataTables is not being populated on the second and subsequent reloads. This leads to the given error because it’s trying to access an index/property that does not exist in the object.
If all local asset caches are bypassed ( always fetch from network ) then the chart displays.
Environment
Browsers tested on Apple Silicon Mac w/macOS Big Sur up-to-date:
? Safari ( latest )
? Chrome ( latest )
? Firefox ( latest )
- The topic ‘Bug: Chart does not render on second and subsequent page reload due to Javascrip’ is closed to new replies.