Posted: 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:
Any help would be appreciated! |
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? |
|
|
This reply has been marked as private. |
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. |
|
|
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. |
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? |
|
|
Sure! I can do a full site backup first, JIC. |
This reply has been marked as private. | |
|
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. |
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) |
|
|
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! |
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. |
|
|
Thanks Tony. That cleared her up. Appreciated! |
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. |
|
|
Sounds good! |
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.