Admin interface not working in v4.2

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Since upgrading to 4.2 from 3.8 the Admin interface now only works in Internet Explorer.  Inspecting the page there are these Console errors:

jquery-ui-1.10.3.custom.min.js:7 Uncaught SyntaxError: Unexpected end of input
admin.common.js:318 Uncaught SyntaxError: Unexpected end of input
admin.navigation.js:94 Uncaught SyntaxError: Unexpected end of input
admin.search.js:102 Uncaught SyntaxError: Unexpected end of input
jquery.dataTables.min.js:166 Uncaught SyntaxError: Unexpected end of input
dataTables.bootstrap.min.js:8 Uncaught SyntaxError: Unexpected end of input
datatables.min.js:188 Uncaught SyntaxError: Unexpected end of input
moment-with-locales-2.22.2.min.js:1 Uncaught SyntaxError: missing ) after argument list
dataTables.buttons.min.js:45 Uncaught SyntaxError: Unexpected end of input
buttons.bootstrap.min.js:6 Uncaught SyntaxError: Unexpected end of input
Chart.min.js:10 Uncaught SyntaxError: missing ) after argument list
Admin:1 Uncaught ReferenceError: Admin is not defined
    at HTMLDocument.<anonymous> (Admin:1)
    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)
4 years ago
Hi,

I also looked at your other ticket here: https://www.nopcommerce.com/boards/t/73291/cookie-notice-not-closing-in-v42.aspx

I think either the browser has some issue or something is wrong with your installation & configuration in IIS. Can you share your site URL?

Regards

nopAccelerate Team
4 years ago
Hi there,

Thanks for try to help.  I have tested both the cookies issue and the admin in:  Microsoft Edge, Opera, Microsoft Chromium Edge, Google Chrome and Internet Explorer and they both only work in Internet Explorer.

Interestigly, when I click View Source I get all the code then it gets to this:

<div class=footer-lower><div class=footer-info><span class=footer-disclaimer>Copyright &copy; 2019 Anything Air Handling Ltd. All rights reserved.</span></div><div class=footer-powered-by>Powered by <a href="https://www.nopcommerce.com/">nopCommerce</a></div></div></div></div><div id=eu-cookie-bar-notification class=eu-cookie-bar-notification><div class=content><div class=text>Cookies help us deliver our services. By using our services, you agree to our use of cookies.</div><div class=buttons-more><button type=button class="ok-button button-1" id=eu-cookie-ok>OK</button> <a class=learn-more href=/privacy-notice>Learn more</a></div></div></div><script src=/bundles/fcxf26zcvapobafezjfmiliq3ryrkd_z_adv_quei2g.min.js></script><script>$(document).ready(function(){$(".header").on("mouseenter","#topcartlink",function(){$("#flyout-cart").addClass("active")});$(".header").on("mouseleave","#topcartlink",function(){$("#flyout-cart").removeClass("active")});$(".header").on("mouseenter","#flyout-cart",function(){$("#flyout-cart").addClass("active")});$(".header").on("mouseleave","#flyout-cart",function(){$("#flyout-cart").removeClass("active")})})</script><script>$("#small-search-box-form").on("submit",function(n){$("#small-searchterms").val()==""&&(alert("Please enter some search keyword"),$("#small-searchterms").focus(),n.preventDefault())})</script><script>$(document).ready(function(){var n,t;$("#small-searchterms").autocomplete({delay:500,minLength:3,source:"/catalog/searchtermautocomplete",appendTo:".search-box",select:function(n,t){return $("#small-searchterms").val(t.item.label),setLocation(t.item.producturl),!1},open:function(){n&&(t=document.getElementById("small-searchterms").value,$(".ui-autocomplete").append('<li class="ui-menu-item" role="presentation"><a href="/search?q='+t+'">View all results...<\/a><\/li>'))}}).data("ui-autocomplete")._renderItem=function(t,i){var r=i.label;return n=i.showlinktoresultsearch,r=htmlEncode(r),$("<li><\/li>").data("item.autocomplete",i).append("<a><img src='"+i.productpictureurl+"'><span>"+r+"<\/span><\/a>").appendTo(t)}})</script><script>AjaxCart.init(!1,".header-links .cart-qty",".header-links .wishlist-qty","#flyout-cart")</script><script>$(document).ready(function(){$(".menu-toggle").on("click",function(){$(this).siblings(".top-menu.mobile").slideToggle("slow")});$(".top-menu.mobile .sublist-toggle").on("click",function(){$(this).siblings(".sublist").slideToggle("slow")})})</script><script>function newsletter_subscribe(n){var t=$("#subscribe-loading-progress"),i;t.show();i={subscribe:n,email:$("#newsletter-email").val()};$.ajax({cache:!1,type:"POST",url:"/subscribenewsletter",data:i,success:function(n){$("#newsletter-result-block").html(n.Result);n.Success?($("#newsletter-subscribe-block").hide(),$("#newsletter-result-block").show()):$("#newsletter-result-block").fadeIn("slow").delay(2e3).fadeOut("slow")},error:function(){alert("Failed to subscribe.")},complete:function(){t.hide()}})}$(document).ready(function(){$("#newsletter-subscribe-button").on("click",function(){$("#newsletter_subscribe").is(":checked")?newsletter_subscribe("true"):newsletter_subscribe("false")});$("#newsletter-email").on("keydown",function(n){if(n.keyCode==13)return $("#newsletter-subscribe-button").trigger("click"),!1})})</script><script>$(document).ready(function(){$(".footer-block .title").on("click",function(){var n=window,t="inner",i;"innerWidth"in window||(t="client",n=document.documentElement||document.body);i={width:n[t+"Width"],height:n[t+"Height"]};i.width<769&&$(this).siblings(".list").slideToggle("slow")})})</script><script>$(document).ready(function(){$(".block .title").on("click",function(){var n=window,t="inner",i;"innerWidth"in window||(t="client",n=document.documentElement||document.body);i={width:n[t+"Width"],height:n[t+"Height"]};i.width<1001&&$(this).siblings(".listbox").slideToggle("slow")})})</script><script>$(document).ready(function(){$("#eu-cookie-bar-notification").show();$("#eu-cookie-ok").on("click",function(){$.ajax({cache:!1,type:"POST",url:"/eucookielawaccept",dataType:"json",success:function(){$("#eu-cookie-bar-notification").hide()},error:function(){alert("Cannot store value")}})}

and then just stops and doesn't load the rest of the page, as in there is no </body> or </html>.
4 years ago
Hi, sorry just read the rest of your previous message...

Unfortunately the site I am upgrading is a test location inside my network, so I won't be able to make the link available externally.
4 years ago
Check what errors do you get on the browser Network tab for the rest of the page resources. Also check IIS & Windows error logs if that is not helping. And I assume that browser is working good with other sites. May be you can try with hosting a sample website in IIS to check if this happens on to this application or all applications hosted in IIS?
4 years ago
Well I have investigated the network and nothing is getting an error, they all get a status of 200.  I am wondering if it is to do with the minify of the javascript as I only have two entries, and one of them is the Google Analytics code.

I have looked in the event log in Windows and I am not seeing any errors or warnings.  And nothing appears the Log inside the Admin section.
4 years ago
May be try with hosting it again!
4 years ago
Sorry, it might be my Monday morning brain... Rehost?
4 years ago
I think he means re-Deploy
4 years ago
(this is old, but maybe it will help
https://www.nopcommerce.com/boards/t/24448/admin-menu-not-working-windows-server-2012-iis-8-nopcommerce-300.aspx

Google this to see if any others
  site:nopcommerce.com Admin only works in Internet Explorer
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.