Title: Error when opening thumbnail
Last modified: September 8, 2016

---

# Error when opening thumbnail

 *  [amberlou70](https://wordpress.org/support/users/amberlou70/)
 * (@amberlou70)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/)
 * HI,
    I have just installed simple photo gallery and tried to upload my first 
   gallery. The upload all went smoothly. I selected template 3 for the masonry 
   option. However, when I click on the thumbnail to view I get the following error
   message as if there is an error in the directory somehow: website: [http://www.effervescence.com.au/wppg_photogallery/wppg_photo_details/?gallery_id=2&image_id=687](http://www.effervescence.com.au/wppg_photogallery/wppg_photo_details/?gallery_id=2&image_id=687)
 * Photo Details
 * Warning: getimagesize(/home/efferve1/public_html/wp-content/uploads/simple_photo_gallery/
   2/Eff0816_01.jpg?fit=1024%2C1536): failed to open stream: No such file or directory
   in /home/efferve1/public_html/wp-content/plugins/simple-photo-gallery/classes/
   wppg-photo-gallery-class.php on line 462
 * Warning: Division by zero in /home/efferve1/public_html/wp-content/plugins/simple-
   photo-gallery/classes/wppg-photo-gallery-class.php on line 476
 * Warning: imagesx() expects parameter 1 to be resource, null given in /home/efferve1/
   public_html/wp-content/plugins/simple-photo-gallery/classes/wppg-photo-gallery-
   class.php on line 521
 * Warning: imagesy() expects parameter 1 to be resource, null given in /home/efferve1/
   public_html/wp-content/plugins/simple-photo-gallery/classes/wppg-photo-gallery-
   class.php on line 522
 * Warning: imagecopy() expects parameter 1 to be resource, null given in /home/
   efferve1/public_html/wp-content/plugins/simple-photo-gallery/classes/wppg-photo-
   gallery-class.php on line 555
 * Warning: imagejpeg() expects parameter 1 to be resource, null given in /home/
   efferve1/public_html/wp-content/plugins/simple-photo-gallery/classes/wppg-photo-
   gallery-class.php on line 574
 * Warning: imagedestroy() expects parameter 1 to be resource, null given in /home/
   efferve1/public_html/wp-content/plugins/simple-photo-gallery/classes/wppg-photo-
   gallery-class.php on line 575
 * I can’t see where to fix it. Can anyone help, please?

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

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/#post-8158334)
 * Hi, thank you for reporting this issue. The plugin developers will investigate
   further your issue.
 * Kind regards
 *  Thread Starter [amberlou70](https://wordpress.org/support/users/amberlou70/)
 * (@amberlou70)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/#post-8161676)
 * Thank you. I look forward to hearing of the solution.
 *  Plugin Author [mra13 / Team Tips and Tricks HQ](https://wordpress.org/support/users/mra13/)
 * (@mra13)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/#post-8169601)
 * Something on your site (most likely another plugin or theme) is adding the following
   to the end of your images:
 * ?fit=1024%2C1536
 * This is causing the photo gallery plugin to not be able to fetch the image. Do
   you know which resource on your site is adding that query parameter to the end
   of the photo automatically?
 *  Plugin Author [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/#post-8170145)
 * Can you try disabling the “photon” feature of jetpack and then create a new gallery
   and check to see if the new gallery works?
    -  This reply was modified 9 years, 8 months ago by [wpsolutions](https://wordpress.org/support/users/wpsolutions/).
 *  Thread Starter [amberlou70](https://wordpress.org/support/users/amberlou70/)
 * (@amberlou70)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/#post-8172283)
 * I don’t know what is causing the add on at the end of the images. I’ll try to
   disale photon and see if that fixes it. – Thanks!
 *  Thread Starter [amberlou70](https://wordpress.org/support/users/amberlou70/)
 * (@amberlou70)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/#post-8172294)
 * Thank you – that has fixed the problem!

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

The topic ‘Error when opening thumbnail’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-photo-gallery_072235.svg)
 * [Simple Photo Gallery](https://wordpress.org/plugins/simple-photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-photo-gallery/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [amberlou70](https://wordpress.org/support/users/amberlou70/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/error-when-opening-thumbnail/#post-8172294)
 * Status: not resolved