SimplePortal
Support => English Support => Topic started 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:
<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>
-
That block relies on the SMF Gallery Mod (http://custom.simplemachines.org/mods/index.php?mod=473), do you have it installed?
-
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.
-
go to gallery admin and just click to the "save" button in the settings area.
-
Did that ...a few times.
Same error in the error log, and no images shown. :(
-
And there is a picture in the gallery? :X
Bye
DIN1031
-
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. :)
-
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
-
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)
-
Okay normal this should be available...
Search in the file SPortal.php for
$GD_Installed = function_exists('imagecreate');
and add after this:
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
-
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
-
Its a bug with the SimplePortal Gallery Block. It has been added to the BugTracker.
Thank you for reporting it! :D
-
Woot, came here for that exact problem it worked for me too thank you.