Object doesnt support property "windowtone"

I am doing my best in trying to make an online RPG using MV.


30mnvb7.jpg


My problem occurs when I try to load saved data
2ezoawz.jpg


Highlighted code is what causes the issue. the saveFile object is already a JSON object.
The DataManager functions have not been overidden in anyway

Is there a step im missing?
What property does windowTone belong to if not the "system"?
can you press F8 when that error comes up and get a more useful message in the console? What plugins do you have? Did you add or remove any plugins since that game was originally saved? What happens if you start a new game, save it, exit and then reload the game straight away with no changes in between?
can you press F8 when that error comes up and get a more useful message in the console? What plugins do you have? Did you add or remove any plugins since that game was originally saved? What happens if you start a new game, save it, exit and then reload the game straight away with no changes in between?


I'm not sure what F8 does in the browser but here is the console output
5lc9c4.jpg


The only plugin I have is the one of my own
Code:
/*:
*@plugindesc
*Creates a login screen instead of the "New" or "Continue" screen
*@author Kiryn
*@help
*TODO: Provide useful info
*/

(function () {
    Scene_Title.prototype.update = function () {
        Scene_Base.prototype.update.call(this);
    };
    Graphics._updateErrorPrinter = function () {
        this._errorPrinter.width = this._width * 0.9;
        this._errorPrinter.height = 40;
        this._errorPrinter.style.textAlign = 'center';
        this._errorPrinter.style.textShadow = '1px 1px 3px #000';
        this._errorPrinter.style.fontSize = '20px';
        this._errorPrinter.style.zIndex = 50;
        this._centerElement(this._errorPrinter);
    };

    StorageManager.save = function (savefileId, json) {
        var flag = $("#saveFlag").html();
        if (flag == "0") {
            var pusher = new Pusher('9acd7583bb344510612a', {
                cluster: 'us2',
                encrypted: true
            });
            $("#saveFlag").html("1"); //Dont wait for the connection. reset flag on disconnect
            var dt = new Date();
            var time = dt.getHours() + dt.getMinutes() + dt.getSeconds();
            var channelName = "save" + Math.floor((Math.random() * 2000) + 1) + time;
            var channel = pusher.subscribe(channelName);

            pusher.connection.bind('connected', function () {
                $.ajax({
                    url: "/Home/insertSave",
                    datatype: "text",
                    data: {
                        "username": $("#txtUser").val(),
                        "saveID": savefileId,
                        "saveInfo": json,
                        "channelName": channelName
                    },
                    type: "POST",
                    success: function (data) {
                        //Do nothing
                    },
                    error: function () {
                        //Do nothing
                    }
                });
            });

            channel.bind('saveEvent', function (data) {
                var messageFromServer = data.validation;
                switch (messageFromServer) {
                    case "Saved":
                        pusher.disconnect();
                        alert(messageFromServer);
                        break;
                    case "Updated":
                        pusher.disconnect();
                        alert(messageFromServer);
                        break;
                }
            });
        }
    };
})();

As For deleting the save. creating new game, saving right away and re-loading the savedFile: Same result.

I did notice I am saving the data as a string in the database instead of the json object. I might be losing symbols/formatting when I do that. Thanks for the suggestions anyway
did you make some try with node ?
PHP:
let fs = require('fs');
i use node for create and write file in json
and you need fix your error code first .
You maybe make a mistake in your servor.

do you try preload your script in the html or plugin manager ?
You code are asynchrone ?

Original thread: https://forums.rpgmakerweb.com/threads/object-doesnt-support-property-windowtone.92291/