Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » bug with the gallery

Our old forums are still available as a read-only archive.

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

Page: 1 2 3 4
Go to End
Author Topic: 11599 Views
  • powla
    Avatar
    Community Member
    11 Posts

    Re: bug with the gallery Link to this post

    Hi,
    I'm getting the following error repeated:

    Notice: Undefined variable: group in C:\wamp\www\silverstripe\sapphire\gallery\code\GalleryPage.php on line 330

    Line 330 of GalleryPage.php is:

    if( ! $item->PopupEmbed && $group->Type != 'Documents' && $group->Type != 'WebPages' )
    $item->JSMedia = $this->Title . '[Media]';

    Any ideas ?

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: bug with the gallery Link to this post

    It probably needs a isset() wrapped around $group before you evaluate it. So you would change that to

    if(isset($group) && ! $item->PopupEmbed && $group->Type != 'Documents' && $group->Type != 'WebPages' )
    $item->JSMedia = $this->Title . '[Media]';


    Tho this will change the functionality as looking how it works group might not always be set. But try it and see what happens

  • powla
    Avatar
    Community Member
    11 Posts

    Re: bug with the gallery Link to this post

    Thanks willr - I ended up find a fix from "saimo" in the forum.

    Now I'm having issues with lightbox working... the thumbanils open up to a new page, rather than using the "lightwindow" effect - would you have any ideas on what might be causing this ?

  • rofar
    Avatar
    Community Member
    4 Posts

    Re: bug with the gallery Link to this post

    Greetings. I am new to SilverStripe CMS and this forum. I am excited about this project! I just found out about it. I can see that it is powerful stuff and I am eager to be a part of what is happening here.

    I did successfully install a test site. I am presently working on localhost, using a Windows XP machine and WAMP server. I have enabled mod rewrite.

    I tried to install the gallery module. I was able to install it, however, I am getting the same errors that others have mentioned here. Rather disappointing to see that.

    The errors are identical, with line 381, 330 and 332, as lekoala pasted. I did try the solution that willr offered, however that did not appear to fix the problem.

    I did go to the Ticket #2602 and it does not appear to be fixed yet. I would appreciate some help. I want to move forward on using SilverStripe CMS. Thanks.

  • rofar
    Avatar
    Community Member
    4 Posts

    Re: bug with the gallery Link to this post

    Also, this piecemeal way of fixing the code is not the right approach at all. The code needs to be fixed and a new GalleryPage.php file provided. I think there is too much confusion in this thread. I tried to follow the fixes and ended up with a worse problem than when I started. I reverted to the original page and am waiting for a proper fix. Thanks!

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: bug with the gallery Link to this post

    We are currently revisiting the gallery module. Sadly the current developer has since left and nobody has picked up on it but Josh is currently working on getting a stable version released.

  • rofar
    Avatar
    Community Member
    4 Posts

    Re: bug with the gallery Link to this post

    Great, willr!!! I am eager to get rolling with this! I love the SilverStripe CMS so far!

  • rofar
    Avatar
    Community Member
    4 Posts

    Re: bug with the gallery Link to this post

    Do we have an estimated time for the next release?

    11599 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.