Super Gallery problem

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Photo Gallery</title>
<link rel="stylesheet" href="/zenphoto/themes/default supergallery/styles/dark.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="Gallery RSS" href="http://localhost:8888/zenphoto/rss.php" />
<script type="text/javascript" src="/zenphoto/zp-core/js/scripts-common.js"></script>
</head>

<body>

<div id="main">

<div id="gallerytitle">
<h2>Test Photo Gallery</h2>
</div>

<div id="padbox">

<div id="albums">
<div class="album">
<div class="thumb">


----------
I seem to have a problem posting the above HTMl - sorry

Comments

  • 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 :)
  • 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'.
  • 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.
  • 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
  • There seems to be a problem with the 'default' supergallery theme. Please try the 'effervescence+' version for now while we figure this one out.
  • 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.
  • OK, found the problem. It was more extensive than I thought. Tonight's nightly build will contain the fixes.
  • Great, I'll download that tomorrow. Thanks for your help.
  • 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.
  • 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.
  • trisweb Administrator
    Just turn off safe_mode and safe_mode_gid - neither are truly safe, as sbillard says, and they just cause problems.
  • 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.
Sign In or Register to comment.