Support

Home Forums Event Espresso Premium Cannot print the invoice/receipt

Cannot print the invoice/receipt

Posted: July 2, 2019 at 4:10 pm

Viewing 11 reply threads


Jim Mandelin

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


Tony

  • Support Staff

July 3, 2019 at 3:06 am

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?


Jim Mandelin

July 4, 2019 at 11:38 am

Hi Tony,

Thank you for your response, I could not find anything in the logs.
This is the link to one of the invoices
*redacted*

  • This reply was modified 5 years, 3 months ago by Josh. Reason: removed link


Tony

  • Support Staff

July 4, 2019 at 2:42 pm

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 wp-config.php file: https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

Then let me know when its added, or try downloading the PDF again and an errors should be logged to /wp-content/debug.log so we can view them. It’s a fatal error being thrown on the server, but we’ll need that log entry as without it, it could be anything.


hsabc2018

July 4, 2019 at 5:34 pm

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


Tony

  • Support Staff

July 5, 2019 at 2:22 am

Yes, you are right, we use different versions on different site. This is the second account.

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.

I added the code to wp-config. But I don’t see debug.log in /wp-content/. I tried to download invoices multiple times

Just to confirm, you added the code above the line that has:

/* That's all, stop editing! Happy blogging. */

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:

define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
        define( 'WP_DEBUG_LOG', true );
        define( 'WP_DEBUG_DISPLAY', true );
}

or even just define( 'WP_DEBUG', true );

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.


hsabc2018

July 8, 2019 at 11:37 am

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

  • This reply was modified 5 years, 3 months ago by Josh. Reason: removed identifiable paths


Josh

  • Support Staff

July 8, 2019 at 11:58 am

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


hsabc2018

July 8, 2019 at 1:33 pm

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.


Josh

  • Support Staff

July 8, 2019 at 1:49 pm

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?


hsabc2018

July 9, 2019 at 2:34 pm

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?


Josh

  • Support Staff

July 9, 2019 at 2:43 pm

Removed! The topic will self-close in 2 weeks.

Viewing 11 reply threads

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.

Event Espresso