Posted: February 2, 2024 at 9:42 am
When adding new event site throws a critical error.
from the WordPress notification email:
Next RuntimeException: Page route "_edit_cpt_item" with the supplied arguments () threw the following exception: Cannot use object of type stdClass as array in /nas/content/live/artspotonwheel/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:1156
Rio – my name is Chris and I am the web dev. Client has been using EE for some time but it is new to me. I am unsure what the legacy editor looks like versus the advanced editor.
The edit event screen is not the classic wordpress editor nor is it the block editor.
It has 6 tabs across the top abobe the title:
Below the content section are sections for Venue Details. Event Tickets & Datetimes
I can ask the client to try and loom when editing but she is not very tech savvy.
All events appear to have connected tickets.
Please copy firstname.lastname@example.org on replies.
I also just found your gist for a snippet to install if we use Yoast Seo.
We will install this snippet and see if it resolves the issue as well.
The issues appears to be caused by our MailChimp add-on (I am current investigating this).
If you deactivate that add-on and try again does it work then?
We’re having the same issue (the exact same error) and the MailChimp extension is not turned on. We did recently update to PHP 8
This is the notice we got:
we use Yoast premium. I have added the snippet from https://github.com/eventespresso/ee-code-snippet-library/blob/master/third-party-integration/tw_ee_load_yoast_seo_within_ee.php
i still don’t see the yoast meta boxes on the edit event screen and client does require mailchimp too although I have temporarily disabled that per your instructions
The error you’ve posted above is actually completely different to the one in this thread.
This is the original error:
So the reason I mentioned the MailChimp add-on is because this:
Is referencing a class within that add-on.
Your error is:
That’s from within Event Espresso core itself, I’ve seen that error before.
It looks like something is hooking into
We have a fix in the next version of Event Espresso to prevent that fatal.
Do you have FTP access to the site?
Yes I do.
I’ve just pushed an update which should fix your specific fatal error, that version is 5.0.17.p
If you don’t see it available on your site just yet, then on the site go to Event Espresso -> General Settings. Make no changes and just hit save to force an update check, the update should then show in Dashboard -> Plugins.
I also have FTP access to our site. Any update on a solution for artspotonwheels.com?
We are still having the Yoast issue after adding the snippet.
Tony – the error stopped after mailchimp was disabled. I have reactivated it and the client is testing again. When I hear back from her I will let you know. If she has no issues then it’s not the mailchimp add-on. If she has them again then it is the mailchimp add-on. It could also be that the code snippet for yoast resolved the critical error.
I’ll update you as soon as I know more.
The update worked for us. Thank you!
Awesome, I’m glad it worked.
Any further issues just let us know.