Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

bug with the gallery


Reply


25 Posts   12052 Views

Avatar
powla

Community Member, 11 Posts

17 August 2008 at 10:59pm

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 ?

Avatar
Willr

Forum Moderator, 5513 Posts

18 August 2008 at 9:30am

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

Avatar
powla

Community Member, 11 Posts

18 August 2008 at 11:04am

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 ?

Avatar
rofar

Community Member, 4 Posts

15 September 2008 at 11:59am

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.

Avatar
rofar

Community Member, 4 Posts

15 September 2008 at 12:08pm

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!

Avatar
Willr

Forum Moderator, 5513 Posts

15 September 2008 at 9:49pm

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.

Avatar
rofar

Community Member, 4 Posts

16 September 2008 at 6:44am

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

Avatar
rofar

Community Member, 4 Posts

16 September 2008 at 6:44am

Do we have an estimated time for the next release?