1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Date picker stopped working J!3.9.3 Fabrik 3.9

Discussion in 'Community' started by ontarget, Feb 12, 2019.

  1. ontarget

    ontarget Member

    Level: Community
    Hi i just updated my site and can no longer use date picker in my calendar viz - see console error

    date-min.js:3 Uncaught TypeError: Date.parseDate is not a function
    at Object.makeCalendar (date-min.js:3)
    at Object.e.extend.$owner (mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38)
    at Object.setUp (date-min.js:3)
    at Object.e.extend.$owner (mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38)
    at Object.initialize (date-min.js:3)
    at Object.<anonymous> (mootools-more.js?4c6dab2eff07404ee76bbee0265de1e9:27)
    at Object.e.extend.$owner [as initialize] (mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38)
    at new <anonymous> (mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:37)
    at Object.<anonymous> (form.js:3)
    at Array.forEach (<anonymous>)
    makeCalendar @ date-min.js:3
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    setUp @ date-min.js:3
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    initialize @ date-min.js:3
    (anonymous) @ mootools-more.js?4c6dab2eff07404ee76bbee0265de1e9:27
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    (anonymous) @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:37
    (anonymous) @ form.js:3
    (anonymous) @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:5
    each @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:9
    (anonymous) @ form.js:3
    (anonymous) @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:9
    forEach @ mootools-more.js?4c6dab2eff07404ee76bbee0265de1e9:139
    addElements @ form.js:3
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    (anonymous) @ VM35754:51
    execCb @ VM35730:29
    check @ VM35730:18
    (anonymous) @ VM35730:23
    (anonymous) @ VM35730:8
    (anonymous) @ VM35730:23
    v @ VM35730:7
    emit @ VM35730:23
    check @ VM35730:19
    (anonymous) @ VM35730:23
    (anonymous) @ VM35730:8
    (anonymous) @ VM35730:23
    v @ VM35730:7
    emit @ VM35730:23
    check @ VM35730:19
    (anonymous) @ VM35730:23
    (anonymous) @ VM35730:8
    (anonymous) @ VM35730:23
    v @ VM35730:7
    emit @ VM35730:23
    check @ VM35730:19
    (anonymous) @ VM35730:23
    (anonymous) @ VM35730:8
    (anonymous) @ VM35730:23
    v @ VM35730:7
    emit @ VM35730:23
    check @ VM35730:19
    enable @ VM35730:23
    init @ VM35730:17
    E @ VM35730:14
    completeLoad @ VM35730:28
    onScriptLoad @ VM35730:29
    load (async)
    h.load @ VM35730:34
    load @ VM35730:29
    load @ VM35730:18
    (anonymous) @ VM35730:17
    (anonymous) @ VM35730:8
    execCb @ VM35730:29
    check @ VM35730:18
    enable @ VM35730:23
    init @ VM35730:17
    (anonymous) @ VM35730:26
    setTimeout (async)
    h.nextTick @ VM35730:32
    g @ VM35730:26
    fetch @ VM35730:17
    check @ VM35730:19
    enable @ VM35730:23
    enable @ VM35730:27
    (anonymous) @ VM35730:23
    (anonymous) @ VM35730:8
    v @ VM35730:7
    enable @ VM35730:22
    init @ VM35730:17
    E @ VM35730:14
    completeLoad @ VM35730:28
    onScriptLoad @ VM35730:29
    load (async)
    h.load @ VM35730:34
    load @ VM35730:29
    load @ VM35730:18
    fetch @ VM35730:17
    check @ VM35730:19
    enable @ VM35730:23
    enable @ VM35730:27
    (anonymous) @ VM35730:23
    (anonymous) @ VM35730:8
    v @ VM35730:7
    enable @ VM35730:22
    init @ VM35730:17
    E @ VM35730:14
    completeLoad @ VM35730:28
    onScriptLoad @ VM35730:29
    load (async)
    h.load @ VM35730:34
    load @ VM35730:29
    load @ VM35730:18
    (anonymous) @ VM35730:17
    (anonymous) @ VM35730:8
    execCb @ VM35730:29
    check @ VM35730:18
    enable @ VM35730:23
    init @ VM35730:17
    (anonymous) @ VM35730:26
    setTimeout (async)
    h.nextTick @ VM35730:32
    g @ VM35730:26
    fetch @ VM35730:17
    check @ VM35730:19
    enable @ VM35730:23
    enable @ VM35730:27
    (anonymous) @ VM35730:23
    (anonymous) @ VM35730:8
    v @ VM35730:7
    enable @ VM35730:22
    init @ VM35730:17
    (anonymous) @ VM35730:26
    setTimeout (async)
    h.nextTick @ VM35730:32
    g @ VM35730:26
    requirejs @ VM35730:31
    (anonymous) @ VM35754:48
    c @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    fireWith @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    C @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    n @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    XMLHttpRequest.send (async)
    send @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    ajax @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    p.(anonymous function) @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    getScript @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    (anonymous) @ VM35754:6
    setTimeout (async)
    (anonymous) @ VM35754:2
    (anonymous) @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    globalEval @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    _e @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    append @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    (anonymous) @ window.js:3
    c @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    fireWith @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    C @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    n @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    XMLHttpRequest.send (async)
    send @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    ajax @ jquery.min.js?4c6dab2eff07404ee76bbee0265de1e9:2
    loadContent @ window.js:3
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    makeWindow @ window.js:3
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    initialize @ window.js:3
    (anonymous) @ mootools-more.js?4c6dab2eff07404ee76bbee0265de1e9:27
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    (anonymous) @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:37
    b.getWindow @ window.js:3
    addEvForm @ fullcalendar-min.js:3
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    editEntry @ fullcalendar-min.js:3
    e.extend.$owner @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:38
    (anonymous) @ fullcalendar-min.js:3
    c @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:124
    w @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:128
    m @ mootools-core.js?4c6dab2eff07404ee76bbee0265de1e9:119
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    Did you clear all Joomla and browser cache?
    Did you only update Joomla or also Fabrik?
    Which exact Fabrik: 3.9 official version or some GitHub version?
     
  3. ontarget

    ontarget Member

    Level: Community
    Did you clear all Joomla and browser cache? YES
    Did you only update Joomla or also Fabrik? BOTH
    Which exact Fabrik: 3.9 official version or some GitHub version? https://github.com/Fabrik/fabrik

    I have rolled my installation back to v3.8.11 again and its working.
    I am going to try the project on a clean install of Fabrik and joomla just in case there was something else affecting it.
     
  4. troester

    troester Well-Known Member Staff Member

    Level: Community
    I assume this is an "old" calendar viz (not fullcalendar)?

    I can see an error, too.
    Slightly different
    Uncaught TypeError: jQuery(...).wickedpicker (resp. clockpicker) is not a function (date.js:603)
    coming from the new time pickers in the GitHub version.

    They are working in normal forms, popup forms and fullcalendar viz but not in old calendar viz.
    Smaller issues:
    https://github.com/Fabrik/fabrik/issues/2085

    Fabrik3.9 (with old datepicker) is working in old calendar viz (although I can see issues with updating modified events in the viz: you have to reload)
     
    Last edited: Feb 13, 2019
  5. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Do you have both types of date picker on your form?

    There are now two date elements - the original 'date' which has been updated to use a better time picker, but still uses the old (deprecated) J! date picker widget, and the new 'jdate' element, which uses the "new" (since J! 3.7) J! date picker widget.

    A limitation of this is that you can't use both types of date element on the same form, as one of them overrides the Date.parseDate function needed by the other (outside my control, happens in J!'s JS).

    -- hugh
     

Share This Page