We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

An error report after upgrading to 4.9

Home Forums Bug Reports and Feature Requests An error report after upgrading to 4.9

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #80953
    qiangge
    Participant

    Hi,I used a 4.8 editor to create a project, but after upgrading to 4.9 and saving the project, I found an error. Comparing the two codes, I found that the commonly used function in pzlib is different. What should I do? Is the upgrade incompatible with the old version

    Attachments:
    You must be logged in to view attached files.
    #80955
    qiangge
    Participant

    Uncaught TypeError: _pGlob.objCache.get is not a function

    #80957

    Hi,
    _pGlob.objCache should be present in the beginning of your code and be initialized to an empty Map(). Do you see the following line in your visual_logic.js?

    _pGlob.objCache = new Map();

    If so, perhaps some third-party code or plugin reset this to an empty object ({}), which should not happen normally.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #80959
    qiangge
    Participant
     function destroyOldObject(objSelector) {
                    var objNames = PzLib.retrieveObjectNames(objSelector);
                    for (var i = 0; i < objNames.length; i++) {
                        var objName = objNames;
                        if (!objName) continue;
                        var obj = PzLib.getObjectByName(objName);
                        if (!obj || !obj.parent) continue;
                        obj.parent.remove(obj);
                        // _pGlob.objCache = {};
                        _pGlob.objCache = new Map();
                    }
                }

    :good: Thank you, it has been fixed

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.