This software aims to be engaged in any system and without any additional line programming is required, the final code is automatically optimized.
To avoid nextgen-gallery bugs, add this on wp-config.php:
define(‘NGG_DISABLE_RESOURCE_MANAGER’, true);