Hi,
I have just started experimenting with zenphoto locally on Mac OS X using the MAMP environment. I have set-up a gallery easily and have now run into problems with the super gallery. I have the first gallery set-up using the default 'super gallery' theme, in the root of that gallery I have a folder with another installation of zenphoto using the normal default theme, which works fine if I access it directly but nothing appears on the main page of the 'super gallery'. Both are using separate databases and thus separate admins.
I have noticed when looking at the code generated for the main 'super gallery' index.php that the html is not being completed I must be doing something wrong but cannot figure out what. Or is it MAMP?
The HTML is below.
Thanks
Steve
Test Photo Gallery
Test Photo Gallery
I seem to have a problem posting the above HTMl - sorry
I have now setup a test gallery online at http://www.in2image.net/test/zenphoto zenphoto is my 'super gallery' using the default super gallery theme and in the root of this is another folder 'gallery2' which contains my 'sub gallery' using the default theme.
On the super gallery main page I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/themes/default supergallery/index.php:6) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/functions-image.php on line 25
Both the galleries use separate databases and the 'sub gallery' can be viewed fine at http://www.in2image.net/test/zenphoto/gallery2/
Any ideas?
Steve
Oh yes if I change the 'super gallery' theme back to default it works fine.
Hi,
Thanks for responding. Just tried the 'effervescence' super gallery theme, my online test gallery still gets this error:
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/themes/effervescence_plus supergallery/customfunctions.php:94) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/functions-image.php on line 25
My local install using 'effervescence' super gallery theme shows no links to the 'sub gallery' as with the default 'super gallery' theme.
By the way, I really love zenphoto, I have been looking for something like this for a while now, I have tried most of the others:-(
I love the clear layout of the admin, and the super gallery is just what I have been looking for! Hence my eagerness to get it working.
I have downloaded and installed last nights build. It works fine locally in my MAMP environment, I now have the 'sub gallery' showing up on my 'super gallery' main page. On my on-line install I also now have the 'sub gallery' showing up on my 'super gallery' main page but I get the following errors (yes my server provider is running php in safe mode):
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/classes.php on line 319
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/classes.php:319) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/index.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/classes.php:319) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/functions.php on line 1568
You can put an @ in front of the putenv() function which should supress the error message. We are interested in not being able to set the LANG variable, though, as that may have implications for the I18n project. Perhaps you can inquire of your ISP why you can't set that variable.
Thanks, putting an @ in front of the putenv() function suppressed the error message. I contacted my server host and asked them about the LANG variable but they replied telling me how I can switch off 'safe mode' so who knows. I guess I will switch off safe mode, as to 'safe mode gid' should I disable that as well? Guess I'll read up on that.
Thanks for your help, safe_mode & safe_mode_gid switched off on all my domains, zenphoto working ok on-line and locally - great.
New question: Is there or will there be a way to choose which thumbnail is displayed for a 'sub gallery' on the 'super gallery' main page? Am I right that at the moment it will display the first image in the first album of the 'sub gallery' ?
There is no way currently. Yes, right now it shows the first image. Choosing a thumbnail would be a good enhancement. It will take a bit of work as the admin functions are not currently aware of supergalleries.
There is another approach you can take if mod_rewrite works on your site. Rather than use the supergallery theme, you can use a regular theme. What you have to do to make this work is create a folder for each subgallery in the main zenphoto albums folder. Give it the same name as the folder for the subgallery. Then put the image you want for a thumbnail in that folder. You would also have to edit these albums to display any titles or descriptions you wanted for the subgalleries.
Another advantage of this approach is that you can mix regular albums with supergallery albums. The only drawback is that it requires mod_rewrite.