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

Gallery Module Error


Reply

7 Posts   2028 Views

Avatar
Prabhjeet

18 June 2008 at 9:02pm Community Member, 7 Posts

Well, I installed gallery. After getting done when i see gallery page, i get this error. Any Solution ??

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Avatar
Willr

18 June 2008 at 10:05pm Forum Moderator, 5511 Posts

These are not errors as such - just warnings that the code not up to scratch. Open up that file and go to line 330 where the errors coming from and post it here, most likely its something like

$Variable->Something();


and that variable does exist.. Easy fix is to wrap a if($Variable) { // now do whatever } around where it is throwing that notice!

Avatar
Prabhjeet

19 June 2008 at 6:36pm (Last edited: 19 June 2008 7:55pm), Community Member, 7 Posts

Nope. This solution doesn't work.

Any else ?

Avatar
Willr

19 June 2008 at 6:41pm Forum Moderator, 5511 Posts

What is the line 330 / line before tho?

Avatar
Prabhjeet

19 June 2008 at 7:55pm (Last edited: 19 June 2008 7:58pm), Community Member, 7 Posts

these are 330, 331, 381 code lines:

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

line 381: if( ! is_numeric( $_REQUEST['start'] ) )

Avatar
Prabhjeet

19 June 2008 at 8:02pm Community Member, 7 Posts

And these line from 326 to 339:

line 326: if( $imgThumbnail ) {
               line 327: /** ...add the URL of the formatted image to our item... **/
               line 328: $item->ThumbnailURL = Director::baseURL().$imgThumbnail->Filename;
               line 329: $item->JSLightWindow = 'lightwindow';
               line 330: if( ! $item->PopupEmbed && $group->Type != 'Documents' && $group->Type != 'WebPages' )
               line 331: $item->JSMedia = $this->Title . '[Media]';
               line 332: $item->PopupParams = $params;
               line 333: /** ..create a link to view the 'Normal' version of the image **/
               line 334: $item->FirstItemLine = $cpt % $this->MediaPerLine == 1;
               line 335: $item->LastItemLine = $cpt % $this->MediaPerLine == 0;
               line 336: $item->ShowTitle = $this->ShowTitle;
               line 337: $item->ShowSize = $this->ShowSize;
               line 338: $item->ShowImageDimensions = $this->ShowImageDimensions;
            line 339: }

Avatar
Willr

20 June 2008 at 5:45pm Forum Moderator, 5511 Posts

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

Does group exist?

Try a Debug::show($group);