Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 711 posts 948 karma points
    Oct 17, 2017 @ 00:05
    Tom
    0

    Null or undefined angular error

    Hi I just installed the nuget package with Umbraco 7.5.8 and am getting an undefined object error in angular when trying to reindex so nothing's happening..

    TypeError: Cannot read property 'GetRebuildStatus' of undefined
    at Object.getRebuildStatus (resource.js:8)
    at a.$scope.getRebuildStatus (dashboard-controller.js:13)
    at c.<anonymous> (dashboard-controller.js:39)
    at d (angular.min.js:28)
    at Object.instantiate (angular.min.js:28)
    at angular.min.js:53
    at angular.min.js:44
    at n (angular.min.js:7)
    at k (angular.min.js:44)
    at e (angular.min.js:40)
    

    (anonymous) @ angular.min.js:63 (anonymous) @ angular.min.js:54 i @ angular.min.js:79 i @ angular.min.js:79 i @ angular.min.js:79 i @ angular.min.js:79 (anonymous) @ angular.min.js:80 $eval @ angular.min.js:92 $digest @ angular.min.js:90 $apply @ angular.min.js:92 j @ angular.min.js:101 r @ angular.min.js:104 w.onreadystatechange @ angular.min.js:106 angular.min.js:63 TypeError: Cannot read property 'GetRebuildStatus' of undefined at Object.getRebuildStatus (resource.js:8) at a.$scope.getRebuildStatus (dashboard-controller.js:13) at Object.fn (dashboard-controller.js:35) at Object.$digest (angular.min.js:90) at Object.$apply (angular.min.js:92) at j (angular.min.js:101) at r (angular.min.js:104) at XMLHttpRequest.w.onreadystatechange (angular.min.js:106)

  • Dave Woestenborghs 3213 posts 10797 karma points MVP 4x admin c-trib
    Oct 17, 2017 @ 05:34
    Dave Woestenborghs
    0

    Hi Tom,

    How did you install the package ? Through nuget or the package installer ?

    Maybe you can try to update the client depedency version number. Go in the config folder of your website and locate the Clientdependency.config file. In there increment the version number.

    To be sure also clear your browser cache.

    Dave

  • Dave Woestenborghs 3213 posts 10797 karma points MVP 4x admin c-trib
    Oct 18, 2017 @ 07:16
    Dave Woestenborghs
    0

    Hi tom,

    Did the suggestions in my previous post help you out ?

    Dave

  • Tom 711 posts 948 karma points
    Oct 18, 2017 @ 23:50
    Tom
    0

    Hi Dave, I upped the client dependency version and cleared cache and still the same issue.

    I installed via nuget, cleaned, rebuilt, upped the clientdependency file and cleared cache.. I also tried an iisreset

    Thanks

  • Dave Woestenborghs 3213 posts 10797 karma points MVP 4x admin c-trib
    Oct 19, 2017 @ 05:39
    Dave Woestenborghs
    0

    Hi Tom,

    Can you reproduce this on empty installation of 7.5.8 ? Do you have that error on other versions as well ?

    Dave

  • Dave Woestenborghs 3213 posts 10797 karma points MVP 4x admin c-trib
    Oct 19, 2017 @ 09:58
    Dave Woestenborghs
    0

    Hi Tom,

    If you open the backend for example in Chrome and open the developer tools.

    What do you see when you type in the console with backend open : Umbraco.Sys.ServerVariables

    And what do you see when you type : Umbraco.Sys.ServerVariables.Nexu

    Dave

  • Richard Eyres 95 posts 556 karma points
    Oct 15, 2018 @ 10:23
    Richard Eyres
    0

    Hello Dave

    I am experiencing something similar. Installed on a local copy of a 7.12.3 Umbraco, and all is great.

    Migrated to the staging server, and get an error: Cannot read property 'GetIncomingLinks' of undefined.

    Running the Umbraco.Sys.ServerVariables.Nexu returned undefined.

    This was installed via nuget on local, then uploaded to staging via ftp. App_Plugins, dll and cleared the Client Dependency as well as increasing the value, along with an application restart.

    Have i missed something? Where are the Umbraco.Sys.ServerVariables stored?

    Richard

  • Dave Woestenborghs 3213 posts 10797 karma points MVP 4x admin c-trib
    Oct 15, 2018 @ 10:59
    Dave Woestenborghs
    0

    Hi Tom,

    What version of Umbraco are you running on the staging server ?

    Dave

  • Richard Eyres 95 posts 556 karma points
    Oct 16, 2018 @ 10:19
    Richard Eyres
    0

    Hello Dave

    Sorry for the delay in response.

    Version is exactly the same (new site being developed).

    It is now functioning correctly. Not certain why it failed in the first place. Recycled the app pool, reset the site and cleared all the temp files away. Maybe we just need to give it a little time to function correctly.

    Just pleased that it is now working as expected now - its a great app and something i would love to see in the core.

  • Dave Woestenborghs 3213 posts 10797 karma points MVP 4x admin c-trib
    Oct 16, 2018 @ 10:35
    Dave Woestenborghs
    0

    Hi Tom,

    Glad to hear it's working.

    I want to integrate in to core.

    But first I need to refactor some things to make the process of integrating a lot more easier. Especially with content variants coming in V8.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft