SimplePortal

Support => English Support => Topic started by: Geri on September 26, 2008, 06:21:31 PM

Title: smf gallery undefined index
Post by: Geri on September 26, 2008, 06:21:31 PM
Hi everybody.
I need some help.

Undefined index: gallery_url
File: /home/arthalia/public_html/Sources/SPortal.php
Line: 1419

This is the error I get after I create a Gallery block. What do I need to change?
That line (1419) is:

                     
Code: [Select]
<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $gallery_picture['id'] . '"><img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $gallery_picture['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $gallery_picture['filename'] . '" height="78" width="120" ')  . ' border="0" /></a>

Title: Re: smf gallery undefined index
Post by: Nathaniel on September 26, 2008, 08:07:20 PM
That block relies on the SMF Gallery Mod (http://custom.simplemachines.org/mods/index.php?mod=473), do you have it installed?
Title: Re: smf gallery undefined index
Post by: Geri on September 27, 2008, 04:19:22 AM
Yes, I installed it yesterday and it work's ok. Just that error when I make a gallery block in the portal.

Btw.
I have the SMF 1.1.6 version installed.
Title: Re: smf gallery undefined index
Post by: asude on September 27, 2008, 07:16:41 AM
go to gallery admin and just click to the "save" button in the settings area.
Title: Re: smf gallery undefined index
Post by: Geri on September 27, 2008, 08:10:13 AM
Did that ...a few times.
Same error in the error log, and no images shown. :(
Title: Re: smf gallery undefined index
Post by: ???1031 on September 28, 2008, 01:15:25 AM
And there is a picture in the gallery? :X

Bye
DIN1031
Title: Re: smf gallery undefined index
Post by: Geri on September 28, 2008, 03:59:38 AM

Yes. Of course there are pictures. I made a test category and put some pictures in it to see if everything works.
C'mon guys, I'm not that stupid. :)
Title: Re: smf gallery undefined index
Post by: ???1031 on September 28, 2008, 05:21:50 AM

Yes. Of course there are pictures. I made a test category and put some pictures in it to see if everything works.
C'mon guys, I'm not that stupid. :)
Sorry to ask, which version did you install of the gallery? :X

Bye
DIN1031
Title: Re: smf gallery undefined index
Post by: Geri on September 28, 2008, 05:36:22 AM
The latest compatible with SMF 1.1.6 => Gallery 1.9.1

http://custom.simplemachines.org/mods/index.php?mod=473

No problem for asking,... I was just kidding. :)

I have now the default SMF core theme.

I also have those mod's instaled:


1.   Blog (for 1.1.5)   1.11     
2.   BoardHover Mod   1.2.1 
3.   Auto Embed Video/Audio Clips   3.0     
4.   SimplePortal   2.0.2
5.   SimplePortal   2.0.4     
6.   SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update   1.0     
7.   Show Local Url Titles   1.1     
8.   SMF 1.0.14 / 1.1.6 Update   1.0     
9.   Collapsible Categories   1.0.1     
10.   SMF 1.0.14 / 1.1.6 Update   1.0     
11.   SMF Gallery Lite   1.9.1     
12.   AdSense Section Targeting Mod

And a different language. But I did the manual modifications to language files.
(...I did not translate anything SP and Gallery related, I'm not shure what to translate so that it does not affect the codes..., I just renamed the language files affected by mod's...and overwrite my specific language files)

Title: Re: smf gallery undefined index
Post by: ???1031 on September 28, 2008, 09:09:02 AM
Okay normal this should be available...

Search in the file SPortal.php for
Code: [Select]
$GD_Installed = function_exists('imagecreate');

and add after this:

Code: [Select]
if(empty($modSettings['gallery_url'])) {
global $boardurl;
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

I don't know why it is not saved... i tried it on my local install and this also happen... even after the change... only if a use a complete different Dir than it work... that is strange oO.

Bye
DIN1031
Title: Re: smf gallery undefined index
Post by: Geri on September 28, 2008, 04:45:48 PM
Worked! :applause:
No errors so far, and everything looks ok.

Many thanks!

PS.
 Maybe it's a bug.
But you can tell better if a gallery or portal bug. :) Or just when the 2 of them come together. Like husbands. ;D
Title: Re: smf gallery undefined index
Post by: Nathaniel on September 28, 2008, 11:11:10 PM
Its a bug with the SimplePortal Gallery Block. It has been added to the BugTracker.

Thank you for reporting it! :D
Title: Re: smf gallery undefined index
Post by: Darnell on October 01, 2008, 04:56:51 PM
Woot, came here for that exact problem it worked for me too thank you.
SimplePortal 2.3.8 © 2008-2024, SimplePortal