Support

Home Forums Event Espresso Premium Error caused in line 709

Error caused in line 709

Posted: March 23, 2023 at 12:53 pm


gar8328

March 23, 2023 at 12:53 pm

Wordpress keeps giving me the following error identifying Event Espresso as the plugin causing the error, but I cannot find anything wrong with the website. “An error of type E_ERROR was caused in line 709 of the file /var/www/wp-content.plugins/event-espresso-core-reg/admin_page/events/Events_Admin_Page.core.php. Error message: Uncaught TypeError:Events_Admin_Page::verify_event_edit(): Argument #1 ($event) must be of type ?EE_Base_Class, bool given, called in /var/www/wp-includes/class-wp-hook.php on line 308 and defined in var/www/wp-content/plugins/event-espresso-core-reg/admin pages/events/Events Admin Page.core.php.:709”


Tony

  • Support Staff

March 23, 2023 at 3:49 pm

Hi there,

Which theme are you running on the site?

The above is an error stating the save_post hook didn’t have an event to save.

Edit an event and just ht update, does that trigger the error for you?


gar8328

March 23, 2023 at 3:57 pm

Hi Tony,
Theme is Hello Elementor Child. The error happens when I duplicate an event, make changes, then update and publish.


Tony

  • Support Staff

March 23, 2023 at 4:05 pm

But not when just editing a normal event?


gar8328

March 23, 2023 at 4:19 pm

Just tried editing a new event. Still getting an error message. I’m no longer getting email messages but getting this message still “There has been a critical error on this website. Please check your site admin email inbox for instructions.”


Tony

  • Support Staff

March 23, 2023 at 4:31 pm

I can’t reproduce this, but I’d like to take a deeper look at this if possible?

If so I’ll need WP Admin and FTP credentials so I ca add some debug code to the site and view what s happening on the request.

If that’s ok you can send temp details over using this form:

https://eventespresso.com/send-login-details/


gar8328

March 23, 2023 at 5:31 pm

Info sent…


Tony

  • Support Staff

March 23, 2023 at 5:32 pm

Thank you for the wp admin credentials, but to troubleshoot I need FTP access to add some code to the site.

Also, what steps do I need to take on the site to reproduce? I edited the event you linked me to and hit update but didn’t get any errors shown.


gar8328

March 23, 2023 at 5:35 pm

What is FTP access?
I just did a simple edit in the content and hit UPDATE and received the error message.


Tony

  • Support Staff

March 23, 2023 at 5:39 pm

What is FTP access?

Access to files on the server itself.

Your host will usually provide you with FTP credentials when you sign up.

Who are you hosting with I’ll check if they have documentation on creating an FTP account.

I just did a simple edit in the content and hit UPDATE and received the error message.

I can reproduce on your site now. I didn’t want to change any of the event content but it’s required to trigger the error.


gar8328

March 23, 2023 at 5:40 pm

Hosting with GoDaddy.


gar8328

March 23, 2023 at 5:46 pm

Tony,

I’ll have to pause for about an hour. I’ll be back…


Tony

  • Support Staff

March 23, 2023 at 5:56 pm

Assuming your Linux hosting (which you likely will be) you can follow this:

https://uk.godaddy.com/help/add-ftp-users-to-my-linux-hosting-account-16044

Use whatever details you prefer and then send them over using the form again, don’t add them here on the forums.


gar8328

March 23, 2023 at 7:08 pm

On My Products page, I don’t see “Web Hosting”. I see Domain, Payments, Managed WordPress, SSL Certificates, Workspace Email, Email Marketing, Additional Products.”


Tony

  • Support Staff

March 24, 2023 at 4:58 am

Oh, with a Managed WordPress account, I think you’ll need to follow this:

https://uk.godaddy.com/help/upload-files-with-sftp-8940


gar8328

March 24, 2023 at 9:42 am

Ok. Done and submitted.


Tony

  • Support Staff

March 24, 2023 at 2:19 pm

Hmm, ok. Thank you.

So, on your site, revisions are enable on EE Post types. Thats odd because we don’t have them enabled within our codebase, so something is forcing them to be enabled and thats what caused the fatal. The EE Event saved as a revision post and the code wasn’t expecting that.

I’ve applied a patch to the version of Event Espresso running on your site and opened a ticket to have that patch included within the next version of EE5.

Can you try editing an event now and see if it works for you?


gar8328

March 24, 2023 at 3:37 pm

Unfortunately i’m still getting the “There has been a critical error on your website” message. I did a computer reboot but the message still appears.


gar8328

March 24, 2023 at 3:41 pm

I just changed the status for 2 of my events and updated, did not get the error message.


gar8328

March 24, 2023 at 3:56 pm

I edited one of my site pages with no issues so the problem seems to be with some of the events.


Tony

  • Support Staff

March 25, 2023 at 8:13 am

Hi there,

Strange! I’ll check into this.

Which event did you edit (just let me know the event id) and what specific change did you make?


gar8328

March 25, 2023 at 10:56 am

Event 1125. You’ll see on the first line I added the word “test”.


Tony

  • Support Staff

March 25, 2023 at 5:36 pm

Thank you.

Same issue just in a different section of the code.

I’ve patched it on your site and the event now works for me, can you confirm?

Just to note, both the patches I’ve applied will be included in the next version of Event Espresso.


gar8328

March 25, 2023 at 9:02 pm

Everything seems to be working! Thanks so much Tony!


Tony

  • Support Staff

March 27, 2023 at 6:11 am

Awesome, I’m glad that’s working.

Any further issues just let me know.


gar8328

March 28, 2023 at 2:10 pm

Tony, real quick. I went to do an update for 5.0.2.p but get the error message saying “Update failed: The plugin is at the latest version.” How do I get rid of the message to update the plugin? “There is a new version of Event Espresso available…”


Tony

  • Support Staff

March 29, 2023 at 6:42 am

The short answer is you can’t, the update will show when the next release of EE5 shows on your account page.

Longer answer:

If when you go to your account page and it shows the version of EE5 is 5.X.X you can download it from there and update manually by downloading the .zip and uploading it to the site via:

Dashboard -> Plugins -> Add new -> Upload plugin.

WordPress will show a version of the plugin already exists and ask if you want to replace it, do so. However, make sure you are not overriding v5 with 4.10.46 (the current ‘constant’ release version).

EE5 is currently on a phased release so updates sometimes show when they are currently unavailable, the update shows because your site pinged home when the update was available but no longer is.

(The phased release system is new and this is an issue we’ve recently found so it will likely not be fixed before the phased release of EE5 is complete, once it is fully released the above should no longer be an issue)

The support post ‘Error caused in line 709’ 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