17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 11023 Views |
-
Re: bug with the gallery

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 ?
-
Re: bug with the gallery

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 -
Re: bug with the gallery

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 ?
-
Re: bug with the gallery

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.
-
Re: bug with the gallery

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!
-
Re: bug with the gallery

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.
-
Re: bug with the gallery

16 September 2008 at 6:44am
Great, willr!!! I am eager to get rolling with this! I love the SilverStripe CMS so far!
-
Re: bug with the gallery

16 September 2008 at 6:44am
Do we have an estimated time for the next release?
| 11023 Views | ||
| Go to Top | Next > |



