Posted: 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” |
|
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? |
|
Hi Tony, |
|
But not when just editing a normal event? |
|
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.” |
|
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: |
|
Info sent… |
|
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. |
|
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 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. |
|
Hosting with GoDaddy. |
|
Tony, I’ll have to pause for about an hour. I’ll be back… |
|
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. |
|
On My Products page, I don’t see “Web Hosting”. I see Domain, Payments, Managed WordPress, SSL Certificates, Workspace Email, Email Marketing, Additional Products.” |
|
Oh, with a Managed WordPress account, I think you’ll need to follow this: |
|
Ok. Done and submitted. |
|
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? |
|
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. |
|
I just changed the status for 2 of my events and updated, did not get the error message. |
|
I edited one of my site pages with no issues so the problem seems to be with some of the events. |
|
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? |
|
Event 1125. You’ll see on the first line I added the word “test”. |
|
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. |
|
Everything seems to be working! Thanks so much Tony! |
|
Awesome, I’m glad that’s working. Any further issues just let me know. |
|
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…” |
|
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.