Support

Home Forums Event Espresso Premium Blank Invoice & Blank Registration Email

Blank Invoice & Blank Registration Email

Posted: November 26, 2016 at 8:57 pm

Viewing 9 reply threads


gdtech

November 26, 2016 at 8:57 pm

Event Espresso – 4.9.21.p WordPress 4.6.1

I’ve got everything running perfectly on one domain, but I’m in the process of moving everything to a new domain (and can’t really have any downtime until the new domain is fully up and running). So, I’ve cloned the entire site over to the new domain, edited the database with the domain, and worked out a few WP bugs. However, when I test Event Espresso, I quickly found that the Invoice Pages are blank (PDFs are fine), and the Emails are also blank. I don’t use custom invoice templates…just the defaults, but I went ahead and reset the defaults a few times to be sure. I even went so far as to deactivate and delete EE Core and re-installed a fresh copy this morning but nothing has fixed this problem. I turned on logging today and see no front-end errors and when I look at the log, I see nothing interesting. Suggestions? Thanks.


Tony

  • Support Staff

November 28, 2016 at 5:21 am

Hi there,

I quickly found that the Invoice Pages are blank (PDFs are fine), and the Emails are also blank.

So you are still able to download the PDF’s but the rest of the page is blank?

Have you looked at the default template for the Invoice (and as the emails are all blank, likely the rest of the messages but lets stick with Invoice to find the cause) is the template loaded correctly?

Event Espresso -> Messages -> Default Message Template -> Invoice.

edited the database with the domain

How did you do this?

Simply find and replace or using a plugin that handles the migration of serialized objects correctly?


gdtech

November 28, 2016 at 6:42 am

So you are still able to download the PDF’s but the rest of the page is blank?

Yes. The PDFS are fine and I can download an actual PDF. It is just the Invoice page and the emails.

Have you looked at the default template for the Invoice (and as the emails are all blank, likely the rest of the messages but lets stick with Invoice to find the cause) is the template loaded correctly?

Yes. Everything is untouched. I did try a few other templates (again, I have not customized anything at all) and nothing has fixed this.

How did I edit the database? Find/Replace. I’ve done this a million times, but that doesn’t mean I didn’t make a mistake somewhere. Thanks for the reply.


Tony

  • Support Staff

November 28, 2016 at 6:52 am

Yes. The PDFS are fine and I can download an actual PDF. It is just the Invoice page and the emails.

Ok, but how are you getting to the PDF’s if the page is blank?

How did I edit the database? Find/Replace. I’ve done this a million times, but that doesn’t mean I didn’t make a mistake somewhere.

Unfortunately that’s not the correct way to edit the database and will break any serialized data that’s stored which could be the cause of your problems (the length of values are stored during serialization, if you change the length of the value you break the array/object/string/whatever).

The easiest way to do that is using a migration plugin that runs scripts that automatically adjust the serialized values for you. For example Duplicator or WP Migrate DB will do this for you.

If you want to run a local script that will do this for you you could use something like this:

https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

However you would need to run that on the original database after bringing it over to the site, not the one you have already edited.


gdtech

December 4, 2016 at 6:36 am

I reset the database in your maintenance section and fixed it that way. I’m having to rebuild my events, but that’s not that big a deal. However, I had noticed that on the original site, PDFs and invoices aren’t displaying images at all, but the “Image not found” error produces a clickable link that show the images just fine. Any thoughts on that? Here’s an example:


gdtech

December 4, 2016 at 6:37 am

Not sure why the link coding didn’t work…but here’s the URL: https://arkansasgirlsstate.com/thank-you/?ee=launch_invoice&id=1-418f897c0eb115fdb5ed1cd0b6f6aa95


Tony

  • Support Staff

December 5, 2016 at 5:01 am

Its not just the images, non of the styles are loading on that page which would normally mean allow_url_fopen has been disabled on your server, however…

You appear to be using the ‘old’ system for the invoices rather than the new system.

The URL for the new system looks like this:

http://example.com/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=invoice&context=purchaser&token=x-xxxxxxxxxxxxxxxxxxxxx&GRP_ID=30&id=1029

Do you have a custom template within /wp-content/uploads/espresso/modules/gateways/Invoice/lib/templates/?

If so that was the older method used to customize the invoice template before we added the Invoices to the messages system (which allows you to customize the template from within the admin).


gdtech

December 5, 2016 at 1:26 pm

Fixed. That clued me in. I deleted the old template folder from public_html/wp-content/uploads/espresso/ and it didn’t fix that invoice, but I made a new registration and it fixed it. Thanks.


Tony

  • Support Staff

December 5, 2016 at 2:50 pm

I deleted the old template folder from public_html/wp-content/uploads/espresso/ and it didn’t fix that invoice

If you were still using the same URL it will continue to load and use the old system for that registration.

You should be able to use the new system if you view the invoice from the transactions menu now as it should load the new style url.

Either way I’m glad its now working for you.


gdtech

December 5, 2016 at 2:52 pm

True. True. Thanks.

Viewing 9 reply threads

The support post ‘Blank Invoice & Blank Registration Email’ 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