@ahiaruhe – Try adding the following to your theme’s functions.php file:
add_filter('ngg_get_image_url', 'ngg_replace_plus_with_percenttwenty', 10, 3);
function ngg_replace_plus_with_percenttwenty($url, $image, $size) {
return str_replace('+', '%20', $url);
}
You may also need to comment out (or remove) the following line in nggallery.php:
$url = str_replace( '%', '%25', $url );
See if that helps to sort out this issue (of spaces in your filenames).
Thanks!
– Cais.
Tried the above with no luck. Just breaks the galleries even more.
Looks like a rollback is in order until this is fixed — again.
@ahiaruhe i think this is caused by your filenames, i have the same issue apparently + ( ) and characters like æ ø å not allowed in filenames anymore.
Just FYI if you need a quickfix 🙂
So what should we do about the HUNDREDS of files that have odd names on our servers?
And by “odd” I mean containing a “+” symbol or “( )” symbols?
That’s completely nuts if it’s the case.
@photocrati – code snippet appears to work – had some other coding issues. All seems to function now – sorry.
Thanks (for my setup at least).
OK, that worked, thanks Cais. A bit of a trap for young players!
@ahiaruhe – Glad to know this is sorted out … we are re-reviewing these “corrections” as well but expect this to be completely sorted out in the next release.
Thanks!
– Cais.