• Hi,

    I just installed zenphoto 1.2.7 and wpress 2.9 from scratch, and while zenphoto seems to be working fine, I cannot add photos to wordpress using the plugin (the shortcode for galleries work fine). More specifically, the plugin find the zenphoto galleries but it does not show the thumbnails nor there is on it any button to include the photos in the post. The shortcodes work fine; it retrieves the pictures and links them correctly. I am also having issues with the widget not showing the images. Any ideas?

    Best,
    Marshall

    PS: The plugin looks great, I hope I can get it to work!

    http://wordpress.org/extend/plugins/zenphotopress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • So, the shortcode is working but the widget and the popup are not?
    That’s weird, especially since the shortcode and the widget share most of the code.

    Are you experiencing the problem with all your Zenphoto albums or only with some of them?
    Also: try to enable debug mode (see the ZPP FAQ) to gather some more info.

    Have you tried the fix mentioned in the post? http://wordpress.org/support/topic/342119

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    FYI, I had this same problem and the fix in navjotjsingh’s link fixed it for me!

    I never use the shortcodes for some reason… probably should learn to.

    So, it wasn’t showing thumbs for any of your albums? And it was fixed by changing $query[0] to $query[1] ?

    This is really a strange bug. I can’t seem to reproduce it on my machine.

    If I may: how is your gallery structured? Do you have subalbums, unpublished albums, password-protected albums or dynamic albums?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    So, it wasn’t showing thumbs for any of your albums?

    It showed no thumbs for my album but ONLY in the pop up. I was in Edit Post, clicked on ZenPhotoPress, and went to my album to pick an image to put in my post and no images showed.

    And it was fixed by changing $query[0] to $query[1] ?

    Correct.

    how is your gallery structured? Do you have subalbums, unpublished albums, password-protected albums or dynamic albums?

    At this request, of course you may ask and I will provide extra help! See, I have multiple ZenPhoto sites on my various domains which had different results!

    Site #1 has the blog at http://domain1.com and the gallery is at http://domain1.com/zenphoto – This one had NO problems with the plugin as-is!

    Site #2 has the blog at http://domain2.com and the gallery is at http://gallery.domain2.com – This one broke!

    Both sites have sub-albums up the wazoo (Site #2 has FAR more than Site #1). Neither have unpublished albums today, though sometimes Site #2 does. Neither have any password protected or dynamic albums.

    Hmm, the plot thickens 😀

    So, just to recap: you have two completely independent installations of both WordPress, Zenphoto and ZenphotoPress. On #2 you have the modified version of ZPP (i.e. $query[1]) while on #1 you kept the standard version (i.e. $query[0]).

    It may help if I can have a look at the galleries: would you mind sharing the actual addresses? My email is webmaster @ my username . net 😉

    Thanks

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Your recap is correct!

    Email sent from my username @ my username.org 😉

    Ok, thanks to Ipstenu and navjotjsingh, I managed to find out where this skeaky bug was hiding.
    I just released a new minor version of ZPP (1.6.2) to address this specific issue.

    For everyone interested in technicalities, the problem was around line 307 in zenphoto_bridge.php, which read

    if ($query[0]['parentid']) {
        return album_protected_recursive($query[0]['parentid']);
    }

    while it should have been

    if ($query[0]['parentid']) {
        return ZenphotoBridge::album_protected_recursive($query[0]['parentid']);
    }

    So, the missing “ZenphotoBridge” namespace was causing the call to fail every time, thus leading to the missing thumbnails.
    Changing the array index to $query[1] was not the real solution, but it made sure the if clause was never true, thus sidestepping the issue entirely.

    Hello,
    I’ve got the similar problem. My domain is http://www.zasklem.cz and there’s my WP installation. My ZenPhoto gallery is in the subdomain galerie/zasklem.cz. Plugin doesn’t work, fixes (both $query[1] and ZenphotoBridge) also doesn’t work for me. I’ve selected http://galerie.zasklem.cz in plugin configuration, but plugin still inserts links like http://www.zasklem.cz/galerie/album/image, which doesn’t work (404 error). galerie/zasklem.cz/album/image would be the only correct link here.
    Thank you, Dusan.

    This is strange. I tried testing with a similar domain and it works.
    Are you sure the configuration is correct? Try enabling debug mode (see the FAQs) and posting the output.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That’s how my setup is too and it works fine.

    Your URL should be http://galerie.zasklem.cz and your datapath is something like /home/zasklem/public_html/galerie/zp-data right?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: ZenphotoPress] cannot see thumbnails in the add-photo pop-up. widget doesn’t work.’ is closed to new replies.