Having a bit of a problem with my gallery since upgrading.
All regular albums have the 'next page' and 'prev page' links but the dynamic albums aren't showing them. On my gallery, these links only show if the page is full and a new page has been created for the extra thumbnails (for both regular and dynamic albums).
Also, for the dynamic albums, it wont let me change what I sort them by whereas the regular albums do.
Only seems to be an issue since upgrading and I didn't touch my themes album.php page (or any of my theme for that matter). I've also changed to the default theme and the buttons dont show up there either.
Any help once again appreciated.
Yes, prev/next are of course only used if there are more page. Certainly that works with dynamic albums as with normal albums.
You can only sort dynamic albums generally via options, you cannot sort them manually since the "take" images from other real albums. I think there was an issue regarding search (and dynamic albums are that technically) that is fixed in the trunk nightly build yet. Maybe try that if you can.
Yeah, I know it should work with both - it has in the past. It still isn't working for me with dynamic albums even after installing the nightly.
The sorting I'm still not sure it does work. Filemtime is supposed to be in order of when it's been uploaded, correct? That doesn't seem to be the case for me.
Also, now another issue, is that subfolders aren't being made even when I ask it to make a subfolder.
As you can see here: http://i.imgur.com/7wMw4.png it isn't auto-generating the sub-folder name.
In the case above, 'Lexus' is a regular folder and I want to add different sorts of Lexus to that folder. I remember in the previous version I had, when I started typing the new album name, it would appear next to lexus/
Yep, I know I can't create subfolders to dynamic albums.
I am not sure I understand. If you create the album via the backend, you need to choose specifically if it should be a subalbum of in this case "lexus". How it is sorted depends on your settings, if set to manual it is sorted like you sorted. Otherwise use by title or name.
Ok, got the uploading to subfolder working. Not sure why it wasn't working, but happened to work today.
The next and previous pages aren't working for dynamic albums and neither is the sort by most recent upload.
In regards to the next page, prev page:
I have it set to 51 thumbnails per page in rows of 3. So, I get the correct amount of thumbnails per page, but I don't get multiple pages (for dynamic galleries).
In regards to sorting:
Like I've said, normal albums are sorting by upload time. Dynamic isn't. As a side note, sometimes the most recently uploaded album gets put in the first spot and other times it doesn't. But, all in all, this doesn't work.
Refreshing the database didn't help and neither did refreshing the metadata (trying anything that seems fairly safe for me to do).
I also disabled a few plugins... that didn't help either.
I know it can't be the themes fault because I'm not getting multiple pages on other themes too.
So, I'm not sure. Any suggestions? I've uploaded the zp-core, index.php and plugins folders from the current release and the nightly a few times. It's not a folder outside of that which could be causing it to not work? Anything in zp-data?
Yeah, makes no difference.
Should I perhaps install an older version of zenphoto?
Should I revert to a backuped version? It was done just prior to updating but was a level 5 compression.
I literally have no idea where to take it from here so any guidance appreciated.
All caches cleared (browser/zenphoto html cache)? Any errors in the server logs?
I have really no idea why this would happen if all else is correct.
Of course if you restored an zenphoto db backup from an older version with a newer one that might cause issues (but that is noted on the user guide). Use db backups only on the same version (at least the same like 1.4.3.x)
Ok, having a look at the error_log:
Getting this a fair bit:
[11-Sep-2012 04:22:37] PHP Fatal error: Call to a member function getImages() on a non-object in /home/xxx/public_html/yyy/zenphoto/zp-core/template-functions.php on line 1872
and
A couple of these:
[11-Sep-2012 07:27:33] PHP Notice: class-album detected an invalid folder name: bmw/m5. in /home/xxx/public_html/yyy/zenphoto/zp-core/class-album.php on line 68
for two separate 'albums'. Neither actually appear on the server.
I reuploaded both the template-functions.php and class-album.php files just to make sure and that didn't help.
If you did not want to keep it, you should close it.
The errors you are seeing are either from someone "probing" your site or from a seriously damaged database.
I know it can't be the themes fault because I'm not getting multiple pages on other themes too.
Just so we are all on the same page: "other themes" only matters if it is one of the ones distributed with Zenphoto. Not sure why you were not specific.
What I'm saying is that my theme should have next and previous buttons. To test to make sure it wasn't some sort of code problem coming from my theme (the joshuaink theme) I tested to see if the next and previous buttons DID show on the default theme, which they didn't.
You make it sound like I'm really trying to avoid giving you information and this is all fun and games...