Support

Home Forums Event Espresso Premium Invoices/Receipts are not created using nginx

Invoices/Receipts are not created using nginx

Posted: November 15, 2016 at 2:08 pm

Viewing 12 reply threads


bigroomstudios_wp

November 15, 2016 at 2:08 pm

Hey team, we’re using EE4 in the wild and have hit a roadblock. The invoice URL is not created in the backend, nor the receipts for the user when selecting that method during checkout.

Our current server is running nginx, and mod-rewrite is no available – which we are thinking could be the issue?

In our local development environments, which ironically use apache – we’re not seeing the issue.

Are there issues with this Payment Method and nginx? Is there some setting, or work around we need? or is this the first time you’ve encountered this problem?

Any help is appreciated. Cheers.


bigroomstudios_wp

November 15, 2016 at 2:47 pm

Update from our end, we’ve tried apache to debunk it and it’s also not showing the receipt button or creating the invoice. Any ideas? Php version?


Josh

  • Support Staff

November 15, 2016 at 3:40 pm

ngnix is fine, that’s what Eventsmart and demoee.org both use. Can you check the PHP error logs for when you try to generate an invoice? You mentioned that you’re not seeing a receipt button, do you have the receipt message activated in Event Espresso > Messages > Settings?


bigroomstudios_wp

November 17, 2016 at 11:20 am

Hey Josh,

I did check and reset the messages. The issue is also persistent within the admin panel.

So far, the only thing we’ve figured out that does fix this problem with invoice url’s not being right, is Event Espresso > Maintenance > Reset Tables. But the issue here, is the client has events and registrants in their system.

What could cause this to fail?


bigroomstudios_wp

November 17, 2016 at 11:21 am

Also, there are no errors in the php error logs anywhere πŸ™


Lorenzo Orlando Caum

  • Support Staff

November 17, 2016 at 2:32 pm

Hello,

A reset can have different meanings depending on the page that you are viewing in Event Espresso.

Resetting the tables in terms of starting over isn’t needed.

If you go to Event Espresso –> Messages –> Settings and click on the HTML link, then are the Invoice and Receipt message types enabled in the left box. Here is an example of the screen:

https://cl.ly/441Y1M1c440e

If they are inactive, then please drag and drop them to the left box to enable them again.


Lorenzo


bigroomstudios_wp

November 17, 2016 at 3:52 pm

Hey Lorenzo, I did go the route of checking those settings. They were all correct per your image above. What other settings control the invoice? What other tables are reset that may affect this? Could it be a memory or a data issue? We know it’s not code and that the reset solves the problem, issue is there are 100+ registrations already.. Thank you


Tony

  • Support Staff

November 17, 2016 at 4:22 pm

It sounds like the Receipt and/or Invoice template is missing.

Go to Event Espresso -> Messages -> Default Message Templates.

You will see a list of message templates there.

Look through the list and confirm you can see both the Receipt and Invoice message templates, note there that there may be multiple pages of templates, be sure to check them all for the templates.

This is what you are looking for – http://take.ms/oJn6h

Do you see both of those in the list?


bigroomstudios_wp

November 17, 2016 at 5:20 pm

That looks like it may be the issue! I’m seeing 14 in my local environment, and 12 on the staging environment. Those are the two that are missing. Does the admin even have the ability to delete these?? hmm.. more of a wonder I suppose. Anyhow, without adding those back in by hand – can I easily reset only the message templates? Thanks a bunch!


bigroomstudios_wp

November 17, 2016 at 5:44 pm

Resolved! I just did a sql dump of wp_esp_message_template and wp_esp_message_template_group. Did the trick!


Tony

  • Support Staff

November 17, 2016 at 5:46 pm

Go back to Event Espresso -> Messages -> Settings and find the Invoice and Receipt messengers within the HTML section above.

Now drag both of those messengers to the Inactive messengers box on the right, now back again to be active.

Refresh the Default Message Template list and check if the templates are now shown?


bigroomstudios_wp

November 17, 2016 at 6:21 pm

That would have been easier, so do those templates get generated on the fly via code? Hence why forcing it would cause the records to reappear in the list? Either way, thank you for helping us find that specific piece. πŸ˜€


Tony

  • Support Staff

November 17, 2016 at 6:45 pm

You’re most welcome πŸ™‚

Yes, if the templates are not available EE will regenerate them when the messenger is activated, so if for whatever reason your Invoice (and possibly receipt) template wasn’t available de/re-activating them will force EE to regenerate them.

Viewing 12 reply threads

The support post ‘Invoices/Receipts are not created using nginx’ 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