Hello,
I have been making various Sub-albums using the the Dynamic-album feature.
I will have a main album that holds ALL the images for a specific client, let's call them Dave.
So, I have a Dave album that I fill with Dave's images. But Dave wants to subcategorise his images. I /could/ make ordinary sub-albums and move the images, but then you couldn't "view all".
So, instead I'd tag ALL Dave's images with a Dave tag. I'd also tag all his Fruit images with a Fruit tag. I can then do a Dave AND Fruit search and save as a Dynamic-album inside Dave's main album.
The odd thing is that sometimes this works, but sometimes it doesn't.
Now, when I say it doesn't work, what I mean is "yes" the album is created and "yes" opening the album does show all the appropriately tagged images, but when you click on an Image thumbnail and move to the main Image page, it seems to loose it's way breadcrumb-wise and I get a BIG pink message saying: "Zenphoto encountered an error. Error: The album named cannot be found."
The odd thing is that if I cut & paste the actual address:
http://localhost:8888/zenphoto/Clients/Dave/acc-024.jpg.php...into an different browser's window, the page displays without the error.
I do have one Dynamic-album that doesn't show the error with any of the images in it, but when I make any others, it errors as described. The page technically works, the image is there in the image page - it's just this confusion over the album name.
Any thoughts? I've searched the forum, but can't /seem/ to see anyone with same error.
Cheers,
m.
Comments
Zenphoto version 1.4.1 [7551] (Official Build)
Theme:
zpArdoise
Vincent3569
Version 1.3, 06/03/2011
(but I have switched back to ZenPhoto's own default theme and the same error occurs.
m.
I wonder if it's *creating* the Dynamic-album in that specific 3rd party theme that causes a problem (even when later viewing through another theme).
I'll try making some more in the default theme and see what happens.
m.
But I really can't answer this as I am not familiar with 3rd party themes.
This suggests maybe it's not the theme's fault???
m.
Basically the message is saying that an album has been instantiated with an empty folder name. That is, of course, not good. Perhaps the error context will give us more of a clue.
Back in the office after the weekend.
I have just amended global-definitions as suggested ("true" in lowercase), saved the change and refreshed the site in my browser (I'm running locally on my Mac via the MAMP app). I've revisited one of the error pages and the error message (within the page itself) is:
Zenphoto encountered an error
Error: The album named cannot be found.
Backtrace:
-> Album->loadFileNames (class-album.php [349])
-> Album->getAlbums (class-album.php [375])
-> Album->getNumAlbums (template-functions.php [423])
-> getNumAlbums (template-functions.php [4286])
-> setThemeColumns (index.php [138])
I hope this helps. After my previous message I did retry making a Dynamic Album within the Default theme and it worked that time... so it seems a little bit random/hit & miss as to whether the error occurs.
Thanks again for your assistance
m.
m.
I shall add extra info, by saying the within the "Create Dynamic Album" Admin window, I did change the suggested Album Name and also the chosen location (to make it into a subfolder of a previously created album).
m.
I'll keep adding in information as I try different things.
Ok, I just deleted the previously erroring Dynamic Album (made earlier this morning) and went through the same process again, just now.
This time, when on the (make a) Dynamic Album Admin page, I just left all the settings on default, so it would be saved in the site's root and with the default album name.
When browsing the album it seemed to work without error. So I then chose the "move" option to shift the Dynamic Album into being a subalbum of another album.
Now, after that move, it's giving the same error again
Zenphoto encountered an error
Error: The album named cannot be found.
Backtrace:
-> Album->loadFileNames (class-album.php [349])
-> Album->getAlbums (class-album.php [375])
-> Album->getNumAlbums (template-functions.php [423])
-> getNumAlbums (template-functions.php [4286])
-> setThemeColumns (index.php [138])
(and I'll point out that this is being done in ZenPhoto's Default theme.
m.
I'm still in ZenPhoto's Default theme. If I save a Dynamic Album direct into the default root address, it works. Move it to become a sub of another existing album and it errors.
Then i thought, the existing album that I'm trying to put it into, was originally created while I was using the 3rd party zpArdoise theme.
So, in the default theme, I made myself a brand new "test" album and drag & dropped my erroring Dynamic Album into "test"... low and behold, still no erroring.
I'm starting to think it's not the Dynamic Album that's at fault, but possibly the pre-existing album I want to make it a subalbum of?
m.
I'm not sure if that's because the specific album I was having issue with (that the dynamic subs were going into) has been deleted and replaced while in the Default theme... or whether it's due to the upgrade.
Cheers,
m.