Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?)

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1207 Views
  • Wilson
    Avatar
    Community Member
    63 Posts

    Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    Hiya,

    My client is running many SS subsites I've built off of their primary domain, but their primary domain is off-limits to me. We just noticed that their Image Gallery is hanging up when access through a subdomain.

    To illustrate, in the dev environment, they accessed ALL their subsite admin areas at one URL, http://mystagingserver.com/admin, which was fine but when we went live they now access it via, http://subsitename.domain.com/admin.

    This causes the image gallery image links to break in the Admin area (it's fine in live). But more importantly it throws jQuery errors and doesn't allow any new images to be added to the gallery.

    Uncle Cheese, is this is a known issue? I'm running a version from about 3-4 weeks ago. Any ideas what the fix might be, I'm assuming it's relatively simple, but haven't been able to track it down.

    Many thanks!

    Wilson

  • UncleCheese
    Avatar
    4085 Posts

    Re: Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    What version of SS?

    Be sure to post questions related to DOM in the DOM forum, as I'm much more likely to find them there.

  • Wilson
    Avatar
    Community Member
    63 Posts

    Re: Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    Ah, sorry, will do on DOM forum next time.

    SS version is 2.4 Beta1.

    I know params are a bit vague, but I just wanted to double-check you or someone didn't know the answer right off of the bat.

    Thanks very much for your time.

    Wilson

  • UncleCheese
    Avatar
    4085 Posts

    Re: Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    You might want to upgrade.. 3-4 weeks ago sounds about the time that I branched off the 2.3 version. Are you using SVN? The 2.4 version is on the trunk. I think it's also on the download page for DOM in the SS Extensions section.

  • Wilson
    Avatar
    Community Member
    63 Posts

    Re: Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    Thanks! Yes, I may/should do the upgrade, but everything else is working so perfectly, I'm tempted not to rock the boat.

    I've traced it down to the two jQuery JS libs simply not being loaded when launching the 'Add photos to album' dialog WITH a subdomain. With no subdomain, they load.

    I believe the solution will involve the THIRD_PARTY_X constant.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    Well nothing's going to rock the boat more than running a version of DOM that isn't compatible with your SS version, right?

  • Wilson
    Avatar
    Community Member
    63 Posts

    Re: Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    Good point! In this particular case, the project has been delivered and installed on their production servers, so I was hoping to email them the fix. We just missed it in on our QA server testing.

    Thanks Uncle Cheese for all your hard work.

  • Wilson
    Avatar
    Community Member
    63 Posts

    Re: Quick Question re: Dataobject_manager/image_gallery (Unc. Cheese?) Link to this post

    I upgraded to HEAD and am still getting the bug. Uncle Cheese, are there any cache files created for DOM or Image gallery? If so, perhaps there's an incompatibility with those and the subsite system.

    Seems like it boils to down to these two lines not firing consistently in DataObjectManager_Popup in DataObjectManager:

    Requirements::javascript(THIRDPARTY_DIR.'/jquery/jquery.js');
    Requirements::javascript(THIRDPARTY_DIR.'/jquery-livequery/jquery.livequery.js');

    May lie outside of DOM, of course.

    Thanks,
    Wilson

    1207 Views
Page: 1 2
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.