Support

Home Forums Event Espresso Premium [ESPRESSO_MY_EVENTS] ticket count not correct

[ESPRESSO_MY_EVENTS] ticket count not correct

Posted: November 3, 2023 at 7:03 am

Viewing 16 reply threads


Bart De COck

November 3, 2023 at 7:03 am

Hi, The ticket count is incorrect when a user bought more than 1 ticket. It always shows 1 and only 1 ticket is available for download.


Sam

  • Support Staff

November 3, 2023 at 7:23 am

Hi Bart,

Can you please share a screenshot of the issue you are facing so that we can check the issue for you?

Looking forward to helping you.


Bart De COck

November 3, 2023 at 7:44 am

Hi
Yes here it is

https://www.de-vriendenkring.eu/wp-content/uploads/2023/11/2023-11-03-14_41_40-De-Vriendenkring-Ontvangstbewijs-voor_-3671029-2.pdf-Adobe-Acrobat-Reader-6.png

https://www.de-vriendenkring.eu/wp-content/uploads/2023/11/2023-11-03-14_40_50-RE_-tickets-vriendenkring-Message-HTML.png


Rio

  • Support Staff

November 4, 2023 at 1:39 am

Can you go to registration, and check the ticket that was purchased there.
https://monosnap.com/file/mOdZ5VMTCxK1UJe5dk8tHse62DYWjR

Can you confirm if they all have ticket?

thanks


Bart De COck

November 6, 2023 at 12:30 am

Hi

I see for this registration 4 entries, all with their own ticket.
4 in total, the primary user registered the 3 other tickets with the additional registrants name.
Could that be the problem?

https://www.de-vriendenkring.eu/wp-content/uploads/2023/11/2023-11-06-08_26_37-‹-De-Vriendenkring-—-WordPress.png


Rio

  • Support Staff

November 6, 2023 at 4:15 am

That’s not a problem. But if you want it named to registrant and not just the one who purchased the ticket, you have to go to your event -> then check the personal information under the questions for additional registrants.
https://monosnap.com/file/Y4Esz0vYocdT2nzV0ronICaFQZ14l7

thanks.


Sam

  • Support Staff

November 6, 2023 at 5:08 am

Hi Bart,

If you want separate tickets for all four registrations then you need to activate the “Questions for Additional Registrants”. Then at the checkout, it will ask for the information of more than one person as per the number of tickets.

https://tinyurl.com/yo32vxu7

https://tinyurl.com/ykezhlu9

Hope that helps.


Bart De COck

November 6, 2023 at 5:12 am

Hi
Now I use the extra attendee information questions.
Any other suggestion how to resolve my issue that the registrant only sees 1 ticket purchased however it should be 4?


Tony

  • Support Staff

November 6, 2023 at 8:59 am

Hi there,

The reason the My Events section is only showing 1 ticket there is that it shows registrations that are related to the current user based on the registrant details. Its showing you YOUR registrations, the registrations in that group are linked to other contacts (the regisrant info didn’t match yours during registration) so they aren’t included.

However, it is possible to include those registrations using a different template:

https://gist.github.com/Pebblo/54707c59d09185e16e1e15f35ba3765c

Click on download zip to download the template file, open up the zip to find a content-espresso_my_events-event_section.template.php file.

Place that file within the root directory of your theme (preferably a child theme):

https://developer.wordpress.org/themes/advanced-topics/child-themes/

That will include group registrations when the user is the primary registrant of that group.


Bart De COck

November 6, 2023 at 11:42 pm

Hi, when I do that I get a bunch of errors

———————————————–
Fatal error: Uncaught ValueError: Missing format specifier at end of string in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/themes/hueman/content-espresso_my_events-event_section.template.php:47 Stack trace: #0 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/themes/hueman/content-espresso_my_events-event_section.template.php(47): sprintf(‘Link naar %’, ‘Cinema4You’) #1 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(406): include(‘/customers/1/4/…’) #2 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(322): EEH_Template::display_template(‘/customers/1/4/…’, Array) #3 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/eea-wp-user-integration/templates/loop-espresso_my_events-event_section.template.php(113): EEH_Template::locate_template(‘content-espress…’, Array, true, false) #4 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(403): include(‘/customers/1/4/…’) #5 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(320): EEH_Template::display_template(‘/customers/1/4/…’, Array, true) #6 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/eea-wp-user-integration/domain/entities/shortcodes/EspressoMyEvents.php(270): EEH_Template::locate_template(Array, Array) #7 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/eea-wp-user-integration/domain/entities/shortcodes/EspressoMyEvents.php(191): EventEspresso\WpUser\domain\entities\shortcodes\EspressoMyEvents->loadTemplate(Array) #8 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(117): EventEspresso\WpUser\domain\entities\shortcodes\EspressoMyEvents->processShortcode(Array) #9 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/cache/BasicCacheManager.php(88): EventEspresso\core\services\shortcodes\EspressoShortcode->EventEspresso\core\services\shortcodes\{closure}() #10 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(121): EventEspresso\core\services\cache\BasicCacheManager->get(‘SC_MY_EVENTS-51’, ‘ee_cache_post_S…’, Object(Closure), 0) #11 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(85): EventEspresso\core\services\shortcodes\EspressoShortcode->shortcodeContent(Array) #12 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/shortcodes.php(433): EventEspresso\core\services\shortcodes\EspressoShortcode->processShortcodeCallback(Array, ”, ‘ESPRESSO_MY_EVE…’) #13 [internal function]: do_shortcode_tag(Array) #14 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(ESPRES…’, ‘do_shortcode_ta…’, ‘[ESPRESSO_MY_EV…’) #15 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/class-wp-hook.php(310): do_shortcode(‘[ESPRESSO_MY_EV…’) #16 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[ESPRESSO_MY_EV…’, Array) #17 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘[ESPRESSO_MY_EV…’) #18 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/themes/hueman/tmpl/page-tmpl.php(8): the_content() #19 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/template.php(787): require(‘/customers/1/4/…’) #20 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/template.php(720): load_template(‘/customers/1/4/…’, false, Array) #21 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #22 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/themes/hueman/functions/init-front.php(1741): get_template_part(‘tmpl/page-tmpl’) #23 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/themes/hueman/functions/init-front.php(27): hu_get_template_part(‘tmpl/page-tmpl’) #24 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/themes/hueman/page.php(3): hu_get_content(‘tmpl/page-tmpl’) #25 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/template-loader.php(106): include(‘/customers/1/4/…’) #26 /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-blog-header.php(19): require_once(‘/customers/1/4/…’) #27 /customers/1/4/9/de-vriendenkring.eu/httpd.www/index.php(17): require(‘/customers/1/4/…’) #28 {main} thrown in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/themes/hueman/content-espresso_my_events-event_section.template.php on line 47
Er heeft zich een kritieke fout voorgedaan op deze site.


Tony

  • Support Staff

November 7, 2023 at 6:08 am

Change this 'Link to %' to be 'Link to %s' in your file.

That should fix it.

Its a chang from PHP8, PHP7 allowed you to use the former, PHP8 requires the correct number of arguments, even if just one.


Bart De COck

November 8, 2023 at 12:04 am

Hi, I now have this error on top of my page.

————————————

Warning: Undefined property: wpdb::$use_mysqli in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/class-wpdb.php on line 768 Warning: Cannot modify header information – headers already sent by (output started at /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/class-wpdb.php:768) in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/modal_survey/modal_survey.php on line 2847 Warning: Cannot modify header information – headers already sent by (output started at /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/class-wpdb.php:768) in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/modal_survey/modal_survey.php on line 2848 Warning: session_start(): Session cannot be started after headers have already been sent in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/session/SessionStartHandler.php on line 65


Tony

  • Support Staff

November 8, 2023 at 5:33 am

That’s from WordPress 6.4 and is being thrown within the Model Survey plugin, it is something they will need to fix (or if there is an update for that plugin that may have fixed it already).

The warning related to Event Espresso there:

Warning: session_start(): Session cannot be started after headers have already been sent in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/session/SessionStartHandler.php on line 65

Is happening because of the other warnings being output to the page.

(Side not, you should set your site not to display errors on a production site. Log them, but don’t display them on te front end as it prevents issues like this being visible to your users)


Bart De COck

November 8, 2023 at 6:08 am

Hi, now this error

————————–

Warning: Undefined property: wpdb::$use_mysqli in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/class-wpdb.php on line 768 Warning: session_start(): Session cannot be started after headers have already been sent in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/session/SessionStartHandler.php on line 65


Bart De COck

November 8, 2023 at 6:12 am

I had to switch off PHP error messages in my control panel.
Last error is gone now.
I will try if the original ticket issue is solved.


Tony

  • Support Staff

November 8, 2023 at 6:19 am

Warning: Undefined property: wpdb::$use_mysqli in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-includes/class-wpdb.php on line 768

This ‘error’, is a warning saying that something is using some code like $wpdb->use_mysqli and now in WP 6.4 they have removed that property.

Warning: session_start(): Session cannot be started after headers have already been sent in /customers/1/4/9/de-vriendenkring.eu/httpd.www/wp-content/plugins/event-espresso-core-reg/core/services/session/SessionStartHandler.php on line 65

This warning is from Event Espresso trying to start a session, you can’t start a session when something has already been sent to the browser… the first warning above is being sent to the browser, which prevents EE from creating a session and this warning is thrown.

This means the warning from EE is happening because of the first warning (which isn’t related to EE).


Bart De COck

November 9, 2023 at 12:41 am

Hi, the issue is solved. Thanks!


Tony

  • Support Staff

November 9, 2023 at 2:08 am

Awesome, I’m glad it worked for you.

Viewing 16 reply threads

The support post ‘[ESPRESSO_MY_EVENTS] ticket count not correct’ 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