Title: PHP 8.1: Undefined array key
Last modified: August 27, 2022

---

# PHP 8.1: Undefined array key

 *  Resolved [gwertul](https://wordpress.org/support/users/gwertul/)
 * (@gwertul)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-8-1-undefined-array-key/)
 * Hey!
    I’m currently testing PHP 8.1 on WordPress 6.0.1. I’m using the Nextgen
   Widget. I get this error:
 *     ```
       Undefined array key "sidebar-siteorigin_panels-post-190" in /home_pr5/i/n/mysite.com/htdocs/dev.mysite.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line
       Undefined array key "before_widget" in /home_pr5/i/n/mysite.com/htdocs/dev.mysite.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 96
       ```
   
 * Do you have any idea how to fix that?
    Thank you 🙂

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-8-1-undefined-array-key/#post-15958751)
 * Seems like a non-critical warning so feel free to disable the error reporting
   by editing your site’s`wp-config.php` file by FTP and replace:
 * `define('WP_DEBUG', false);`
 * with these:
 *     ```
       ini_set('display_errors','Off');
       define('WP_DEBUG', false);
       define('WP_DEBUG_DISPLAY', false);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘PHP 8.1: Undefined array key’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Imagely](https://wordpress.org/support/users/imagely/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/php-8-1-undefined-array-key/#post-15958751)
 * Status: resolved