Support

Home Forums Event Espresso Premium Error after EE4 update 4.25

Error after EE4 update 4.25

Posted: June 7, 2014 at 1:03 pm

Viewing 7 reply threads


Sudhir

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


Sudhir

June 7, 2014 at 1:06 pm

sorry but someone pls respond this is urgent


Sudhir

June 7, 2014 at 1:47 pm

never mind my backup saved me ..but this was a gr8 lesson learnt


Tony

  • Support Staff

June 7, 2014 at 2:09 pm

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.


Darren Ethier

June 7, 2014 at 4:23 pm

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.


Sudhir

June 7, 2014 at 10:08 pm

ok i will test this on dev environent

but you should have a rollback script just in case any upgrade fails (just a suggestion)


Lorenzo Orlando Caum

  • Support Staff

June 9, 2014 at 11:22 am

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


Lorenzo


Sudhir

June 19, 2014 at 8:33 am

Dear Lorenzo / Dareen
Yes it went thru after the above fix .thanks again

Viewing 7 reply threads

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.

Event Espresso