![]() |
|
Super Gallery problem - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Super Gallery problem (/thread-2369.html) |
Super Gallery problem - stevenew - 2008-03-08 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
I seem to have a problem posting the above HTMl - sorry Super Gallery problem - macalter - 2008-03-08 While my install is hosted (*nix) on a web server, I too am using separate SQL databases for each install. And sounds like same problem as Steve's but he's looked at the HTML, I didn't Super Gallery problem - stevenew - 2008-03-08 Hi, I have tried using the same database with a different prefix for the 'sub gallery' but that gave me other problems so I thought simpler to use 2 separate ones. The result however was the same nothing showing up on the main page of the 'super gallery'. Super Gallery problem - stevenew - 2008-03-09 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. Super Gallery problem - stevenew - 2008-03-10 I have done fresh installs on both the test gallery online and on my local system but still cannot get the super gallery working on either. Online I still get the same error message above. Everything else seems to work OK. Anyone any ideas? Thanks Super Gallery problem - sbillard - 2008-03-10 There seems to be a problem with the 'default' supergallery theme. Please try the 'effervescence+' version for now while we figure this one out. Super Gallery problem - stevenew - 2008-03-10 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:-( Super Gallery problem - sbillard - 2008-03-10 OK, found the problem. It was more extensive than I thought. Tonight's nightly build will contain the fixes. Super Gallery problem - stevenew - 2008-03-10 Great, I'll download that tomorrow. Thanks for your help. Super Gallery problem - stevenew - 2008-03-11 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 Super Gallery problem - sbillard - 2008-03-11 You can put an Super Gallery problem - stevenew - 2008-03-11 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. Super Gallery problem - sbillard - 2008-03-12 If you have the option of switching off safe mode, do it. Many things get broken by safe mode and nothing is really made safe by it. I don't know what safe mode gid is. Sorry. Super Gallery problem - trisweb - 2008-03-12 Just turn off safe_mode and safe_mode_gid - neither are truly safe, as sbillard says, and they just cause problems. Super Gallery problem - stevenew - 2008-03-12 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' ? Super Gallery problem - sbillard - 2008-03-13 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. |