Hi.
After i purchased an ticket the initial email is not sent!
Manually Re-send Ticket(s) Email works fine.
Before i have included your code of https://docs.myeventon.com/documentations/auto-complete-ticket-order/ in my functions.php.
The debug.log says there is an error in that function on line 46 – And also something went wrong with class-integration-woocommerce.php & class-pdfer.php.
Please help me out!:
debug.log of my last purchase:
——————————————
[30-Mar-2021 17:47:07 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-content/themes/samadhi-child/functions.php on line 46
[30-Mar-2021 17:47:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined function media_handle_sideload() in /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-content/plugins/eventon-pdfer/includes/class-pdfer.php:65
Stack trace:
#0 /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-content/plugins/eventon-pdfer/eventon-pdfer.php(187): EVO_PDF_generator->generate_pdf(Array)
#1 /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-content/plugins/eventon-pdfer/eventon-pdfer.php(137): evo_pdf->gen_pdf_file(‘ticket’, 3917)
#2 /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-includes/class-wp-hook.php(292): evo_pdf->evotx_email(Array, 3917)
#3 /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array)
#4 /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-content/plugins/eventon-tickets/includes/class-email.php(129): apply_filters(‘evotx_beforesen…’, Array, 3917)
#5 /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-content/plugins/eventon-tickets/includes/class-integration-woocommerce.php in /www/htdocs/w011c1cb/herz-der-dinge.de/wordpress/wp-content/plugins/eventon-pdfer/includes/class-pdfer.php on line 65
——————————————
so when an order is placed 2 emails get sent- one to the admin and one to the customer
the customer is not getting their email- are you getting the new order email?
I would recommend a smtp plugin to help send your emails
I use https://en-au.wordpress.org/plugins/easy-wp-smtp/ – and have for the last 5 years –
Hey Mirko
Can you please enable a plugin that you can check if your crons work or not?
Without your function (https://docs.myeventon.com/documentations/auto-complete-ticket-order/) in functions.php emails are send correctly.
With your function the error below is thrown.
The error says something about the side_load_media function.
The PDF files are generated but we find them in the WordPress root directory. Maybe that directory is used as a temporary directory and the side load function should move them to the proper place.
After the Fatale Error the admin mails are not sent anymore.
Generating and sending the PDF tickets works fine by pressing the button in the WooCommerce order page.
Also the tickets are generated and send when the order ist manually set to “completed”.
We don’t understand why the script of you does not work and it would help a lot to have the orders autocompleted and the PDF tickets sent to the people.
Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer! Also please disable any IP blocking on your site if there are any.
ok. i do not have any IP-blocking.
Thank u for sharing.
We have asked our CEO to review, he will do and come back to you.
Hi, i’d like to ask if there is a solution available soon?
Hey Mirko,
Yes, we have asked to check again with priority.
Are you running an old version of WP? because the media handle sideload is a standard function that should be in there https://developer.wordpress.org/reference/functions/media_handle_sideload/
I suppose an alternative code mod will be this.
No
Please include solution asap in next Update. Thank you!
We will include it in the next update. Could you tell us have you applied Ashan’s fix in your current code: https://helpdeskx.s3.amazonaws.com/wp-content/uploads/2021/04/28160826/Screen-Shot-2021-04-28-at-4.08.02-PM.png?
Yes i did.
and everything is working or not?
with fix code ticket email sent, but no pdf attachment
if re-send in woocommerce order page, it’s ok…
Hey,
This is because we do not have a way to update the order page automatically when order is done.
If you need this, it is a customization that can happen yes
I’m using plugin that automatically converts woocommerce payments to “completed”. woocommerce order page appears to be completed.
also should i use your code on that page: “https://docs.myeventon.com/documentations/auto-complete-ticket-order”?
Hi,
have not used this code lately but you can give it a try
I still have the unsolved problem.
Please send me a solution.
We don’t understand why the script of you does not work and it would help a lot to have the orders autocompleted and the PDF tickets sent to the people.
Hi,
Autocomplete requires customization, it does not exist by default.
You can submit a customization request to me by email at basiliskan@gmail.com or to 3rd party developers via Customize EventON Page.
If anything else we can do for you, let us know.