Title: Getting &#8220;Undefined array key&#8221; warnings regarding default-view.php
Last modified: August 28, 2025

---

# Getting “Undefined array key” warnings regarding default-view.php

 *  Resolved [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * (@jamminjames)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/getting-undefined-array-key-warnings-regarding-default-view-php/)
 * I’m getting a lot of these “Undefined array key” warnings regarding the default-
   view.php file. Is this something that NextGen needs to fix in the template file,
   or what?
 * `PHP message: PHP Warning: Undefined array key "width" in /var/www/maindir/wp-
   content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line
   66; PHP message: PHP Warning: Undefined array key "height" in /var/www/``maindir`
   wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line
   67;

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Mihai](https://wordpress.org/support/users/mceban/)
 * (@mceban)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/getting-undefined-array-key-warnings-regarding-default-view-php/#post-18617539)
 * Hi [@jamminjames](https://wordpress.org/support/users/jamminjames/),
 * Sorry to hear about the PHP warnings.
 * Upon checking the code triggering these warnings, it appears to be related to
   issues with retrieving the thumbnail width and height dimensions. This often 
   happens when the gallery contains thumbnail images that are failing to load. 
   I suggest examining the pages where these warnings occur to ensure there are 
   no broken images that might need re-uploading.
 * Deleting and then re-uploading the broken images usually resolves such warnings
   automatically.
 * I hope this helps!
 * Best regards,
   Mihai
 *  Thread Starter [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * (@jamminjames)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/getting-undefined-array-key-warnings-regarding-default-view-php/#post-18618178)
 * Okay, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Getting “Undefined array key” warnings regarding default-view.php’ 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/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 2 replies
 * 2 participants
 * Last reply from: [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * Last activity: [9 months, 2 weeks ago](https://wordpress.org/support/topic/getting-undefined-array-key-warnings-regarding-default-view-php/#post-18618178)
 * Status: resolved