• We’re getting a lot of warnings like this about missing width & height properties in the default-view.php. It is very odd that the same PHP Warnings are being repeated many times within a single log entry, and that the GET request url has repeating directories tacked on that have nothing to do with the page the gallery is on:

    2024/02/29 16:33:54 [error] 2195#2195: *1952687 FastCGI sent in stderr: "ge: PHP Warning: Undefined array key "width" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 66; PHP message: PHP Warning: Undefined array key "height" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 67; PHP message: PHP Warning: Undefined array key "width" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 66; PHP message: PHP Warning: Undefined array key "height" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 67; PHP message: PHP Warning: Undefined array key "width" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 66; PHP message: PHP Warning: Undefined array key "height" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 67; PHP message: PHP Warning: Undefined array key "width" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 66; PHP message: PHP Warning: Undefined array key "height" in /var/www/humortimes/wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php on line 67" while reading response header from upstream, client: 172.68.238.25, server: www.humortimes.com, request: "GET /amateur-cartoons/nggallery/about-humor-times/terms-of-service/about-humor-times/more/about-humor-times/privacy-policy/about-humor-times/terms-of-service/about-humor-times/terms-of-service/page/31 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "www.humortimes.com"

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jamminjames

    (@jamminjames)

    Okay, found out the repeating stuff was being caused by a caching plugin (Hummingbird). But I would still like to ask about the Undefined array key "width" etc stuff.

    Thread Starter jamminjames

    (@jamminjames)

    Still unresolved. The message does keep repeating within a single log entry, so it wasn’t due to Hummingbird, as previously thought.

    Looking at the offending lines in the “default-view.php” file, there are apparently no “width” and “height” keys in the $thumb_size variable, which is set earlier in the script by this line:

    $thumb_size = $storage->get_image_dimensions( $image, $thumbnail_size_name );

    Please correct this issue, NextGen. And also the still unresolved issue mentioned in the thread here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strange PHP warnings re: default-view.php’ is closed to new replies.