Home › Forums › Calendar Products › Community Events › event-submission-form: already uploaded image disappears if one of required fields is empty
- This topic has 19 replies, 6 voices, and was last updated 9 years, 11 months ago by
Marion.
-
AuthorPosts
-
February 22, 2016 at 5:05 am #1079652
Marion
ParticipantHi again,
hoping that this (new) problem can be resolved easily/quickly…
So this is the situation:
If one of the required fields oft the even-submission is empty, the user gets error messages, as it should be, BUT if an image was already uploaded, it disappears!my required fields are:
‘post_title’,
‘post_content’,
‘organizer’,I am using the events calendar 4.60.6 and events community 4.04 Plungin, latests WP.
Do you have any idea about this? I appreciate your answer!
Kind regards
MarionFebruary 22, 2016 at 10:02 pm #1080469Hunter
ModeratorHey Marion,
Before I get to testing on my local environment, would you please share your System Information with me as a private reply?
Thanks for posting to our support forums and I look forward to resolving this issue! Have a great week 🙂
February 23, 2016 at 2:10 am #1080569Marion
ParticipantThis reply is private.
February 23, 2016 at 10:18 am #1080871Hunter
ModeratorHi Marion,
Thanks for sharing the information.
Just to be clear – the image upload issue does not occur when you remove or uncomment the required field code you’ve added to your theme’s functions.php file, correct?
February 24, 2016 at 5:22 am #1081364Marion
ParticipantHi Hunter,
the image upload issue occurs now always.
I can uncomment this in my functions.php:
/* organizer fields in pinn-formular add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 ); function my_community_required_fields( $fields ) { $fields = array( 'post_title', 'post_content', 'organizer', //'tax_input', ); return $fields; } add_filter( 'tribe_events_community_required_fields', 'tribe_ommunity_required_fields_org_email', 10, 1 ); function tribe_ommunity_required_fields_org_email( $fields ) { $required_email = $_POST['organizer']['Email']; foreach( $required_email as $email) { if ( empty( $email ) ) $fields[] = 'Absender E-Mail'; } return $fields; } */But Title and Content is required by default (and I like it this way), and if someone does not fill in a title or text for the content-field, the error message occurs – thats right – but the image disappears. Its not visible anymore beside the upload-button and does not get stored within the submission-form…
Hoping you know how to resolve this..
MarionFebruary 24, 2016 at 5:30 am #1081369Marion
Participant.. and unfortunately also the dates are not being stored! :/
like in this post:
M.
February 24, 2016 at 5:45 am #1081371Marion
Participant.. using the provided solution for the dates worked for me like in the previous post.
Maybe there is a similar one for the »image reset after error message«?
February 25, 2016 at 1:49 pm #1082190Marion
ParticipantHello Hunter,
here comes the problem in short (more or less 😉 :
functions.php: I uncommented my customizations,
-> so at the moment only title + content are required by default
1. case) If a user fills in everything the right way, required fields title + content set,
selects at least one category and uploads an image:
result: image gets transmitted, category not!2. case) If a user does not fill in one of the by default required fields, but hast an image already uploaded:
result: error message (please fill in required field(s)) and image is not saved any more and has to be uploaded again AND category gets also not transmitted via community event formular like in 1. caseSo beside the problem that a user has to upload an image again, if on required field is not set, the selected category gets not transmitted via the formulae anymore 🙁
Do you have a solution for this bug? I think it is one and the plugin does not work like it should…
Kind regards
MarionFebruary 25, 2016 at 9:45 pm #1082319Hunter
ModeratorHey Marion,
Thanks for keeping me updated and for the in-depth responses. Hold tight while I do a bit of testing and speak with some of the other team members to see if we can come up with a solution. I’ll be sure and get back to you within the next 24 hours.
Thanks again for the info and I look forward to getting this all taken care of. Have a great weekend 🙂
February 26, 2016 at 12:14 pm #1082685Marion
ParticipantHi Hunter,
ok, I am looking forward to your new answer, have a nice weekend, too!
February 28, 2016 at 3:07 pm #1083123Hunter
ModeratorHey Marion,
My weekend is going splendid – thank you for the wishes 🙂
I did some more investigating and a bug was recently logged with similarities to your issue, so I’ve included this forum thread in the bug ticket for the developers to read through.
I can’t give you an exact time on when this will be resolved, but stay tuned to your WP admin for updates and theeventscalendar.com/blog.
Thanks for being patient and so helpful while we work on a solution. Have a great week and thanks for choosing PRO!
February 29, 2016 at 6:53 am #1083301Marion
ParticipantHi Hunter,
thanks for you reply and for forwarding this.
But actually this is quite disappointing, because an important function does not work, I really would like to know a more concrete time, when this bug will be resolved? Like this I always have to make an assumption which category the user wanted and have to edit every single user-submitted post to add the the category :/
Marion
February 29, 2016 at 8:07 am #1083352Hunter
ModeratorHello Marion,
I unfortunately cannot give you a concrete date as we do not have one ourselves. I understand how frustrating dealing with bugs can be, but I assure you we are working towards a solution and it more than likely be will included in the next release (again, no promises, but we are taking this issue seriously).
Thanks again for understanding and hold tight for an update notice in your WP admin dashboard. Have a good one Marion!
March 14, 2016 at 1:39 pm #1088692Leah
MemberHello,
Thank you for reporting this issue. We weren’t able to get a fix for it into our upcoming release (4.1). However, please know that the problem is still on our radar and is ticketed within our system to be addressed in a future maintenance release. We’ll do our best to keep you posted when we are able to get a solution in place. Thank you for your patience while we improve and expand our plugins.
Best,
LeahMarch 29, 2016 at 1:29 am #1095263Marion
ParticipantHi Leah,
thanks for your info, hoping that it will be fixed in on of the next updates…
Best
Marion -
AuthorPosts
- The topic ‘event-submission-form: already uploaded image disappears if one of required fields is empty’ is closed to new replies.
