Hi
From the first page of my site www.outzeal.com when I click on the link "next" or "2" to access the second page the following message comes:
"The Zenphoto object you are requesting cannot be found"
On some occasions it works but mostly it doesn't.
Thanks
Comments
Opened an "issue"(ticket) on GitHub.
https://github.com/zenphoto/zenphoto/issues/587
You've mentioned it happens with combinews feature but I havent enabled that on my zenpage theme.
The proper link should be:
http://www.outzeal.com/index.php?p=gallery&page=2
This error leaves out "p=gallery&"
Sometimes it happens and sometimes it doesnt.
Regarding the support build - is it a new one which caters for this issue? I just tried one last week.
regards
In this case the problem was caused by something else entirely.
I think the fix will also solve your issue.
The "support build" is the latest official release but with the latest bug fixes and enhancements. Changes are almost daily.
This fix is now in the support build.
So please try it.
https://github.com/zenphoto/zenphoto/archive/master.zip
is it possible to update some relevant files regarding this issue
regards
http://www.zenphoto.org/news/theming-tutorial#duplicating-cloning-a-theme-for-customizations
In this case you can just copy the `themes/zenpage/functions.php` file (from the support build) to your theme folder.
In this case it does not affect the theme.
functions.php solved the issue, thanks however I've discovered something else i.e. When I create a database backup in the overview section by clicking on the backup/restore button, the backup file is created but at the same time all my theme settings are changed and comments deleted. I then have to restore to my old settings by using the restore command.
At the moment I am updating the zp-core folder from the support build. If it does not solve the problem, I'll open up a new issue.
regards
however i'll be grateful if you can confirm the functioning logic of the search feature:
From the gallery (http://www.outzeal.com) if you search for the word "mountain", it gives results.
Once you enter an album e.g. TREKKING (http://www.outzeal.com/index.php?album=trekking)
and then search for the word "mountain", it gives NO results.
Is this normal or some fault.
Thanks
Edit: It seems you have the search option "search within results" enabled. Try disabling that.
Default search is set to "New" not within.
Do not return album, image, news, pages matches are not checked.
Cache expiry is set to 0 mins
As soon as you are on an album page (album.php) the search stays within the album.
Somehow the "New" option is not processed.
https://github.com/zenphoto/zenphoto/issues/591
When you are in an album your search is done on items that are contained in that album. This has nothing at all to do with the option you reference. That option states that the normal search from search page results will be either a search of the results or a new search. Of course you can override this behavior in your theme by passing the appropriate parameters to the function that prints the form, but I suspect that it will end up confusing your users.
1) In a gallery that has only the main albums (e.g. homepage) everything is searched.
2) From a gallery if you enter an album which has sub-albums in it:
The search feature searches within album description e.g. http://www.outzeal.com/index.php?album=trekking
And not within subalbum (thumbnail) description e.g. http://www.outzeal.com/index.php?album=trekking/photos
3) When you enter the final album (which has no subalbums) the search is within both the album description and image description e.g.
http://www.outzeal.com/index.php?album=trekking/photos/northern-areas-of-pakistan
To me point no 2 is causing the confusion i.e. why there is no search within the thumbnail description or for image decription when you are in an album that has sub-albums?
Regards
From viewing your gallery it would appear that there are no images within any of the parent albums, so naturally they will be no images retrieved from searches in those albums.
You can, of course, alter this as I mentioned. Simply pass all the names of all the subalbums you wish to be searched.
just started php recently so i guess it'll take me some time to modify the functions which I find a bit confusing.
regards
You can look however at the e.g Zenpage theme and our site theme. Both are on GitHub in separate repos.
thanks
`
<?php if ($_zp_current_album->name == "scuba-diving") { ?>
#header {
background-image: url(<?php echo $_zp_themeroot; ?>/images/some_image.ext);
}
<?php } ?>
`
http://www.outzeal.com/index.php?album=scuba-diving
After this it reverts to the original setting. Can you please send me some code to rectify this. I am sorry I've taken up lot of your time.
Thanks
A bit different but easy to modify. Just copy and paste extra lines for more albums.
A note: the code uses the album name and not its
title (the name is the name of the album folder)
`
#header {
background-image: url(
<?php if ($_zp_current_album->name == "scuba-diving") { echo $_zp_themeroot; ?>/images/some_image.ext<?php } ?>
<?php if ($_zp_current_album->name == "skiing") { echo $_zp_themeroot; ?>/images/another_image.ext<?php } ?>
<?php if ($_zp_current_album->name == "trekking") { echo $_zp_themeroot; ?>/images/yet_another_image.ext<?php } ?>
);
}
`