Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DatePickerField not popping up calendar

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 5794 Views
  • Shawn Parr
    Avatar
    Community Member
    60 Posts

    Re: DatePickerField not popping up calendar Link to this post

    Is the popup really a part of DOM, or is there a popup controller in the base SS install? We are having a lot of trouble hunting this down, and it is very weird:

    If we create a new install, then the popup will work, until we do a ?flush=all then it no longer works. Whenever it doesn't work getting the source of the popup shows that the main jquery file from jsparty is not in the list of scripts to load.

    Since it works, then stops, we started looking into caching, manually deleting SS caches, making sure apache wasn't caching, making sure to clear browser caches religiously, etc. Still no dice.

    We are actively digging around in things, but we are feeling pretty lost on this. It is really weird to upgrade an existing site by using an svn switch, and it doesn't work, while creating a new site, and finishing the install by using the exact same svn switch works fine. Until you flush.

    I tried doing a flush on your demo sites, and of course they survived just fine. Apparently 2.3.3 is just not for us or something. It's also weird as everytime we think of a new possibility, we can pretty easily discount it (reverse proxy issue, nope test server isn't behind the proxy, APC issue, nope test server doesn't use APC, etc, etc).

  • Shawn Parr
    Avatar
    Community Member
    60 Posts

    Re: DatePickerField not popping up calendar Link to this post

    Okay, I got this working. It still doesn't make sense why it wasn't working, but now it is, I had the make the following changes:

    DataObjectManager.php, line 495:

    Requirements::javascript('jsparty/jquery/jquery.js');

    to

    Requirements::javascript($this->BaseHref() . 'jsparty/jquery/jquery.js');

    DatePickerField.php, line 70:

    Requirements::javascript("jsparty/jquery/plugins/livequery/jquery.livequery.js");

    to

    Requirements::javascript($this->BaseHref() . "jsparty/jquery/plugins/livequery/jquery.livequery.js");

    And finally I had to comment out SimpleTinyMCEField.php line 216. That was pulling a different version of jQuery (1.3) that was conflicting with the jsparty version.

    That being said, the above code should all work, as jsparty is in the same place no matter what. So I'm not sure what in my system is making it not fulfill the requirements statements when they are normal relative references. But it only seems to happen inside the DOM files, and it is consistent across a couple different servers and quite a few sites.

    The weirdest part is that it seems like any requirements statement works, unless it is pointing at a file inside of jsparty. I'm a bit baffled why that would be the case. But at least for now we have it working, and in the future I have something to keep my eye out for in testing.

  • UncleCheese
    Avatar
    4085 Posts

    Re: DatePickerField not popping up calendar Link to this post

    There is another user who experienced this problem. It would be interesting to see what your configurations have in common. That the pathing problem only applies to that one file is quite mind-boggling.

    In the meantime, I've updated SimpleTinyMCEField to use the standard jquery file in jsparty.

  • cygnet
    Avatar
    Community Member
    20 Posts

    Re: DatePickerField not popping up calendar Link to this post

    to Shawn Parr: it seems that we have something in common, because after applying your fixes I have datepicker pop-up working as well

  • Shawn Parr
    Avatar
    Community Member
    60 Posts

    Re: DatePickerField not popping up calendar Link to this post

    Intriguing. Feel free to drop me a line at parrs at nsula dot edu and we can chat about configs that would probably be a bit more intense than this forum would like.

  • UncleCheese
    Avatar
    4085 Posts

    Re: DatePickerField not popping up calendar Link to this post

    And definitely keep me in the loop with your discoveries. Just post them on this thread. Thanks.

  • cygnet
    Avatar
    Community Member
    20 Posts

    Re: DatePickerField not popping up calendar Link to this post

    ok. I'm going on holidays tomorrow, but once I get back, I'll drop you a line.

  • malinux
    Avatar
    Community Member
    23 Posts

    Re: DatePickerField not popping up calendar Link to this post

    Hi UncleCheese

    I had the same datepicker popup problem and followed Shawn Parrs suggestion and now it works for me. See me configuration here:

    http://www.silverstripe.org/all-other-modules/show/268708?start=0#post268886

    5794 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.