@borissamardzija – Please try re-installing NextGEN Gallery as you are correct the wrong file is trying to be loaded (it no longer is included with NextGEN Gallery as it did not provide enough benefits versus the source size in our opinion).
In some rare cases, the WordPress update process is not replacing the files correctly on some site which will cause this issue.
– Cais.
PS: If you are using any caching plugins / services, please ensure those are completely cleared before you re-install NextGEN Gallery.
Thread Starter
Boris
(@borissamardzija)
@photocrati, thanks for the reply.
Unfortunately that is not the case. I extracted / replaced all files with files from downloaded archive and this problem is still present.
I tried to debug this and it looks the problem is in
http://plugins.svn.wordpress.org/nextgen-gallery/tags/2.1.15/products/photocrati_nextgen/modules/mvc/package.module.mvc.php
function find_static_abspath
because
function get_static_url
uses it when building lookup cache.
Please look at the lines 53,54,55 in that file where min. string is added to path because it (wrongly) assumes that all js/css are present in minified version – but js translation files aren’t (no longer, as you said).
PS. it also happens with en locale
GET http://xyz/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/static/plupload-2.1.1/i18n/en.min.js?ver=4.3.1
Regards,
Boris.
@borissamardzija – Thanks for the follow-up … I will have our developer look specifically at those lines (as well as in general) regarding the inclusion of the min files.
We do apologize for any inconvenience this has caused.
– Cais.
This does look like a regression, sorry borissamardzija! I’ve committed an update for the next release; you can fix this yourself for now with the following filter:
add_filter('ngg_non_minified_files', 'fix_ngg_plupload_i18n'), 10, 2);
function fix_ngg_plupload_i18n($path, $module)
{
$retval = FALSE;
if ($module == 'photocrati-nextgen_addgallery_page' && strpos($path, '/i18n/') !== FALSE)
$retval = TRUE;
return $retval;
}