Support

Home Forums Event Espresso Premium Critical Error

Critical Error

Posted: February 2, 2024 at 4:23 am

Viewing 36 reply threads


bcroft

February 2, 2024 at 4:23 am

I have just purchased the licence for the newest version of Event Espresso.

When I upload the core to our website is get a critical error. If I remove the updated plugin the site loads.

lesleysmithhistorians.co.uk

I have put the old plugin back on for now( which also errors when you click on settings.

Have I purchased the right thing?

Please help as I need to get this site finished for the client.


Rio

  • Support Staff

February 2, 2024 at 6:18 am

Can you give more information?

your PHP version? MYSQL, WP and EE Version you are using, please tell us also your site URL.

What version are you using prior from the update? What Critical error did you receive.

Can you also send the error messages you received?

thanks


Tony

  • Support Staff

February 2, 2024 at 6:32 am

Hi there,

If you are getting a critical error then a ‘fatal error’ should be logged in the server’s error logs (your host will usually have a section for our to view them).

Can you post that error here, please?

Or, if you add this snippet to your sites wp-config.php file:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

Then reactivate Event Espresso to throw the error is should be logged in /wp-content/debug.log


bcroft

February 5, 2024 at 7:28 am

Hi There!

I didn’t realise that you had answered my post and created another post by accident.

I will collect the data to your questions and reply shortly


bcroft

February 5, 2024 at 7:47 am

PHP 7.4 – Tried 8, 8.1 and 8.2 – Same error
Site URL – lesleysmithhistorians.co.uk
WP – Version 6.4.3
EE4 – Event Espresso – 4.9.53.pVersion 6.4.3 (this one only errors when accessing settings, the latest one literally takes the site down with a critical error notice)

I have asked my service provider which version of MySQL / MariaDB I am using as this info is missing from PHPMyAdmin. I await their reply.


Tony

  • Support Staff

February 5, 2024 at 8:48 am

Hi there,

When theres a fatal error thrown there basically 2 versions of the error.

WordPress jumps in and displays a ‘pretty’ error for end users, that’s the one that shows ‘There has been a critical error’, which is great and keeps things looking ‘clean’… but… we coun’t troubleshoot from that error as it could literally be anything.

The ‘real’ error is save to the sites error logs and will likely start with ‘Fatal error’, that’s one we need to troubleshoot this.

If you have FTP credentials for the server and can send them over I can check to see if there is an error log with the error saved there?

If so just use this form:

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


bcroft

February 7, 2024 at 6:19 am

Sent


Tony

  • Support Staff

February 7, 2024 at 7:14 am

Hi there,

How did you update Event Espresso on the site?

I’m asking because there are files missing from that install which is why your getting a fatal error.


bcroft

February 8, 2024 at 4:22 am

Oh right – I just unpacked the download and used filezilla to upload to the same folder.

Shall I do it again and see what happens?


Tony

  • Support Staff

February 8, 2024 at 4:33 am

Due to the number of files within EE I’d recommend using the WP Plugin uploader.

Download the .zip from your account page, then on the site go to:

Dashboard -> Plugins -> Add New -> Upload Plugin

Select the .zip you just downloaded and upload. WP should ask if you want to replace the current version with the one you just selected, do so.

What happens then?


bcroft

February 8, 2024 at 4:38 am

So I re downloaded and unpacked and still it errors! I will upload the zip and then unpack. Bear with me.


bcroft

February 8, 2024 at 4:56 am

Yay! That worked!

Thank you very much for the help on this.

Just in case anyone comes across the issue – You cannot use Winrar on a PC to unpack the plugin. Just upload the zip to the web server and unpack it in the plugins folder.


bcroft

February 8, 2024 at 6:24 am

This reply has been marked as private.


bcroft

February 8, 2024 at 6:35 am

Ok – this this appears a problem – It is tested and working but keeps deactivating Paypal Commerce after 5 mins. I reactivate but it just knocks off after 5 mins


Tony

  • Support Staff

February 8, 2024 at 6:47 am

Just in case anyone comes across the issue – You cannot use Winrar on a PC to unpack the plugin. Just upload the zip to the web server and unpack it in the plugins folder.

You can, I’ve done it many times 🙂

BUT…. there are hundreds of files within EE and if you FTP those over and get a dropped connection on about 99% of them, you’ll get a fatal when EE tries to load a class that doesn’t exist. So we recommend either using the plugin uploader, or if you really want to use FTP do what you did above, upload the .zip and then extract.

Are you still working on the site…

No, I’m not working on the site, I haven’t been on the site a couple of minutes after my last reply.

Ok – this this appears a problem – It is tested and working but keeps deactivating Paypal Commerce after 5 mins. I reactivate but it just knocks off after 5 mins

Hmm, that’s new.

Consistently 5 mins?

Add this plugin to the site:

https://wordpress.org/plugins/wp-crontrol/

Go to Tools -> Cron Events.

Any tasks running every 5 mins listed?


bcroft

February 8, 2024 at 7:17 am

Hi Tony

Strange about the unpack and FTP element. I upload hundreds of thousands of files each day without any issue. Not to worry – the upload zip and unpack worked well for me and might just help another user.

I wouldn’t say it’s dead on 5 five minutes but it is long enough that I can test a transaction. I have installed the crontrol plugin… what now?

Thank you for your help on this – it is very appreciated.


bcroft

February 8, 2024 at 7:22 am

In fairness there is an update to EE4 due according to the plugin page. I have requested a change of domain on the licence as the company is rebranding etc – If I can get that sorted I could update from within WordPress?


bcroft

February 8, 2024 at 7:37 am

My key has now been reset but I have no idea whether I am supposed to enter the new website in your website or just attempt to update the plugin through WordPress. I have tried updating through wordpress but it just errors


bcroft

February 8, 2024 at 7:39 am

Also on the Crontrol plugin there are some entries that look related to EE4 that run every 5 mins:

AHEE__EE_Messages_Scheduler__generation
Edit | Run now | Pause this hook | Delete
None 2024-02-08 14:29:34
22 seconds EE_Messages_Scheduler::batch_generation() This is the cron time interval for EE Message schedules (defaults to once every 5 minutes)
Select this row AHEE__EE_Messages_Scheduler__sending
Edit | Run now | Pause this hook | Delete
None 2024-02-08 14:29:34
22 seconds EE_Messages_Scheduler::batch_sending() This is the cron time interval for EE Message schedules (defaults to once every 5 minutes)

And
ee_message_cron
This schedule is added by another plugin and cannot be deleted
300 (5 minutes) This is the cron time interval for EE Message schedules (defaults to once every 5 minutes)


bcroft

February 8, 2024 at 7:41 am

Apologies – I have learnt to read emails 😉 Licence key added


Tony

  • Support Staff

February 8, 2024 at 7:46 am

I wouldn’t say it’s dead on 5 five minutes but it is long enough that I can test a transaction. I have installed the crontrol plugin… what now?

Go to Tools -> Cron Events.

Any tasks running every 5 mins listed?

We may need to add a snippet to the site to see what is deactivating it.

If I can get that sorted I could update from within WordPress?

Sure, domain reset processed.

However, I don’t think the update will fix this


bcroft

February 8, 2024 at 7:52 am

Hi Tony – You were right, it still deactivates.

If you look above I did cut n paste the entries that run every 5 mins.

I have sent access to the wordpress previously – feel free to add whatever script you see fit to help. We are desperate to get the site live today.

Thanks again

Ben


Tony

  • Support Staff

February 8, 2024 at 8:51 am

I’m not current at my usual machine so I can’t add this for you.

Add this snippet: https://gist.github.com/Pebblo/d854e7b795cf818a365dea031a9b4f86

Set WP debug logging using this:
https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

The next time it happens the request doing it should be logged in wp-content/debug.log


bcroft

February 8, 2024 at 12:08 pm

Ok – I think that is done


bcroft

February 8, 2024 at 12:40 pm

I added what you suggested but it still does the same thing. Maybe I did it wrong?

The site is literally waiting on just this now.

Anything else I can try?


bcroft

February 8, 2024 at 12:43 pm

Also, nothing in the log…


Tony

  • Support Staff

February 8, 2024 at 1:01 pm

The reason nothing is in the log is down to where you added the code in wp-config.php.

Any changes you make to that file need to be before the /* That's all, stop editing! Happy blogging. */ line. The code after that line defines a bunch of constants which you then cant define again afterwards (such as WP_DEBUG).

I’ve moved that code up and the log is now saving entires.

We need for the above to happen again now the logs are working.


Tony

  • Support Staff

February 8, 2024 at 1:07 pm

This reply has been marked as private.


bcroft

February 8, 2024 at 2:01 pm

Hi Tony

Yeah I seen those errors so I have been working through them as I noticed other issues with the site.

I think I have cleared most of the errors by removing old / conflicting plugins. Please don’t judge me too hard here – I inherited the site and trying to make it work.

The main errors I have left are to do with legacy settings in the theme so I hope that they do not affect the EE4 plugin.

Traditionally the site has ran EE4 for many years but with changes comes updates and that’s when the issues have started.

Anything you can suggest is very appreciated as I am under pressure to get the site up for Lesley.

Thanks

Ben


Tony

  • Support Staff

February 8, 2024 at 2:52 pm

No judgements from me, I only see snippets of site with no context so I don’t make any judgements/assumptions on the goings on with anyway of them, I simply advise on any issues I see 🙂

So, I saw that the PayPal Commerce plugin had deactivated, but nothing was in the logs. Moved the code out of functions.php into its own plugin, nothing.

So right now I’ve added the code directly into EE where the admin notice is set showing that a payment method has been deactivated.

Waiting on another deactivation to see what shows up.


Tony

  • Support Staff

February 8, 2024 at 4:16 pm

This really makes no send at all.

I’ve added a bunch of logging within Event Espresso to find what is deactivating the payment method. First I tried the code I gave you, then I tried directly hacking up core rather than using a hook, then I directly logged within the method used to deactivate a payment method.

None of them show any details.

What type of hosting is this? Something very weird is going on on that site.


bcroft

February 9, 2024 at 12:03 am

The host is 20i. Usually very good.

Their support is awesome, anything I could ask them?


Tony

  • Support Staff

February 9, 2024 at 7:55 am

I’m not sure what you can ask them concerning this, this isn’t something I’ve seen before and it’s a weird issue.

Personally, what I would do from here is create a dev/staging copy of the site. One where it doesn’t matter what happens to the site itself. So then (as long as it’s reproduced there) you can start digging into plugin conflicts, disabling plugins and themes without affecting your live site to try and narrow down a cause.

It is only happening with the PayPal Commerce payment method so far, I’ve enabled PayPal Express and that stays active when this happens. So something is running a request where the payments methods aren’t active but what, I can’t say yet. And… the debugging above should of highlighted something but there nothing at all to work from yet.


bcroft

February 12, 2024 at 7:34 am

Hi Tony

Thank you for your reply and suggestion to use Paypal Express. Unfortunately I cannot see in paypals portal API username, password or signature.

I have only Client ID and Secret…

What now? We are not working and Lesley is very upset!


bcroft

February 12, 2024 at 9:08 am

This reply has been marked as private.


Tony

  • Support Staff

February 13, 2024 at 4:53 am

Thank you for your reply and suggestion to use Paypal Express. Unfortunately I cannot see in paypals portal API username, password or signature.

Sorry, seems I’ve caused some confusion here. I wasn’t recommending you use PayPal Express but rather stating that it happens for PayPal Commerce specifically rather than all payment methods.

I have only Client ID and Secret…

If you want to switch to PayPal Express we have some docs on finding your credentials here:

https://eventespresso.com/wiki/paypal-express-payment-gateway/#locate

However, I would recommend using PayPal Commerce, but we’ll need to troubleshoot this on a dev site to find out what is happening.

What now? We are not working and Lesley is very upset!

Did you set up a dev/staging site to troubleshoot?


Tony

  • Support Staff

February 13, 2024 at 4:55 am

This reply has been marked as private.
Viewing 36 reply threads

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