A couple of day ago, a user (yeah, someone is actually using the plugin) reported a problem with the WP-Gallery2 plugin where he was getting the following error:
Warning: substr_compare() [function.substr-compare]: The length cannot exceed initial string length <path>/wp-content/plugins/wp-gallery2/lib/gallery.php on line 43
Line 43 in the gallery.php file reads:
if (substr_compare ($url, "main.php", -8, 8)) {
After some thought, I concluded that the reason for the error comes from the fact that the length of the string in the variable $url was less then 8 characters.
The fix for this was pretty easy and simple and version 0.8.1 of the plugin is out containing that fix.
WP-Gallery2 PluginVersion: 0.8.1
| Categories: | WP-Gallery2, Code |
| Posted on: | Jun 25th, 2010 10:44 |
| Description: | |
115.7 kB
144 Downloads
VN:F [1.9.13_1145]
Rating: 2.0/5 (1 vote cast)
VN:F [1.9.13_1145]
WP-Gallery2 Plugin v0.8.1, 2.0 out of 5 based on 1 rating 

Related Posts
-
WP-Gallery2 plugin loading galleries through AJAX
12 March 2010 2:54 PM |
No Comments
As of version 0.7, the WP-Gallery2 plugin can use AJAX calls to load the content of galleries. What this means is that the page can load faster and the user [...]
-
Fancybox jQuery plugin added to WP-Gallery2 Plugin
25 March 2010 1:49 PM |
No Comments
It’s been a while since I’ve posted anything related to the WP-Gallery2 plugin but there hasn’t been much activity anyway. I’ve been busy trying to mod and tweak the new [...]
-
WP-Gallery2 Plugin up for download
09 March 2010 12:19 PM |
No Comments
The WP-Gallery2 plugin that I have been working on has reached a point where I am ready to put it up for download so anyone who may be interested can [...]
-
WP-Gallery2 plugin ready for first preview
03 March 2010 10:20 AM |
No Comments
I have reached the point where the WP-Gallery2 plugin code is ready for its first preview. There is still a lot of work to be done on the default style [...]
-
WP-Gallery2 Plugin
23 February 2010 11:39 AM |
No Comments
A few days ago, I decide to start developing my first WordPress plugin…
Currently, I am using the NextGen gallery plugin for the gallery section but I wanted to be able [...]