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

Errors using Gallery Module


Reply


3 Posts   1589 Views

Avatar
sh4kes

Community Member, 8 Posts

10 September 2008 at 1:07am

Using "Gallery (v0.2.2)" Module, and SS Version 2.2.2.

I downloaded the module, unzipped it to the root folder of my Silverstripe installation, then ran /db/build and also flushed the cache using ?flush=1

Then I created a new Gallery page as it saying the readme file. However, I got an error when I loaded the blank gallery page in the front end. (By clicking on the Gallery tab) At first I thought maybe it was because I didnt have any content, so I uploaded some photos, and ended up getting even more errors. Below is a copy-paste of my errors:

Notice: Undefined index: start in C:\wamp\www\silverstripe\gallery\code\GalleryPage.php on line 381

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

Notice: Trying to get property of non-object in C:\wamp\www\silverstripe\gallery\code\GalleryPage.php on line 330

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

Notice: Trying to get property of non-object in C:\wamp\www\silverstripe\gallery\code\GalleryPage.php on line 330

Notice: Undefined variable: params in C:\wamp\www\silverstripe\gallery\code\GalleryPage.php on line 332

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

Notice: Trying to get property of non-object in C:\wamp\www\silverstripe\gallery\code\GalleryPage.php on line 330

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

Notice: Trying to get property of non-object in C:\wamp\www\silverstripe\gallery\code\GalleryPage.php on line 330

Notice: Undefined variable: params in C:\wamp\www\silverstripe\gallery\code\GalleryPage.php on line 332

Is this a bug? Or am I missing something blindingly simple here?

Cheers

Avatar
makeit

Community Member, 15 Posts

16 October 2008 at 10:35am

FYI - I have this same error - Same error lines mentioned in GalleryPage.php -

PHP Notice: Undefined index: start in /home/webadmin/imakeit.net/html/gallery/code/GalleryPage.php on line 381, referer: http://www.imakeit.net/contact-us/
PHP Notice: Undefined variable: group in /home/webadmin/imakeit.net/html/gallery/code/GalleryPage.php on line 330, referer: http://www.imakeit.net/contact-us/
PHP Notice: Trying to get property of non-object in /home/webadmin/imakeit.net/html/gallery/code/GalleryPage.php on line 330, referer: http://www.imakeit.net/contact-us/
PHP Notice: Undefined variable: group in /home/webadmin/imakeit.net/html/gallery/code/GalleryPage.php on line 330, referer: http://www.imakeit.net/contact-us/
...
PHP Notice: Undefined variable: params in /home/webadmin/imakeit.net/html/gallery/code/GalleryPage.php on line 332, referer: http://www.imakeit.net/contact-us/

If you find a fix, please post. It does not seem to effect anything (page looks fine but takes a bit to load) but it is filling my error_log.

Bob

Avatar
sh4kes

Community Member, 8 Posts

16 October 2008 at 5:29pm

Apparently the guy that originally developed the gallery module no longer supports it, hence the lack of support on this issue atm. I did however find a thread in these forums with some answers to these errors, but my gallerypage still would not function. I *had* the post bookmarked but deleted it later on cos I am no longer using silverstripe...sorry bud.