Zenphoto 1.2.7

acrylian Administrator, Developer
We’re pleased to announce the release of version 1.2.7. This release includes bug fixes, many feature improvements and refinements, and updates to plugins and translations. See the changelog for more information - http://www.zenphoto.org/2009/11/version-127/

Download 1.2.7 on the Home page - http://www.zenphoto.org
«1

Comments

  • Thanks a lot for the great job.

    Laurent
  • Congrats on the newest release! Thanks for the work you two put into zenphoto. :)

    @Laurent: There is no .htaccess file included because setup.php creates it if it doesn't already exist. The default .htaccess is now in `zp-core/htaccess`.
  • Oups, very sorry. I'll edit my previous post

    Thanks
  • No worries :) I just realized that particular change isn't listed in the changelog.
  • Sorry to be a pain re: htaccess. I'm trying to upgrade from 1.2.6_RC1. Although I have not integrated Zenphoto with WordPress, the latter is in my root folder, so Zenphoto is effectively a subfolder within the 'root' WordPress.

    Previous versions with .htaccess in the Zenphoto root always allowed it to display properly. Now I am getting a 404 error (page Not found - WordPress message) everytime I load the subfolder, despite editing the "htaccess" file (it's not called .htaccess?) in zp-core.

    Any advice would be much appreciated :)
  • The file needs to be placed in the root folder of your Zenphoto install and renamed `.htaccess`. Setup should have done that for you, but if it did not, then you will have to do so.

    note: Setup will only copy this file if it is not an upgrade install. This is so that it will not replace a `.htaccess` file you have deliberately removed.
  • Nice new features in the update. Thanks!

    But, the "Default" theme does not work correctly with the new version.
  • Another error - this time using the "Zenphoto default" theme.

    On each image, I get the error,

    "Fatal error: Call to undefined function getimagemetadata() in /home4/valaddso/public_html/RileyGallery/themes/zenpage-default/image.php on line 86"
  • More info on the "Default" theme issue.

    When I try to view an image, I get this error:

    Fatal error: Call to undefined function is_valid_video() in /home4/valaddso/public_html/RileyGallery/zp-core/template-functions.php on line 2628
  • Surely someting is corrupt in your install. getimagemetadata() is defined in the template-functions.php script. Likewise, templtate-functions.php line 2628 is `* @return string`, part of a comment.

    Perhaps you have an old version of that script instead of the one from 1.2.7?
  • sounds like either the theme or the script could be out of date.

    i got similar errors, but with a custom theme. then i realized that some functions were renamed, such as getImageEXIFData() being now getImageMetaData()
  • I tried to upgrade from 1.2.6 to 1.2.7...earlier setup page opened...And I just checked permissions dialog to something (don't remember but url said it as =2) and now it just returns 404 error.

    I have zp-config.php in zp-core directory now, .htaccess is also there...but still 404 error.

    Error_log shows:

    [02-Dec-2009 01:23:21] PHP Warning: Missing argument 2 for getPlugin(), called in /home/user/public_html/siteurl.com/gallery/index.php on line 96 and defined in /home/user/public_html/siteurl.com/gallery/zp-core/functions.php on line 628
    [02-Dec-2009 01:23:21] PHP Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/siteurl.com/gallery/index.php on line 96

    Pls help.
  • acrylian Administrator, Developer
    `zp-config.php` should be located in `zp-data` after running setup as well as the htaccess file.
  • Flawless upgrade from the nightlies. Great work to the developers, looking forward to using Zenphohto for ages to come.
  • Two things that are not working for me after upgrading to 1.2.7:

    1. First I always had the .htaccess file in the root folder of ZP. I read here and there that it should now be placed in /zp-data, but doing so makes it impossible to reach the subalbums. Placing it back to the root folder fixes the problem. How can I place .htaccess into /zp-data without problems?

    2. I have a dynamic album, but the slideshow doesn't work for that album. It seems to keep loading forever.
  • Upgraded smoothly.

    Moved my plugins into plugins/ dir(outside from zp-core) and cannot get it working. Any comments on this change? Should I patch my plugins to use the new path(I use PLUGIN_FOLDER as in examples)? Any instructions?
  • acrylian Administrator, Developer
    @jackdaw:
    1. No, the `.htaccess` file should be as ever in the root of your Zenphoto install. The template for it is in `zp-core` and will be used by setup to create that file if it does not exist. If you already have one you can keep it actually.
    Different since 1.2.6 actually is that the `zp-config.php` file should be in `zp-data`. You can copy your existing over. Also the template tat is also in `zp-core` will be used to create a new one by setup.

    2. Actually we had fixed that. Sure that you have the correct file of the slidesshow?

    @divan: What plugins? Only third party / custom made ones should go there. All standard ones that come with the release should remain in `zp-core/zp-extensions`.
  • is it me, or is uploading photos through the admin backend not pulling dates from the photos anymore? the date used to be when the photo was taken, but now the date is when the photo was uploaded.
  • @rid:
    tested with 1.2.7 - dates are taken from EXIF correctly.

    @acrylian:
    I've made some plugins, one of them - image-bulkedit plugin, based on image-massedit plugin. I used massedit as a template. So, now, after upgrading to 1.2.7, in respect to the new policy of plugins and extensions, I copied my plugin to the zenphoto/plugins/ directory and it stopped working. I investigated changes in new image-massedit plugin to understand what have been changed, but nevertheless there were some problems with pathes. So I simply moved my plugin to the zp-core/zp-extensions and it work. But I beleive the plugins should work flawlessly after moving from 1.2.6's zp-core/plugins/ dir to the 1.2.7's /plugins/, shouldn't they? Or some instructions for 'porting' should be provided for plugin writers to avoid such things.
  • acrylian Administrator, Developer
    Well, they will only work if you don't use hardcoded paths (which I don't know). You should use defines, in this case the constant USER_PLUGIN_FOLDER to get the path of the plugins root folder. See also here: http://www.zenphoto.org/support/topic.php?id=5040&page=2
  • @acrylian, thanks. That's it. I used PLUGIN_FOLDER constant, for sure.
  • There is an issue. If there is no IPTC data, dates will not be picked up from the EXIF fields. There is a bracket out of place in the `updateMetaData()` function. There is one after the line

    `$this->setCopyright($this->get('IPTCCopyright'));`

    which should be above the line

    `/* "import" metadata into Zenphoto fields as makes sense */`
  • @sbillard:
    thanks. it's working again. found some minor bugs when i was trying to figure out what was wrong:

    functions.php line 70: Oritinal should be Original
    image_album_statistics line 406: space needed between " and alt
  • Thanks, those will get updated next change I make.
  • @sbillard -

    Sorry it took me awhile to get back here.

    I'm using Hostmonster Simplescripts to do the updates, so they handled the switch from 1.2.6 to 1.2.7.

    Apparently, their updating system isn't all that good.

    So if I uninstall & reinstall zenphoto, you think the templates should work?

    I'd like to get the default template working again. I like the dark version. It goes with my Wordpress front-end. The combination of Wordpress and Zenphoto makes web gallery creation and management a snap! Now if we just had a way to do paypal, or at least collecting a selection of images (for ordering purposes).....

    Check it out: http://www.valaddsoft.com/PhotoGallery/

    Thanks for all the effort you folks put into this!!!

    Stuart
  • acrylian Administrator, Developer
    Sorry, we don't know anything and don'T support install scripts like SimpleScripts (as stated on the forum rules and the installation page). Please install Zenphoto as described on our user guide.

    And there is a paypal plugin.
  • acrylian,

    I too use HostMonster.com for my hosting, and installed & upgraded with "Simple Scripts". I get the same error message of:

    Fatal error: Call to undefined function is_valid_video() in /home2/lesdanse/public_html/zenphoto/zp-core/template-functions.php on line 2628

    I know you don't support simple scripts, but I suspect you are going to get a lot more complaints since Sooooo many people use this vendor. They broke your install, so I understand it's their fault. But it's affecting your users, and we are kinda stuck since we are insulated from the install and upgrade process. We do have full access to the file structure, and can can replace or edit any files we want. If there is a quick way to fix this, by replacing a file or editing a script, I'm happy to. Or, maybe a solution is to do a fresh install to a new directory, and port all our galleries over.

    If you can a look at this error, it will be a great help for me, slrtx1, and lots of other users who will otherwise be stuck.

    www.lesdanseurs.com/zenphoto

    Thanks
  • acrylian Administrator, Developer
    We did get a lot of complains of SimpleScripts specifically in the past and because of that we don't support it and we don't know what it is doing. We actually don't care as it is not our tool. IF you have problems ask the vendor of SimpleScripts.

    So the fix is to do a "normal install" yourself. Sorry.
  • @acrylian

    I don't mind doing a normal install.

    I'm just glad to know this isn't a Zenphoto issue and that there's a fix.

    Actually the simplescripts "clean install" works just fine.

    It's the upgrade install that doesn't work.

    Yes, one fix is to do a "normal install", but if some prefer the ease of running simplescripts, here's another solution:

    1. Copy your image folders from the album folder to a safe place
    2. Uninstall Zenphoto via simplescripts
    3. Delete the folder with the old zenphoto stuff (simplescripts doesn't do this)
    4. Do a clean install of the newer version of Zenphoto. Use the same gallery (folder) name as the previous version, so you don't loose any links you may already have.
    5. Copy your image folders back to the album folder. (Folder names are album names.)

    I've done this before, so I know it works.

    I'll let Hostmonster and the simple script folks know about this issue.

    Stuart Riley
  • acrylian Administrator, Developer
    Good, might be that they just miss if we changed details regarding file/foldernames. I will see if I can add this to the troubleshooting at least as a little help later.
Sign In or Register to comment.