Title: Error while adding photos
Last modified: December 21, 2022

---

# Error while adding photos

 *  [ISeeTWizard](https://wordpress.org/support/users/datateam/)
 * (@datateam)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-while-adding-photos/)
 * Hi
 * I wanted to add some images today but I’m getting an error:
 * [Wed Dec 21 12:28:21.164888 2022] [proxy_fcgi:error] [pid 4062594:tid 4062687][
   client 94.252.22.179:62518] AH01071: Got error ‘PHP message: PHP Fatal error:
   
   Uncaught TypeError: Unsupported operand types: string / int in /edited/wp-content/
   plugins/grand-media/inc/core.php:1964\nStack trace:\n#0/edited/wp-content/plugins/
   grand-media/inc/core.php(1938): GmediaCore->getGPS()\n#1 /edited/wp-content/plugins/
   grand-media/inc/core.php(1893):GmediaCore->getGPSfromExif()\n#2 /edited/wp-content/
   plugins/grand-media/inc/core.php(1314):GmediaCore->wp_read_image_metadata()\n#
   3 /edited/wp-content/plugins/grand-media/admin/ajax.php(1664):GmediaCore->gmedia_upload_handler()\
   n#4 /edited/wp-includes/class-wp-hook.php(308): gmedia_upload_handler()\n#5/edited/
   wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#6 /edited/wp-includes/
   plugin.php(517):WP_Hook->do_action()\n#7 /edited/wp-admin/admin-ajax.php(188):
   do_action()\n#8 {main}\n thrown in /edited/wp-content/plugins/grand-media/inc/
   cor…’, referer: [https://svdb.lu/](https://svdb.lu/)
 * There is a GPSfromEXIF message I see but those photos don’t even have that data
 * Any idea?

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

 *  Thread Starter [ISeeTWizard](https://wordpress.org/support/users/datateam/)
 * (@datateam)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-while-adding-photos/#post-16309529)
 * As addition I tired removing all possible EXIF Data and even with that it doesn’t
   work – Older photos seems still to work and I uploaded on another page photos
   from another device which also worked without a problem…
 *  [lordka](https://wordpress.org/support/users/lordka/)
 * (@lordka)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-while-adding-photos/#post-16393355)
 * Have you tried importing images, do you get the same error?
   Which PHP version
   are you using?

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

The topic ‘Error while adding photos’ is closed to new replies.

 * ![](https://ps.w.org/grand-media/assets/icon-256x256.png?rev=1484725)
 * [Gmedia Photo Gallery](https://wordpress.org/plugins/grand-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/grand-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/grand-media/)
 * [Active Topics](https://wordpress.org/support/plugin/grand-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/grand-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/grand-media/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [lordka](https://wordpress.org/support/users/lordka/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-while-adding-photos/#post-16393355)
 * Status: not resolved