I'm super tired, so I'll
leave this up to the changelog...
* Faster image loading by using the cached image path directly if the file exists.
* Custom suffix for image pages (eg: `/alb/img1.jpg` » `/alb/img1.jpg.php`) Defaults to `.php`, is backward-compatible with older URLs by 301-redirect, and makes sense.
#16 * Now compatible with PHP safe_mode restriction.
* Fix for permissions wrongly set in cache folder (could not delete cached images).
* Added optional Unsharp Mask for thumbnails, defaults to off. Config param: `thumb_sharpen`.
* Refactored the way requests are handled. Split into 2 include files: `controller.php` and `functions-controller.php`.
* mod_rewrite rules for sub-albums complete; works to infinite path depth.
* Much improved SEO (Search Engine Optimization) - URLs are always 301-redirected to their single canonical form;
#16 (custom suffix) fixes image pages not appearing in indexes.
* Major code refactoring and reorganization.
* Warning if you use the default password. </small>
* Better filtering of the album folder/image filename to avoid duplicate database entries.
* Collected garbage in garbage collection methods. Fixed several bugs.
You know where to get it! Report back here with issues, or
submit them straight to the bug tracker with lots of detail please!.
All in all, this is a
great release. Hopefully I'll keep up this pace and have 1.1 out in a similar time frame.
Update: 1.0.8.1 was released within 12 hours of 1.0.8 to fix a bug with custom thumbnails and the default image page suffix. You should upgrade if your theme uses custom image sizes.Update: 1.0.8.2 fixes a nasty bug with new albums/images and new installations, where no default data would be set.
Comments
Might be a cache problem, but the cache seems to be configured correctly, because the thumbnails are being generated. Any suggestions Tristan?
The function for reference:
`// Get Random Images
function getRandomImages() {
$result = query_single_row('SELECT '.prefix("images").'.filename,'.prefix("images").'.title, '.prefix("albums").'.folder FROM '.prefix("images").' INNER JOIN '.prefix("albums").' ON '.prefix("images").'.albumid = '.prefix("albums").'.id ORDER BY RAND() LIMIT 1');
$image = new Image(new Album(new Gallery(), $result['folder']), $result['filename']);
return $image;
}
function getURL($image) {
if (zp_conf('mod_rewrite'))
{
return WEBPATH . "/" . pathurlencode($image->getAlbumName()) . "/" . urlencode($image->name);
}
else
{
return WEBPATH . "/index.php?album=" . pathurlencode($image->getAlbumName()) . "&image=" . urlencode($image->name);
}
}`
http://www.thinkdreams.com/zenphoto/zen/i.php?a=vacations/vermont&i=IMG_0183.JPG&s=1000&w=620&h=180&cw=620&ch=180&cx=300&cy=300&debug
Want to report that on the bugtracker craig? It's definitely got something to do with zenphoto, because those are standard i.php paths. Thanks.
`// If mod_rewrite is true above, zenphoto's image page URL's usually end in .jpg,
// set this if you want something else appended to the end (helps search engines).
// Examples: .html, .php, /view, etc.
// $conf['mod_rewrite_image_suffix'] = '.php';`
And completely dumped and resetup the thinkdreams.com/zenphoto DB, and now it works again.
But I'll submit a bug to the tracker anyway.
1.0.8.1 released immediately to fix this. Sorry for the hassle and thanks for your help debugging!
Okay okay, changed these files:
`zen/changelog.html
zen/functions-image.php
zen/functions.php
zen/zp-config.php.example
zen/classes.php`
You can also always find out here:
http://www.zenphoto.org/trac/log/
Just click on the Changeset [123] numbers.
File changed: `classes.php` only.
As this is my first post here, I would like to thank every contributor for this nice piece of software.
Unfortunately I still have the Safe_Mode problem after installing the new version:
`
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 1247 is not allowed to access x/fotos/albums/test2 owned by uid 33 in x/fotos/zen/admin.php on line 118
Warning: Cannot modify header information - headers already sent by (output started at x/fotos/zen/admin.php:118) in x/fotos/zen/admin.php on line 133
`
Is it possible that I made a mistake whie upgrading?
1. I uploaded the new files.
2. Merged zp-config.php files.
3. Visited upgrade.php
4. I do not use mod_rewrite.
Nice day to everbody!
Cheers from the Austrian Alps,
Matt!
Unfortunately, that part of Zenphoto is still not compatible, and it will take some time and a new data model (lots of work) before I can find a solution...
Uploading photos by FTP still works though! I recommend you use that method. Also, if you create an album folder with FTP, you may select that folder for upload within Zenphoto and it should work. The safe_mode restriction simply prevents using folders the script creates.
Personally I find it much more comfortable to use FTP, unfortunately the other users of th e page, are not exactly computer nerds. Oh well, I'll then have to teach a little.
Keep up the great work!
Matt
Pretty please?
http://www.trisweb.com/archives/category/zenphoto/feed
Anyway, I think this will do for now
How about it Tristan, a dedicated feed for your biggest plugin developer and the owner of the largest thread on this forum?
http://www.trisweb.com/archives/category/zenphoto/zp-release/
http://www.trisweb.com/archives/category/zenphoto/zp-release/feed/
I'll make sure to announce each release there, including minor point releases, from now on.
Thanks a lot.
I get the following messages after the installation.
This is not an upgrade!
---------------------
Notice: Undefined index: album in c:\program files\easyphp1-8\www\wordpress\zenphoto\zen\functions.php on line 130
Notice: Undefined index: image in c:\program files\easyphp1-8\www\wordpress\zenphoto\zen\functions.php on line 130
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\wordpress\zenphoto\zen\functions.php:130) in c:\program files\easyphp1-8\www\wordpress\zenphoto\index.php on line 9
-----------------
Any idea what could have gone wrong?
Greetz Marcel
I've fixed the E_NOTICE level errors in the SVN code as well, If your host won't change the error reporting level, you can use revision 418, which is pretty stable and includes those fixes. Go here http://www.zenphoto.org/trac/browser/trunk?rev=418 and click the "Zip Archive" link at the bottom.
Any ideas???
Lee Eschen
http://www.leeschen.net/lightandshadow/
Lee