Support

Home Forums Event Espresso Premium Error Viewing Receipt

Error Viewing Receipt

Posted: July 7, 2022 at 2:45 pm

Viewing 14 reply threads


gnetconsulting

July 7, 2022 at 2:45 pm

Hopefully this request saves. I have tried 4 times now. : (

I am running EE 4 on WordPress 6 on Apache 2.4.6 and PHP 7.2. After updating I am getting an error:


PHP Fatal error: Uncaught TypeError: Argument 1 passed to
EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice() must be of the type string, null given

Any help would be appreciated!


Tony

  • Support Staff

July 8, 2022 at 8:05 am

Hi there,

Can you link me to an invoice/receipt for a test registration so I can view this?

Or, link me to an event I can run a test registration on to view the above, please?


gnetconsulting

July 8, 2022 at 8:14 am

This reply has been marked as private.


Tony

  • Support Staff

July 8, 2022 at 8:24 am

The above (and likely the full backtrace) is showing me where the function is being called but the TypeError is being thrown because the content being passed to that function is null…. but if it’s a receipt the content should not be null.

I’m not reproducing this on any of my test sites so something odd is happening on that request.

Are you comfortable with FTP (or some file manager to make changes on the site, NOT the WP plugin editor) and PHP? If so I have a quick troubleshooting step you can try.


gnetconsulting

July 8, 2022 at 8:26 am

Tony,

This is a private server w/ FTP turned off. Let me see what I can do to get you access. I will follow-up shortly.


Tony

  • Support Staff

July 8, 2022 at 8:32 am

I can give you a version of Event Espresso to install over the current version to try if you’d like?

The change I’m suggesting is to remove the call to the above function throwing the error so that the request can continue to load, I’d like to see what is loading without that function being called.

I’ll package up a ‘custom’ version of EE which you can then install in Dashboard -> Plugins -> Add new -> Upload plugin. WP should then ask if you want to replace the current version with what you just uploaded, click to do so and you’ll have that version now running without FTP access needed.

Will that work for you?


gnetconsulting

July 8, 2022 at 8:34 am

Sure! I can do a full site backup first, JIC.


Tony

  • Support Staff

July 8, 2022 at 8:53 am

This reply has been marked as private.


gnetconsulting

July 8, 2022 at 9:27 am

I uploaded the new copy and now we do not get a 500 error, but the page is blank. When I view the source, in the head we 3 EE CSS files (html_base_default.css, html_print_default.css and html_main_default.css) and the body tag is empty.


Tony

  • Support Staff

July 8, 2022 at 9:41 am

Yeah, so that’s the problem. That should not be blank.

Ok, go to Event Espresso -> Messages -> Default Message Templates.

Find the Receipt message type and click on the ‘Edit Purchaser’ link.

Do you see content in the sections there?

(Note you are viewing the Receipt message and not the Invoice, right? If invoice just view the invoice message type)


gnetconsulting

July 8, 2022 at 9:44 am

Sigh. There’s nothing there. The client said they had added everything, so I didn’t even confirm.

Let me update and verify all messages have content. I will follow-up if we still have issues.

Thanks Tony!


Tony

  • Support Staff

July 8, 2022 at 9:51 am

Hold up ๐Ÿ™‚ There should always be default content there.

I can’t say why it’s gone missing, but there’s a simple fix, whatever changes they had there (if any) have gone now anyway.

In the template editor, look in the sidebar and you’ll see a ‘Reset Templates’ button.

Hit that and EE will re-generate the default content for the current message type (in this case Receipt), you should then have content in those sections.


gnetconsulting

July 8, 2022 at 9:55 am

Thanks Tony. That cleared her up. Appreciated!


Tony

  • Support Staff

July 8, 2022 at 10:35 am

Awesome ๐Ÿ™‚

So you can either leave that version installed (the only change is the one mentioned to remove the link) and on the next update to EE it will be replaced anyway… or do the above again and replace the current version only with the version of EE4 download from your account page again.

Both should work fine.


gnetconsulting

July 8, 2022 at 11:19 am

Sounds good!

Viewing 14 reply threads

The support post ‘Error Viewing 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