Posted: July 2, 2019 at 4:10 pm
|
Hi there, After the registration customers are not able to print out the invoice or receipt. On chrome it shows error “This page isn’t working http://www.XXXXX.com is currently unable to handle this request. HTTP ERROR 500”. On firefox it does not show any error. Appreciate any help, |
Hi there, If you check your servers error logs you’ll find the full error being thrown from the above (your host will usually have a section to view errors in your control panel), can you post that here please? I’ve just tested a registration (which you can remove if preferred) on Event ID 342 and downloaded the PDF for it without any problems. Can you link me to an invoice for a test registration that shows the problem? |
|
|
Hi Tony, Thank you for your response, I could not find anything in the logs.
|
Ok, so that’s a completely different site to the one linked to your license. You’re running EE3 and EE4 together, on 2 different sites? Add this code to the EE4 site’s Then let me know when its added, or try downloading the PDF again and an errors should be logged to |
|
|
Yes, you are right, we use different versions on different site. This is the second account. I added the code to wp-config. But I don’t see debug.log in /wp-content/. I tried to download invoices multiple times |
Ok, thanks. That’s fine it just means that the site I tested was the EE3 site, your having an issue with the EE4 site.
Just to confirm, you added the code above the line that has:
Correct? It may mean your site can’t create the log file, you can try creating the file yourself via FTP and retesting (if your site can’t create the file it can often write to it once it has been created, but it depends). Failing that you can swap the code for:
or even just Then download the PDF and the error should display on the screen (note that with above ALL errors/notices/warnings will be displayed to all visitors so you don’t want to leave that code on the site for long. |
|
|
Thanks, seemed like wp-config.php had already line saying define( ‘WP_DEBUG’, false ); thats why I had issues. Following error msg appeared when I tried to download the receipt: Fatal error: Cannot declare class HTML5_Data, because the name is already in use in *redacted* /wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/html5lib/Data.php on line 5
|
Hi, May I ask is there another plugin activated on the site that also does PDF invoices (or other PDF documents converted over from html)? |
|
|
There is only one plugin (Responsive Timetable for WordPress) that has the option to generate pdf schedule, however, it is set in generate in HTML. I have tried to turn it off, but it is still not working. |
It sounds like there is another plugin activated on the site that loads the DOMPDF library (whether it needs it at the moment or not), otherwise you would not get the error you saw. If you temporarily deactivate all other plugins, then try the PDF does it work as expected? |
|
|
Hi, thank you for your help. It was the other plugin issue. I troubleshoot with them and now everything is working. Is it possible to remove any identifiable information from this conversation before closing it? |
Removed! The topic will self-close in 2 weeks. |
|
The support post ‘Cannot print the invoice/receipt’ 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.