Posted: 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. |
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 |
|
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 |
|
|
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 |
|
PHP 7.4 – Tried 8, 8.1 and 8.2 – Same error 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. |
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: |
|
|
Sent |
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. |
|
|
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? |
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? |
|
|
So I re downloaded and unpacked and still it errors! I will upload the zip and then unpack. Bear with me. |
|
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. |
|
This reply has been marked as private. |
|
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 |
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.
No, I’m not working on the site, I haven’t been on the site a couple of minutes after my last reply.
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? |
|
|
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. |
|
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? |
|
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 |
|
Also on the Crontrol plugin there are some entries that look related to EE4 that run every 5 mins: AHEE__EE_Messages_Scheduler__generation And |
|
Apologies – I have learnt to read emails 😉 Licence key added |
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.
Sure, domain reset processed. However, I don’t think the update will fix this |
|
|
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 |
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: The next time it happens the request doing it should be logged in |
|
|
Ok – I think that is done |
|
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? |
|
Also, nothing in the log… |
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 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. |
|
This reply has been marked as private. | |
|
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 |
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. |
|
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. |
|
|
The host is 20i. Usually very good. Their support is awesome, anything I could ask them? |
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. |
|
|
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! |
|
This reply has been marked as private. |
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.
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.
Did you set up a dev/staging site to troubleshoot? |
|
This reply has been marked as private. | |
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.