Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    May 12, 2015 @ 13:59
    Ismail Mayat
    1

    DependencyHandler issue

    Guys,

    We are running umbraco 7.2.4 on azure instance.  On some of our doc types we have nupickers and our own property editor which renders a drop down list.  When we hit nodes using those doc types we get js error in console 

    umbraco/DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLm…eXBlcy9UcmVlTWVudS9BY3Rpb25OZXdSZWxhdGlvblR5cGUuanM7&t=Javascript&cdv=0:11 Error: Argument 'nuPickers.Shared.RadioButtonPicker.RadioButtonPickerEditorController' is not a function, got undefined

    When in web.config we set debug=true then everything loads up fine and no errors.  Any ideas?

    Regards

     

    Ismail

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    May 12, 2015 @ 14:02
    Hendy Racher
    1

    Hi Ismail, what version of nuPickers are you using ?

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    May 12, 2015 @ 14:04
    Dave Woestenborghs
    2

    Hi Ismail,

    I think you need to whitelist your domain for client dependency

    See this post for more information : https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/61145-Packages-only-work-in-debug-mode?p=0#comment207470

    Dave

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    May 12, 2015 @ 14:05
    Dan Diplo
    2

    Have you updated to latest versions of Client Dependency and NuPickers? That fixes it for me (non azure). 

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    May 12, 2015 @ 15:24
    Ismail Mayat
    0

    @Hendy using 1.3.0

    @Dave will take a look at that

    @Dan if all else fails may try that.

    Cheers

    Ismail

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    May 12, 2015 @ 15:30
    Hendy Racher
    101

    Hi Ismail, you want to be running v1.4.0 or later (v1.5.0 should be safe that's bug fixes & new features without any breaking changes)

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    May 12, 2015 @ 15:41
    Ismail Mayat
    0

    Dave,

    Whitelist is up to date so its not that. The latest version of clientdependancy is 1.8.3.1 which is what I am on.  I will look at updating nupickers but I dont think that is the issue as I have other property editors which are causing problems as well.

    Regards

    Ismail

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    May 12, 2015 @ 15:43
    Dan Diplo
    0

    Have you cleared the client dependency cache, forced a reload? Does it work in debug?

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    May 12, 2015 @ 15:58
    Ismail Mayat
    0

    Dan,

    Yup no joy, however it all works fine in debug. I am just building out an upgraded nupickers see what that does will report back shortly.

    Regards

    Ismail

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    May 12, 2015 @ 16:00
    Dave Woestenborghs
    0

    What other packages are you using ? I've seen problems like this when a package uses embedded resources for js and css. And some I have seen that use a version querystring in the packagemanifest for the client side resources.

    Dave

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    May 12, 2015 @ 16:36
    Ismail Mayat
    2

    Hendy,

    I upgraded to latest nupickers and that has fixed the issue just doing a bit more testing.

    Regards

    Ismail

  • Lachlann 344 posts 626 karma points
    Nov 30, 2015 @ 15:07
    Lachlann
    0

    Hi Guys,

    I am having a similar client dependency problem. I inherited a site that was an upgrade of an old v4 site.

    The upgraded v7 site had nupickers installed and everything worked fine. We then did some development on it and at some point the nupickers stopped working and began displaying behaviours similar to what is described in all the posts where people have problems with client dependancy.

    From what I have read the best practice is to add in a whitelist of the domains into the client dependency. However I have tried this a few times and it never works. I am working on a local site and even if i turn debug to true in the web config i still get problems.

    I noticed that the files that are 404ing have an extension of .nu on them which having looked into the source of the nupickers should get removed by the package.

    I am really really confused by this and any light you could shed on this would be very welcome.

    I am running nupickers 1.5.2 and Umbraco version 7.2.8 assembly: 1.0.5675.23466

  • Lachlann 344 posts 626 karma points
    Nov 30, 2015 @ 15:24
    Lachlann
    0

    Update If i turn debug to false. I dont get the 404 errors any more but i just get a bit 500 error for /umbraco/backoffice/nuPickers/XmlDataSourceApi/GetEditorDataItems

    But i cant seem to get an error message.

    L

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Nov 30, 2015 @ 20:59
    Hendy Racher
    0

    Hi Lachlann,

    I'm guessing you've tried all the usual things: deleting the Client Dependency files, clearing caches...

    At a guess, can you identify any changes in web.config that might have an effect ?

    Is there anything in the UmbracoTraceLog file about the 500 error ?

    Thanks, Hendy

  • Lachlann 344 posts 626 karma points
    Nov 30, 2015 @ 22:02
    Lachlann
    0

    Hey Hendy, Thanks for the reply. I have tried all the usual things as you say.

    I cant think of any changes in the web config that could affect it, But i will do a win merge comparison to find out exactly what has changed..

    In the Umbraco Trace Log file the only error I get is:

    ERROR Umbraco.Web.WebServices.ScheduledPublishController - [P20284/T1/D29] Error executing scheduled task System.Data.SqlClient.SqlException (0x80131904): A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) ---> System.ComponentModel.Win32Exception (0x80004005): The specified network name is no longer available

    I don't think this could be related could it?

    Perhaps the web config will shed some light. cheers L

  • Lachlann 344 posts 626 karma points
    Dec 01, 2015 @ 15:51
    Lachlann
    0

    Thanks for your response Hendy, embarrassingly enough for me this was traced back to a rogue poorly written URlRewrite rule.

    L

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Dec 01, 2015 @ 16:21
    Hendy Racher
    0

    Good to hear you've got it working :)

Please Sign in or register to post replies

Write your reply to:

Draft