trickymage
Forum Replies Created
-
Forum: Plugins
In reply to: [Loco Translate] Editor not showingYes! Revision “@1615875 – .loading class for conflict avoidance” works now!
Thank you to author and @impressao3d!Forum: Plugins
In reply to: [Loco Translate] Editor not showingToday 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.
Forum: Plugins
In reply to: [Loco Translate] Editor not showingAdditional 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.Forum: Plugins
In reply to: [Loco Translate] Editor not showingHello, 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:
- /pub/js/editor.js
- /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.