Fatal error with NextGEN 3.50 (solution provided)
-
Hello!
The latest release of NextGEN Gallery (3.50) changed quite a bit of its internal API, and now ARI Fancy Lightbox generates a fatal exception when NextGEN Gallery 3.50 is active.
This can be fixed with a simple change to ari-fancy-lightbox/libraries/arisoft/core/wordpress/class-nextgen.php by adding the following elseif clause inside of install_lightbox_v2():
// NextGEN 3.50+ } elseif ( class_exists( 'Imagely\NGG\Display\LightboxManager' ) ) { $ngg_lightbox_manager = \Imagely\NGG\Display\LightboxManager::get_instance(); $lightbox_options = new \Imagely\NGG\DataTypes\Lightbox($lightbox); $lightbox_options->title = $lightbox_title; $lightbox_options->code = $code; $lightbox_options->styles = array(); $lightbox_options->scripts = array(); $ngg_lightbox_manager->register( $lightbox, $lightbox_options);
It just needs the new Lightbox type passed instead of \stdClass.
Have a good day!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fatal error with NextGEN 3.50 (solution provided)’ is closed to new replies.