Support » Plugin: NextGEN Gallery Optimizer » Fatal Error

  • Resolved jwurster

    (@jwurster)


    Hi,

    I posted this on the NextGEN support, and they suggested I post here.

    I wanted to add a caching plugin to our site at http://ourcommunitycup.com to speed up page loading, I tried several but all resulted in the following error when I went to activate them:

    Fatal error: Class ‘C_NextGen_Settings’ not found in /home/commcup/public_html/wp-content/plugins/nextgen-gallery-optimizer/admin/assets/install/class-nggobasic-fancybox-installer-nextgen-v2.php on line 197

    Since this error pointed to the NextGen Gallery Optimizer plugin, I thought I would deactivate it and see whether I could activate a caching plugin. I got this error:

    Fatal error: Call to undefined method C_Lightbox_Installer::uninstall_lightbox() in /home/commcup/public_html/wp-content/plugins/nextgen-gallery-optimizer/admin/assets/install/class-nggobasic-lightbox-installer-nextgen-v2.php on line 201

    Any ideas how to resolve this?

    Thank you, jim

    https://wordpress.org/plugins/nextgen-gallery-optimizer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mark Jeldi

    (@mark-jeldi)

    @jwurster

    Hi Jim,

    Thanks for using NextGEN Gallery Optimizer, and apologies for any inconvenience.

    The fatal errors you’re experiencing are caused by the major NextGEN Gallery v2.0.7x update, initially released recently on the 19th of February 2015. Unfortunately, as I’ve detailed on Optimizer’s main plugin page, Optimizer is not currently fully compatible with this release.

    As key parts of the NextGEN v2.0 API were completely removed in this update (without any graceful deprecation, or backwards-compatibility in place), Optimizer (and likely many other NextGEN extensions) will display fatal errors, and not function correctly with this release, until all affected integration components are rewritten.

    The fatal error on Optimizer’s deactivation is due to the complete removal of the C_Lightbox_Installer class (and its uninstall_lightbox() method) in NextGEN Gallery v2.0.7x. Optimizer v2.0 calls this (now removed) part of the API to clean up on deactivation.

    The fatal error on the activation of other plugins is caused by a new method introduced in NextGEN Gallery v2.0.7x called “is_not_activating()”, which stops NextGEN from initializing on the activation of other plugins. As a result, NextGEN doesn’t load its includes when another plugin is being activated, causing all third-party calls to its “C_NextGen_Settings” class in the NextGEN 2.0 API to fail.

    I’ve been hard at work on the next update for Optimizer (including full support for NextGEN v2.0.7x), and I should have it released in the next few days (I’m currently performing thorough testing). In the meantime, however, and to ensure a smooth update process, I would recommend rolling-back to the immediately-preceding, fully-compatible, stable release of NextGEN v2.0.66.37.

    You can find the download at the following link…
    http://wordpress.org/plugins/nextgen-gallery/developers/

    And here’s a good step-by-step guide…
    http://www.nextgen-gallery.com/how-to-rollback-a-version/

    Optimizer’s broad, existing compatibility with NextGEN (v2.0.0 to v2.0.66.37), NextGEN Legacy (v1.6.2 to v1.9.13) and NextCellent Gallery remains unaffected.

    I hope this helps, and thank you for your patience.

    Cheers,
    Mark.

    jwurster

    (@jwurster)

    I followed the instructions to roll back to the suggested version and all is well now. Awaiting your update.

    Plugin Author Mark Jeldi

    (@mark-jeldi)

    @jwurster

    Hi again, Jim.

    That’s great to hear your roll-back was successful 🙂

    As promised, I’m pleased to say I’ve just finished releasing the major compatibility update of Optimizer v2.1, which now features (amongst many other things) full compatibility with the major update of NextGEN Gallery v2.0.71 (up to the current v2.0.77).

    For the full list of improvements and additions in Optimizer v2.1, please see…
    http://www.nextgengalleryoptimizer.com/blog/nextgen-gallery-optimizer-v2-1-now-available/

    All the best,
    Mark.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error’ is closed to new replies.