Posted: June 7, 2014 at 1:03 pm
|
Dear team i have upgraded to 4.25 today and right now im not even able to login to my admin console getting a error Fatal error: Class ‘EE_Admin’ not found in /home/..themes/rocky-theme/functions.php on line 4 can someone please help me asap or atleast let me know how do i roll back |
|
sorry but someone pls respond this is urgent |
|
never mind my backup saved me ..but this was a gr8 lesson learnt |
Hi Sudhir, Im glad you were able to restore a backup. The error was coming from your themes functions.php file, not Event Espresso. Most likely due to the code previously provided to remove the powered by EE tag line within here: https://eventespresso.com/topic/default-payment-status-paypal/#post-96468 Although currently I can not see a reason why. We recommend always creating a full site backup before updating any plugins/themes and would advise upgrading a clone of the site first (on a development server) to prevent issues such as these. |
|
|
I checked out that thread with the code that is likely in your themes functions.php file. You might want to modify it to have this: function remove_espresso_admin_footer() { if ( is_admin() && ( !defined( 'DOING_AJAX' ) || !DOING_AJAX ) && class_exists('EE_Admin') ){ remove_filter('admin_footer_text', array(EE_Admin::instance(), 'espresso_admin_footer')); } } add_action('admin_init', 'remove_espresso_admin_footer'); Basically you are just adding a check for the EE_Admin class. Likely what’s happening is during the upgrade process this is firing and failing because EE4 hasn’t been fully upgraded yet. |
|
ok i will test this on dev environent but you should have a rollback script just in case any upgrade fails (just a suggestion) |
Hi there Sudhir, Were you able to get this working with this updated code: https://eventespresso.com/topic/error-after-ee4-update-4-25/#post-101099 — |
|
|
Dear Lorenzo / Dareen |
The support post ‘Error after EE4 update 4.25’ 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.