Lightbox 2.1 added a new HTML DOM parser. However due to a memory leak in PHP 5.1.x and 5.2.x and an improper use of the garbage collection routine a rather glaring bug was introduced in which all content was replaced by information about the programmatic object. Version 2.2 addresses this issue and correctly cleans up the memory and outputs the content as a result. The issue was partly my fault and partly PHP 5.1.x/5.2.x fault.
Version 2.2. also reintroduces PHP 4 functionality for those of you still stuck with PHP 4 which is long since (as of 8/8/8) unsupported by the PHP developers.
See after the jump for the change log details.
2.2
- Fixed “Object id #”, “Object”, “Object #” errors with PHP 5.1.x.
- Problem was due to circular memory leak in PHP 5.1 and 5.2 and HTML DOM object not being cleaned up.
- Altered way the content is returned to allow for closure and cleaning of object sooner eliminating memory leak.
- Due to overhwhelming demand I added PHP 4 functionality back in but it is not officially supported.
- If you were seeing an error that looked something like
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/plugins/lightbox-plus/classes/shd.class.php on line 86
you have PHP 4. - Option is automatically set to use legacy method if you have PHP 4
- You will have to manually select the option to use the PHP 4 Auto Lightbox Method if you are using PHP 5.X and wish to use legacy method.
- If you were seeing an error that looked something like
- Fix for images with upper case file extension not being auto-lightboxed.
- Probable fix for
XML Parsing Error: no element found
likely caused by memory leak- Unable to reproduce error but research indicates memory leak is a likely cause.
Please get the latest download of Lightbox Plus at wordpress.org and 23systems or download [Download not found] directly.
If you need support please go to the Lightbox Plus message board.
ithinkin says
Realy perfect plugin.Other similar plugins,such as lightbox 2 ,WP
jQuery Lightbox also good,but when I use WP minify or Autoptimize
to combine and compress JS and CSS files to improve page load
time,it doesn’t work,except Lightbox Plus.so thanks a lot for your
wonderful plugin
Ramoonus says
Could you please release an update which contains the latest
version of ColorBox?
Dan Zappone says
Yes, very soon.
sbhkma says
This isn’t working in SSL mode. It seems to be inserting the full
http url instead of the secure https url. This is resulting in
errors during wordpress checkout pages. How do I fix this? GREAT
plugin and I don’t want to have to get a different one!
Paul says
I love your script but is there any chance you can change it so the
image description is on a separate line to the next previous and
close links please? See the portrait images here;
http://7368415.test.prositehosting.co.uk/ncc/clim… The image
description overlays the other text. Thanks for your time, Paul.