PHP 8.2 Deprecation Warnings
-
I’m currently testing NexGen Gallery 3.5.3 and it now mostly works after patching, but there is still a deprecation warning cropping up a lot under PHP 8.2 through the WP admin dashboard. WP Query Monitor reports it as this:
Creation of dynamic property Imagely\NGG\DataStorage\Manager::$object is deprecated wp-content/plugins/nextgen-gallery/src/DataStorage/Manager.php:39 Imagely\N\D\Manager->__construct() wp-content/plugins/nextgen-gallery/src/DataStorage/Manager.php:48 Imagely\N\D\Manager::get_instance() wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/module.nextgen_addgallery_page.php:98 M_NextGen_AddGallery_Page->register_requirements() wp-includes/class-wp-hook.php:324 do_action('admin_init') wp-admin/admin.php:175In addition, if I go into a gallery, edit a title + description field on an image and then scroll down to click to save the changes. WP Query Monitor records a long list of deprecation warnings:
Deprecated Creation of dynamic property Imagely\NGG\DataStorage\Manager::$object is deprecated wp-content/plugins/nextgen-gallery/src/DataStorage/Manager.php:39 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$_wpnonce is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$_wp_http_referer is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$nggpage is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$closedpostboxesnonce is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$parent_id is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$post_paged is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$bulkaction is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$images is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Gallery::$updatepictures is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:862 1 Plugin: nextgen-gallery Deprecated preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated wp-includes/formatting.php:5725 22 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Image::$tags is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:982 21 Plugin: nextgen-gallery Deprecated Creation of dynamic property Imagely\NGG\DataTypes\Image::$slug is deprecated wp-content/plugins/nextgen-gallery/src/Legacy/admin/manage.php:982 1 Plugin: nextgen-gallerySo still a bit of work to be done there. I note the mention of a /Legacy/ folder in many of them, so maybe there’s something I can do or use to avoid this legacy system or gallery UI?
The topic ‘PHP 8.2 Deprecation Warnings’ is closed to new replies.