Dynamic Albums - error when viewing an image

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

  • acrylian Administrator, Developer
    Mind telling us the basic info like Zenphoto version, theme etc.?
  • Sure :)

    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.
  • Just running locally via MAMP software on my iMac.
  • Hmmmm.... I've just created a Dynamic-album (using same search results) while in the ZenPhoto Default theme and this one worked.

    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.
  • acrylian Administrator, Developer
    If I recall right the zpArdoise theme uses the Gallerific JQuery script (at least optional)? This actually leaves the "normal" way theme works a little. So it might be that someting is not implemented correctly as dynamic albums are different to real albums. If you can't reproduce this with a standard theme that could be a hint though.

    But I really can't answer this as I am not familiar with 3rd party themes.
  • Hi, Thanks for the feedback. Unfortunately my second attempt at creating a dynamic-album (still within ZenPhoto's default theme) created the "album name" error once more.

    This suggests maybe it's not the theme's fault???

    m.
  • Please set the define `DEBUG_ERROR` to `true` in the `global-definitons.php` script. This will provide some context with the error message.

    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.
  • Hello,

    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.
  • I should add (if it make any difference) that the error code above was viewed this morning, while in the third-party theme... but the error was, on Friday, also seen in the Default theme.

    m.
  • I have, just this moment, tried to make a Dynamic Album while still in the ZenPhoto Default theme and although the album was indeed created, I again get the (above) error specifically when viewing the "image" page (the page you get to after clicking the thumbnail, but prior to viewing the Full Image).

    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.
  • Hi again,

    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.
  • Ok, I know I am sorta talking to myself here - but the more info the better, I guess.

    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.
  • acrylian Administrator, Developer
    We will have to reproduce that. Currently I have no time. Best you open a ticket with an description what fails when (the topic gets a little "crowded").
  • Ok, I'll raise a Bug Ticket. One thing to note, I've just upgraded to 1.4.1.1 and now can't seem to replicate the issue.

    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.
  • Unfortunately the error report you got does not pinpoint where the problem originated. However, if it is not reproducable on the current release we are pretty much going to have to shelve it. It may have been caused by some bug in an older version. Who knows. Anyway we don't have time to investigate except on the current release.
Sign In or Register to comment.