UI (both Public Store and Admin) cannot display the data

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I installed nopCommerce 4.10 locally (Windows 10) using SQL Server express 2012 successfully for testing:
1. I performed 2 different successful installation:
   a. #1: using Visual Studio 2017 (Community Edition) and deploy using default VS IIS express
   b. #2: using published folder and deploy using IIS 10
2. On these both installations, I set the installation to create sample data in SQL Server

Upon successful installation (there is no error message), when I browsed under admin page using installation #1, I can see the data, for example go to [Catalog] - [Categories].

But when I browsed using installation #2, I can not see the data.
If I add Category, then I can see the new added entries on the SQL Server. But I still can not view any category in [Catalog] - [Categories] under Admin page.

I tried to browse this forum and google for this installation issue, but I cannot find this specific issue. May I ask help from the forum. Appreciate for any advise as I spent in the last 1 week for this issue but still could not resolve it.
5 years ago
Any JS error being thrown?


5 years ago
How to check if there is any JS error?
I cannot see any log from UI, but here is the entry from table "log" (with table header). This is record = 4, while record 2 and 3 are the same. And Record 1 is the application started.
Id  LogLevelId  ShortMessage  FullMessage  IpAddress  CustomerId  PageUrl  ReferrerUrl  CreatedOnUtc
4  40  Error 400. Bad request    127.0.0.1  1  http://localhost/NC0410P/login?returnurl=%2FNC0410P%2Fadmin  http://localhost/NC0410P/login?ReturnUrl=%2FNC0410P%2Fadmin  2018-10-30 13:46:37.0054466

Thanks for your help.
5 years ago
Open inspect element in browser and check error in console.
5 years ago
Sorry for taking time to figure out how to get it. Here is the snapshot of the 1 warning and 2 errors.
Warning #1/1:
=============
jquery-1.10.2.min.js:6
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Error #1/2:
===========
jquery-1.10.2.min.js:6
GET http://localhost/admin/plugin/SearchList?_=1541677164164 404 (Not Found)
send @ jquery-1.10.2.min.js:6
ajax @ jquery-1.10.2.min.js:6
init @ admin.navigation.js:56
initOnce @ admin.navigation.js:88
init @ admin.search.js:72
(anonymous) @ List:128
c @ jquery-1.10.2.min.js:4
fireWith @ jquery-1.10.2.min.js:4
ready @ jquery-1.10.2.min.js:4
q @ jquery-1.10.2.min.js:4
admin.navigation.js:64

Error #2/2:
===========
Uncaught ReferenceError: result is not defined
    at init (admin.navigation.js:64)
    at Object.initOnce (admin.navigation.js:88)
    at Object.init (admin.search.js:72)
    at HTMLDocument.<anonymous> (List:128)
    at c (jquery-1.10.2.min.js:4)
    at Object.fireWith [as resolveWith] (jquery-1.10.2.min.js:4)
    at Function.ready (jquery-1.10.2.min.js:4)
    at HTMLDocument.q (jquery-1.10.2.min.js:4)
5 years ago
Actually, after further observation, I can see the added category and product at Public Store, but not on Admin page. Kindly help. Thanks.
5 years ago
I have set user "IIS APPPOOL\defaultapppool" as db_owner under SQL Server - Security. Is this permission enough to cater for nopCommerce UI admin user? Your kind respond is appreciated.
5 years ago
Appreciate for any help on my data display issue for Admin User.
5 years ago
Hi, did you solve the problem? Also I find this annoying result.
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'


in this function.


    var map;

    var init = function () {
        map = buildMap();
        $.ajax({
            cache: false,
            url: '/store/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];
        }
    };
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.