Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes! Revision “@1615875 – .loading class for conflict avoidance” works now!
    Thank you to author and @impressao3d!

    Today I cannot disable all plugins on my site because of many reasons. But I will try to do that.
    Anyhow it will take many time to get permission to stop all plugins on site.

    Meanwhile I prepared one simple test which may helps to find buggy place.

    I have beautified file “/pub/js/min/admin.js” from release 2.0.10.
    Then I have inserted two lines of “console.log()” into this code
    to highlight places where work main blocks of this script:

    
      ...
      var k = function() {
        var f = {};
        return {
          register: function(c, h) {
            console.log( ' ~ Register: ', c, h );
            f[c] = h;
          },
          require: function(c, h) {
            console.log( ' ~ require: ', c, h );
            var n = f[c];
            if (!n) throw Error('CommonJS error: failed to require("' + h + '")');
            return n
          }
        }
      }();
      ...
    

    My version of file “admin.js” you can download from
    https://github.com/lightsunday/loco-issue/archive/master.zip“.

    Then I run page “/wp-admin/admin.php?path=plugins%2Fbukopie%2Flanguages%2Fbukopie-ru_RU.po&bundle=bukopie%2Fbukopie.php&domain=bukopie&page=loco-plugin&action=file-edit” in browser.
    “Bukopie” it is name of my plugin but it can be any plugin of WP.

    Then I copied report from console and paste into “report.txt” to send you.

    Maybe you advise me to insert another js-code into admin.js to verify some important stages of this script?

    • This reply was modified 9 years, 2 months ago by trickymage.

    Additional question…

    Where can I get source code of “/pub/js/min/admin.js” file?
    Minimized version of this file in svn-repo is extrimely unfriendly, therefore I cannot understand how this script works and how to find bug.

    Hello, I have the same issue.

    I tried to find error by myself. I tried to use 2.0.11, 2.0.10, and 2.0.9 releases. Only release 2.0.9 works as expected. Higher versions do not work. It means editor is hidden and there aren’t any error messages in browser’s console.

    I have conducted experiment. I installed version 2.0.10 and replaced two files from version 2.0.9:

    1. /pub/js/editor.js
    2. /pub/js/min/admin.js

    In such conditions editor works perfectly. But I think, it is little bit wierd way to use version 2.0.10 with two old files.

    So I hope, perhaps it will help developer(s) to find solution as soon as possible.

    Thank you, and wait for fixing.

Viewing 4 replies - 1 through 4 (of 4 total)