Home › Forums › Calendar Products › Community Events › HTTP 500 Error when submitting community event with image
- This topic has 9 replies, 2 voices, and was last updated 8 years, 4 months ago by
Pascha Apter.
-
AuthorPosts
-
October 25, 2017 at 2:28 pm #1368896
Pascha Apter
ParticipantHello, users have reported getting an error (Code 500) when submitting an event with an image.
Here is my error log:
[Wed Oct 25 21:21:58.231598 2017] [:error] [pid 5322] [client 199.21.245.66:17741] PHP Fatal error: Uncaught Error: Call to undefined function wp_read_image_metadata() in /nas/content/live/visitcookco/wp-admin/includes/media.php:357\nStack trace:\n#0 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Submission_Handler.php(175): media_handle_upload(‘event_image’, 26917)\n#1 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Submission_Handler.php(111): Tribe__Events__Community__Submission_Handler->insert_attachment(‘event_image’, 26917, true, Object(Tribe__Events__Community__Submission_Handler))\n#2 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Main.php(1635): Tribe__Events__Community__Submission_Handler->save()\n#3 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Main.php(851): Tribe__Events__Community__Main->doEventForm()\n#4 [internal function]: Tribe__Events__Community__Main::addCallback()\n#5 /nas/content/live/visitcookco/wp- in /nas/content/live/visitcookco/wp-admin/includes/media.php on line 357, referer: https://www.visitcookcounty.com/events/community/add
It looks like the events still end up in the database with a “Pending” status but the image is missing (and they think their submission hasn’t went through at all).
Any idea what could be causing this? We host with WP Engine.
Thanks!
October 26, 2017 at 1:53 pm #1369596Patricia
MemberHey Pascha,
Thank you for reaching out to us!
I’m so sorry to hear that you are having problems to submit new images via Community Events! Let me help you to solve this.
– To get started, can you please make sure that The Events Calendar (v.4.6.2) and Community Events (v.4.5.6) are both up-to-date? I’m asking this because I’ve ran some tests and couldn’t reproduce the issue from here.
– Are you able to reproduce this error from your end? You mentioned that some of your users were getting this 500 internal server error: maybe they were trying to upload larger images and your server is not allowing it.
Thanks!
Patricia
October 27, 2017 at 6:15 am #1369973Pascha Apter
ParticipantI just tested again myself and attached an image less than 1MB and received a 500 error. All plugins are up to date.
October 27, 2017 at 7:03 am #1369997Pascha Apter
ParticipantI have had WP Engine test this and they are getting the same error:
PHP Fatal error: Uncaught Error: Call to undefined function wp_read_image_metadata() in /nas/content/live/visitcookco/wp-admin/includes/media.php:357\nStack trace:\n#0 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Submission_Handler.php(175): media_handle_upload(‘event_image’, 26949)\n#1 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Submission_Handler.php(111): Tribe__Events__Community__Submission_Handler->insert_attachment(‘event_image’, 26949, true, Object(Tribe__Events__Community__Submission_Handler))\n#2 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Main.php(1635): Tribe__Events__Community__Submission_Handler->save()\n#3 /nas/content/live/visitcookco/wp-content/plugins/the-events-calendar-community-events/src/Tribe/Main.php(851): Tribe__Events__Community__Main->doEventForm()\n#4 [internal function]: Tribe__Events__Community__Main::addCallback()\n#5 /nas/content/live/visitcookco/wp- in /nas/content/live/visitcookco/wp-admin/includes/media.php on line 357, referer: https://www.visitcoo…ounty.com/events/community/add
October 27, 2017 at 7:10 am #1370004Pascha Apter
ParticipantSee the comment at the bottom perhaps:
October 27, 2017 at 7:11 am #1370005Pascha Apter
ParticipantIt looks like other people are having the same problem:
October 27, 2017 at 7:42 am #1370054Pascha Apter
ParticipantI think we found our problem. There did appear to be a conflict with another plugin, it was the “Import external attachments” plugin. Once disabled, that seemed to solve it.
October 27, 2017 at 9:57 am #1370246Patricia
MemberHi Pascha,
Thanks for posting the results of your conflict test here in our forums: I’m glad to hear that you were able to find the cause of the issue!
While we’re not able to guarantee compatibility with any specific third-party WordPress themes or plugins, we do develop our plugins in accordance with strict WordPress.org standards, and you’ll typically find that our products work great with products developed to the same standards.
If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can.
Patricia
November 18, 2017 at 8:35 am #1386363Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘HTTP 500 Error when submitting community event with image’ is closed to new replies.
