PHP Warning: …undefined constant NGG_PRO_PLUGIN_VERSION…
-
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 91In 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()
isNGG_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.23NextGEN Plus
Version 1.6.22WordPress
Version 5.3.2PHP Version: 7.3.11
- The topic ‘PHP Warning: …undefined constant NGG_PRO_PLUGIN_VERSION…’ is closed to new replies.