Support

Home Forums Event Espresso Premium Order Confirmation – PDF Generation

Order Confirmation – PDF Generation

Posted: June 9, 2015 at 10:20 am

Viewing 9 reply threads


Aidan Dunsdon

June 9, 2015 at 10:20 am

Hi

At the end of a successful registration, when I click “View Full Order Confirmation Receipt” I get a blank page. This only started happening when I moved to a production server. It worked fine on my localhost dev server. Any ideas?

Many Thanks


Tony

  • Support Staff

June 9, 2015 at 10:25 am

Hi Aidan,

A blank page usually means there is a fatal error.

Can you enable WP_DEBUG on the site and reload that white page please.

Do you see any errors?

Currently, I’d guess the sites memory has been exhausted. The error message will tell us more and we can advise how to fix.


Aidan Dunsdon

June 9, 2015 at 11:38 am

Hi Tony

Thanks for the response. I have the following code in wp-config.php
define(‘WP_DEBUG’, true);

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

I then ran the steps that lead to the blank page. This may be a basic question but where would I see the debug output. I created a debug.log file in wp-content but it appears empty after recreating the problem.
Cheers


Tony

  • Support Staff

June 9, 2015 at 11:46 am

You should see output on the page itself.

This link

define(‘WP_DEBUG_DISPLAY’, true);

Basically sets display errors to yes.

define(‘WP_DEBUG_LOG’, true);

Sets the errors to also be saved in /wp-content/debug.log

try creating the deile yourself and assigning permissions of 666.

Also go to Event Espresso -> Generl Settings -> Critial Pages.

Check all of the pages show Page status Ok and Shortcode Ok.

Then go through your general settings and check if the settings are as they were in dev, or are they all reset?


Aidan Dunsdon

June 10, 2015 at 9:44 am

Hi Tony

I have enabled debugging but don’t seem to be generating any error messages from the blank page (if I force a dummy test error the dummy error message appears). However what I have now realised is that it is not the pdf generation that is the problem but the receipt confirmation html page itself. So behaviour is as follows. From Thank-you page:
1. Click on blue “View Full Order Confirmation Receipt” button – result get blank page
2. Click on “View Invoice Button” – goes to “Invoice for Transaction Page” then click on “download pdf” – result pdf successfully generates
3. Click on “View Invoice Button” – goes to “Invoice for Transaction Page” then click on “switch to receipt” – result blank page again

So it does seem to be narrowed down to the receipt html generation.

Thanks


Tony

  • Support Staff

June 10, 2015 at 10:13 am

Can you go to http://take.ms/FaDK0

Then find the Receipt message template – http://take.ms/a8x2b

When you edit the template does it show something like this – http://take.ms/QEF9X

Or are the fields blank?


Aidan Dunsdon

June 10, 2015 at 10:21 am

They appear to be blank


Tony

  • Support Staff

June 10, 2015 at 10:29 am

Ok go to Event Espresso -> Messages -> Settings.

Click the HTML tab and find Receipt in the list – http://take.ms/SDczS

Drag it over to ‘Inactive Message Types’ box on the right, wait a few seconds then drag it back.

Now recheck if the template shows content.

If not on the right click the ‘Reset Templates’ button. This will reset the Receipt Template back to default.


Aidan Dunsdon

June 10, 2015 at 11:11 am

I hit the reset templates and now its all working – many thanks!

Resolved


Tony

  • Support Staff

June 10, 2015 at 11:27 am

Your most welcome, thanks for letting me know it fixed it.

Viewing 9 reply threads

The support post ‘Order Confirmation – PDF Generation’ 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