Support

Home Forums Event Espresso Premium EE4 – Comment Bug in single event

EE4 – Comment Bug in single event

Posted: January 18, 2016 at 1:32 pm


JacquesMivi

January 18, 2016 at 1:32 pm

Hello,

On a single event, where ticket sales dates are passed, when I try to post a comment I got this flowwing error “You need to select a ticket quantity before you can proceed”.

I use Genesis and custom template with the code

`espresso_get_template_part( ‘content’, ‘espresso_events’ );

/* Include the post TYPE-specific template for the content.*/
espresso_get_template_part( ‘content’, ‘espresso_events’ );
genesis_get_comments_template();`

Have you an idea ?


JacquesMivi

January 18, 2016 at 1:36 pm

I don’t have cash plugin for the moment.


Josh

  • Support Staff

January 18, 2016 at 1:40 pm

That could be a bug in your code or a missing closing html tag if you’ve altered the content-espresso_events.php template part. Normally the genesis_get_comments_template() will include the comment form in a separate html form so it’s independant of the ticket selector form.


JacquesMivi

January 18, 2016 at 2:05 pm

I just have checked all my code with http://phpcodechecker.com/
No errors found.

What is strange, that is working with others events where tickets are still on sale.
When I change this event for a sale date past the bug comes back.


Josh

  • Support Staff

January 18, 2016 at 3:02 pm

Can you check to see if bug goes away when you do not use the custom templates?


JacquesMivi

January 18, 2016 at 3:24 pm

You show me the way :

In ‘content-espresso_events.php’ I have removed the line
<?php espresso_get_template_part( ‘content’, ‘espresso_events-datetimes’ ); ?>

and this is the cause of the bug. It’s still a strange behaviour… but I will keep it and just hide it in CSS.


Josh

  • Support Staff

January 18, 2016 at 3:30 pm

It’s not necessarily strange if removing that one template part causes html tags to become mismatched.


JacquesMivi

January 18, 2016 at 3:33 pm

Yes you right

The support post ‘EE4 – Comment Bug in single event’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso