@ty wrote:
Hi, Team!
I built diagram and I’m getting this error:Uncaught TypeError: Cannot read property 'class' of null at Function.Z.fromJSON.Z.fromJson (go.js:1739) at HTMLDocument.<anonymous> (builder.js:675) at j (jquery.js:3099) at Object.fireWith [as resolveWith] (jquery.js:3211) at Function.ready (jquery.js:3417) at HTMLDocument.I (jquery.js:3433)
I’m getting this error when I’m running “funnelDiagram.model = go.Model.fromJson(json);”.
This is model json link: https://jsonformatter.org/ca8f1aI"m sure all other code parts are correct. In my opinion, I’m getting this error because of json data(please focus on “notes” field and you can see that includes html-formatted string with css such as font-family, font-color, height etc. This data comes from user’s copy-paste formatted string from other source into text editor that I built and user saves diagram).
But strange thing is that I get this error on Ubuntu 16.04 server only, while it works well on localhost xampp server (on Windows).
I set “MEDIUMTEXT” as datatype for model json data field in mysql db.Please help me with this. It’s killing my time.
Regards.
Posts: 3
Participants: 2