hi
I have a page on which I display a custom slider (I have a custom script in codeBlock).
in this script,I have this expression :
`
$galleryobject = new Gallery();
$albumobject = new Album($galleryobject, "album_name");
$imageobject = newImage($albumobject, "image_name.jpg");
`
It works fine on my prod site.
But with 1.4.6 dev, I have this error :
`
{29429:Tue, 04 Mar 2014 13:21:50 GMT}
REMARQUE : Undefined property: Gallery::$id dans /.../zenphoto_dev/zp-core/class-gallery.php à la ligne 1026
Gallery->__toString called from trim (unknown)
from Album->__construct (class-album.php [785])
from eval (template-functions.php(4353) : eval()'d code [20])
from printCodeblock (template-functions.php [4353])
from include (pages.php [15])
from include (index.php [8])
from include (index.php [130])
from index.php [23]
{29429:Tue, 04 Mar 2014 13:21:50 GMT}
ERREUR GÉNÉRÉE PAR L’UTILISATEUR : Instanciation invalide de l’album : gallery () n’existe pas dans /.../zenphoto_dev/zp-core/class-album.php à la ligne 819
trigger_error called from Album->_albumCheck (class-album.php [819])
from Album->__construct (class-album.php [790])
from eval (template-functions.php(4353) : eval()'d code [20])
from printCodeblock (template-functions.php [4353])
from include (pages.php [15])
from include (index.php [8])
from include (index.php [130])
from index.php [23]
`
where is the matter ?
Comments
Also you should use `newAlbum` instead of the constructor `new Album` since 1.4.5:
http://www.zenphoto.org/news/zenphoto-1.4.5#new-function-newalbum-for-instantiating-albums
So:
`
<?php
$album = newAlbum('<album>');
$image = newImage($album, '
`