• Resolved jamminjames

    (@jamminjames)


    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/maindirwp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 67;

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mihai

    (@mceban)

    Hi @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

    (@jamminjames)

    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.