![]() |
|
1.4.2.3 - error message instead of gallery main page - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: 1.4.2.3 - error message instead of gallery main page (/thread-9904.html) Pages:
1
2
|
1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-04-29 Hi, after I upgraded to 1.4.2.3 (latest attempt was with latest nightly), instead the gallery's main page I see error message I can see and navigate inside albums by pointing directly to their address. But link to the main page on the top gives weird url - instead the proper gallery url there is additional /page/2/ at the end ( http://my.gallery.url/page/2/). Downgrading to 1.4.2.2 solved the issue for this time. 1.4.2.3 - error message instead of gallery main page - sbillard - 2012-04-29 What theme are you running? This error is because a function for returning the number of images in an album was called when there was not an album present. (As might be the case on the gallery index.) 1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-04-29 Default theme. It's "improved" copy for my needs but no matter - switching to the "original" default didn't help. 1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-04-29 Well, just tested one idea and now everything is OK. Commented out 3 lines from template-functions.php The /page/2/ seems to be normal as albums in gallery index are on 2 pages. 1.4.2.3 - error message instead of gallery main page - sbillard - 2012-04-29 Well, those lines of code reside in the function 1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-05-02 what are those lines exactly for? Maybe I miss now some useful feature? 1.4.2.3 - error message instead of gallery main page - acrylian - 2012-05-02 Quote:Returns true if this page has image thumbs on it 1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-06-29 It's still problematic. Now after I installed a new version (nightly beta) the first gallery page just returned blank. Also with original "Default" template for 1.4.3! Again I had to comment out these three lines in template-functions.php Are you really sure that these lines are necessary? Without them my site works normally, no side effects. function isImagePage() { 1.4.2.3 - error message instead of gallery main page - sbillard - 2012-06-30
1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-07-02 OK, but how those lines in template-functions.php should make the newer versions better than 1.4.22 if they "CANNOT" have any impact? Is it needed for other templates? Where (in which file) to look for the bug? May it be because php version is earlier than 5.3 (5.2.17) ? Etc etc etc 1.4.2.3 - error message instead of gallery main page - sbillard - 2012-07-02 If you are calling the function from a place not setup for it you will get an error. But the standard 1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-07-02 Indeed.... one separate test page shows everything without problems. So I'm confused. Where could be the "place not setup for it"? I'm pretty sure it should be somewhere else than theme files - as in my gallery page I got the same error with original "default" template where I hadn't changed anything. Could some 3rd party plugin generate such error? 1.4.2.3 - error message instead of gallery main page - sbillard - 2012-07-02 You should search for the use of 1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-07-03 Well, your hint helped me and the source of my problem was found on 1st attempt It was zenFBcommon.php (from the Facebook plugin). I don't know why but error generating code was on line 84: if (isImagePage()) { Perhaps you don't want to know how I solved it At least temporarily it says now that "if this is not an album page": if (!isAlbumPage()) { Tested. It works. Picture is normally posted to my FB wall. 1.4.2.3 - error message instead of gallery main page - Jaanus - 2012-07-03 Have to be honest. I believed that I had the latest version of zenFBsuite, but updated it now just in case. And everything is fine without need to change somewhere the code. Sorry for this panic 1.4.2.3 - error message instead of gallery main page - acrylian - 2012-07-04 Good that we figured it out. I think those checks are not correct and meant to check the theme page. That should actuallyl be done by using the 1.4.2.3 - error message instead of gallery main page - micheall - 2012-07-04 I'll take a look, but I never ran into any issues like that. What I was aiming for with the isImagePage() was attempting to use the function as the documentation said, which is "Returns true if this page has image thumbs on it" Up until now this is the first I've heard of that being incorrect or having any errors. Did something change in the usage of this function? Edit: 1.4.2.3 - error message instead of gallery main page - acrylian - 2012-07-04 No, those functions did not change. isImagePage() is meant to check if we have thumbs on a album.php page if the album has images and sub albums. I agree that the doc is not really clear what this is about... There is no way to check if there is any thumb in general on a page and specifically not on a news or pages page. Your only chance is to check for the actual theme page. 1.4.2.3 - error message instead of gallery main page - micheall - 2012-07-04 Hmm... ok I'll have to address this then. Thanks for the clarification. 1.4.2.3 - error message instead of gallery main page - acrylian - 2012-07-04 Take a look at the html meta tags plugin as that does basically the same things technically. |