event-submission-form: already uploaded image disappears if one of required fields is empty

Home Forums Calendar Products Community Events event-submission-form: already uploaded image disappears if one of required fields is empty

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #1079652
    Marion
    Participant

    Hi 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
    Marion

    • This topic was modified 10 years, 2 months ago by Marion.
    • This topic was modified 10 years, 2 months ago by Hunter.
    #1080469
    Hunter
    Moderator

    Hey 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 🙂

    #1080569
    Marion
    Participant

    This reply is private.

    #1080871
    Hunter
    Moderator

    Hi 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?

    #1081364
    Marion
    Participant

    Hi 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..
    Marion

    #1081369
    Marion
    Participant

    .. and unfortunately also the dates are not being stored! :/

    like in this post:

    Bug: Event Start Date & End Date reset when errors returned

    M.

    #1081371
    Marion
    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«?

    #1082190
    Marion
    Participant

    Hello 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. case

    So 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
    Marion

    #1082319
    Hunter
    Moderator

    Hey 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 🙂

    #1082685
    Marion
    Participant

    Hi Hunter,

    ok, I am looking forward to your new answer, have a nice weekend, too!

    #1083123
    Hunter
    Moderator

    Hey 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!

    #1083301
    Marion
    Participant

    Hi 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

    #1083352
    Hunter
    Moderator

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

    #1088692
    Leah
    Member

    Hello,

    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,
    Leah

    #1095263
    Marion
    Participant

    Hi Leah,

    thanks for your info, hoping that it will be fixed in on of the next updates…

    Best
    Marion

Viewing 15 posts - 1 through 15 (of 19 total)
  • The topic ‘event-submission-form: already uploaded image disappears if one of required fields is empty’ is closed to new replies.