admin/plugin/SearchList empty, can't read plugins

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi,

I upgraded store DB from 3.9 to 4.0 to 4.1

New nop 4.1 works, except when I login as admin many pages empty, no data, only search options: customers, logs, orders, products, etc. I know info exists in DB, for example I have logs, but NOP admin shows empty list.

On all this pages I see JS error:
ReferenceError: result is not defined[Learn More] admin.navigation.js:64:21

...
    var init = function () {
        map = buildMap();
        $.ajax({
            cache: false,
            url: '/admin/plugin/SearchList',
            type: 'get',
            async:false,
            success: function (res) { result = res;}
        });

        for (i = 0; i < result.length; i++) { //error here: result is not defined
...

Looks like NOP can't read plugins list.
I dont see any errors on stdout file and log db table does not contain any error messages.
How can I fix this?
5 years ago
Could you please try it on our demo site? Does it work here?
5 years ago
Yes, demo works, no JS errors.
5 years ago
Found source of the problem. I didnt have InstalledPlugins.txt file in App_Data folder.
As soon as I copied NOP change it to json version and all works now. Would be great force NOP create empty json file if missing.
5 years ago
I have the same issue and i already have installedPlugins.json file exist!
5 years ago
The issue is from the javascript file "admin.navigation.js", the following function where the can't be found "/admin/plugin/SearchList"

"var init = function () {
        map = buildMap();
        $.ajax({
            cache: false,
            url: '/admin/plugin/SearchList',
            type: 'get',
            async:false,
            success: function (res) { result = res;}
        });

        for (i = 0; i < result.length; i++) {
            map[result[i].link] = result[i];
        }
    };"
5 years ago
ahmadkq wrote:
The issue is from the javascript file "admin.navigation.js", the following function where the can't be found "/admin/plugin/SearchList"

"var init = function () {
        map = buildMap();
        $.ajax({
            cache: false,
            url: '/admin/plugin/SearchList',
            type: 'get',
            async:false,
            success: function (res) { result = res;}
        });

        for (i = 0; i < result.length; i++) {
            map[result[i].link] = result[i];
        }
    };"


Hi, have you solved? I have your same problem!
5 years ago
In my case, this was an issue with a virtual folder "https://mydomain.com/store"

For the moment, I've manually prefixed the store folder into 'admin.navigation.js'

url: '/admin/plugin/SearchList'

- >

url: '/store/admin/plugin/SearchList'
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.