HTTP 500 Error when submitting community event with image

Home Forums Calendar Products Community Events HTTP 500 Error when submitting community event with image

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1368896
    Pascha Apter
    Participant

    Hello, 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!

    #1369596
    Patricia
    Member

    Hey 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

    #1369973
    Pascha Apter
    Participant

    I just tested again myself and attached an image less than 1MB and received a 500 error. All plugins are up to date.

    #1369997
    Pascha Apter
    Participant

    I 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

    #1370004
    Pascha Apter
    Participant

    See the comment at the bottom perhaps:

    wp_read_image_metadata()

    #1370005
    Pascha Apter
    Participant

    It looks like other people are having the same problem:

    Error when submitting Community Event.

    #1370054
    Pascha Apter
    Participant

    I 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.

    #1370246
    Patricia
    Member

    Hi 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

    #1386363
    Support Droid
    Keymaster

    Hey 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘HTTP 500 Error when submitting community event with image’ is closed to new replies.