Copied to clipboard

Flag this post as spam?

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


  • Hefin Jones 39 posts 161 karma points
    Sep 07, 2015 @ 09:18
    Hefin Jones
    0

    Error: Argument 'KS.CalendarController' is not a function, got undefined

    We have this package setup on our website to handle events, but we have recently noticed that property editor isn't rendering in the Umbraco backend (see screenshot) .... on looking at Google Chrome console we see the following errors:

    Error: Argument 'KS.CalendarController' is not a function, got undefined

    Any ideas what maybe causing this?

    Screenshot

  • Ole Martin Bakke 112 posts 624 karma points
    Sep 07, 2015 @ 09:32
    Ole Martin Bakke
    0

    What version of Umbraco and the package are you using? Have you dona any changes to the package or the Umbraco installation prior to this issue?

  • Hefin Jones 39 posts 161 karma points
    Sep 07, 2015 @ 09:51
    Hefin Jones
    0

    The version of Umbraco is 7.1.8 - we haven't done any changes to the package or the Umbraco installation - we have a replica site running with the same Packages installed, which doesn't have this issue.

    The package version we are using (on both sites) is 0.1.7.3

  • Ole Martin Bakke 112 posts 624 karma points
    Sep 08, 2015 @ 06:58
    Ole Martin Bakke
    0

    I haven't seen this issue before, so I'm not sure how to fix it. It sounds like the file editor.controller.js is missing or not loaded. Can you check that this file exist in /App_Plugins/KS.Umbraco7.Calendar. You could also try to edit the package.manifest file. Locate the line that loads the editor.controller.js file, and alter the number after the '?'. Then you have to restart your site, this can be done by touching the web.config-file. Hopefully this will update the script loaded by the clientdependency, so it will include the file. While you're at it, also check that evry file listed in the package.manifest exists.

    You could also put you solution in config-mode, this is done in web.config. Then Umbraco loads all the scripts individualy and you can check the source in Chrome Developer tools to see if all the scripts loads.

  • Hefin Jones 39 posts 161 karma points
    Sep 09, 2015 @ 08:55
    Hefin Jones
    0

    Ok we seem to have resolved the issue but notice that "Recur Until" and "Except On" fields are displayed by default (albeit without editors) - is this normal behaviour? See screenshot:

    enter image description here

    And something that used to happen to us periodically was that when we select a date / time using the picker the value that gets entered into the textbox is "YYYY-09-DD 09:48" - whereby only the month is populated. See screenshot:

    enter image description here

    Any ideas what might be causing this?

  • Ole Martin Bakke 112 posts 624 karma points
    Sep 10, 2015 @ 06:37
    Ole Martin Bakke
    0

    This type of error with the datetimepicker can happen after you upgrade from an older version to 0.1.7.3. This version comes with a new datetimepicker and should be resolved by clearing the browser cache.

    The lables for "Recure until" and "Except on" showing is most likely a bug. I will look into that for the next release.

  • Hefin Jones 39 posts 161 karma points
    Sep 10, 2015 @ 11:51
    Hefin Jones
    0

    Thanks for your help, I've upgraded our site to Umbraco 7.2.8 and cleared cache both issues have now been resolved.

Please Sign in or register to post replies

Write your reply to:

Draft