• Resolved wmithnyc

    (@wmithnyc)


    Greetings Support,

    I’m running NextGen Gallery and NextGen Plus in WordPress, all latest updates as of this writing.

    I’m noticing the following error in XDebug and php error logs:
    PHP Warning: Use of undefined constant NGG_PRO_PLUGIN_VERSION – assumed ‘NGG_PRO_PLUGIN_VERSION’ (this will throw an Error in a future version of PHP) in /Users/wmallick/Code/SSSM/html/wp-content/plugins/nextgen-gallery-plus/product.photocrati_nextgen_pro.php on line 91

    In file wp-content/plugins/nextgen-gallery-plus/product.photocrati_nextgen_pro.php at line 78 (as of this writing)

        function define($id = 'pope-product',
                        $name = 'Pope Product',
                        $description = '',
                        $version = '',
                        $uri = '',
                        $author = '',
                        $author_uri = '',
                        $context = FALSE)
        {
            parent::define(
                'photocrati-nextgen-pro',
                'NextGEN Pro',
                'NextGEN Pro',
                NGG_PRO_PLUGIN_VERSION,
                'https://www.nextgen-gallery.com',
                'Imagely',
                'https://www.imagely.com'
            );
    
            $this->get_registry()->set_product_module_path($this->module_id, dirname(__FILE__));
    
            include_once('class.nextgen_pro_installer.php');
            C_Photocrati_Installer::add_handler($this->module_id, 'C_NextGen_Pro_Installer');
        }

    Line 91, the fourth argument presented to method \P_Photocrati_NextGen_Pro::define() is NGG_PRO_PLUGIN_VERSION which is not defined.

    It seems possibly the argument should be NGG_PLUS_PLUGIN_VERSION, but I haven’t thoroughly reviewed the code. NGG_PLUS_PLUGIN_VERSION is defined in the constructor of class NextGen_Plus.

    To clarify versions:

    NextGEN Gallery
    Version 3.2.23

    NextGEN Plus
    Version 1.6.22

    WordPress
    Version 5.3.2

    PHP Version: 7.3.11

    • This topic was modified 4 years, 8 months ago by wmithnyc.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning: …undefined constant NGG_PRO_PLUGIN_VERSION…’ is closed to new replies.