Hi,
I have just upgraded to 1.1.5 and my gallery works fine. However I am including part of it into my blog using the template-functions.phph, and now I get the following error on my blog:
[b]
Warning: Cannot modify header information - headers already sent by (output started at /mnt/149/sda/a/d/frederic.rivain/blog/index.php:50) in /mnt/149/sda/a/d/frederic.rivain/photo/zp-core/functions.php on line 1561
[/b]
Here is the code I use to integrate the Gallery into my blog (basically it displays a random photo + the list of albums):
`
<?php
/* Affichage d'une image alétoire tirée de la galerie ZenPhoto + la liste des albums */
define('ZENFOLDER', 'zp-core');
define('WEBPATH', '../photo');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
$randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo "getTitle() ."'><font color=black><img src='".$randomImage->getThumb()."' alt=".$randomImage->getTitle()." border=1/></font>"; ?>
<?php while (next_album()): ?>
<a>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a>
<?php endwhile; ?>
`
Any idea?
I tried to look on the forum, removed a couple of blank lines at the end of php files in zp-core, then upgraded to the latest nightly build without success.
Thanks for the help.
Fred