Support

Home Forums Event Espresso Premium all events vanished once upgraded

all events vanished once upgraded

Posted: May 5, 2015 at 4:10 am


Ballyholme Yacht Club

May 5, 2015 at 4:10 am

hi i upgraded from 3 to 4 and now i have not events or attendees?


Tony

  • Support Staff

May 5, 2015 at 4:30 am

Hi there,

EE3 and EE4 are vastly different systems.

When you activated EE4, you should have seen the option to migrate your EE3 data to EE4. Did you run through the migrations?

When you activate you’ll see something like this – http://take.ms/OWjyr

Clicking on the link to view maintenance mode shows the option to Migrate your date – http://take.ms/iFOsJ

Does that look familiar?


Ballyholme Yacht Club

May 5, 2015 at 4:33 am

hi tony

No i didnt see this option of it detecting a previous version with option to migrate data? would this be because we set up a new account to purchase the ee4 version?

thanks


Ballyholme Yacht Club

May 5, 2015 at 4:39 am

also when i click the maintenance mode tab i dont get the option to migrate data?


Tony

  • Support Staff

May 5, 2015 at 5:20 am

No this is not due to using a new account, EE4 should detect if EE3 has previously been installed on your site and offer to migrate the data.

Which version of EE3 did you have installed on the site?


Ballyholme Yacht Club

May 5, 2015 at 5:20 am

i had 3.1.20.P installed on the site?


Dean

May 5, 2015 at 5:32 am

Hi,

3.1.20 is quite old. I think there was a minimum need of 3.1.36 required to then migrate to EE4 due to database differences.

If you reactivate EE 3.1.20 do your events reappear?

If they do, it would be advisable to upgrade your EE3 first then swap over to EE4.

Also, did you take a backup of your site before trying the upgrade?


Ballyholme Yacht Club

May 5, 2015 at 5:40 am

hi yeah if i activate old version the events appear again. how do i upgrade the ee3 version? as we dont have access to the account used to purchase this one, thats why we had to set a new one up to purchase the e44?

thanks


Josh

  • Support Staff

May 5, 2015 at 6:56 am

You can updgrade the ee3 version by downloading the current version of EE3 lite and activating. You can download it here.

Then you deactivate ee3.1.20, then activate current ee3 lite. The database update script will run and will make the data migrate-able to EE4.

Then when you go to update to EE4, you’ll need to deactivate EE3 first.


Ballyholme Yacht Club

May 5, 2015 at 9:45 am

after i installed the ee3 lite, then deactivated it, installed the ee4 & clicked activate it just gives me a redirect loop now?


Ballyholme Yacht Club

May 5, 2015 at 9:50 am

The webpage at http://mydomain.com/wp-admin/admin.php?page=espresso_about has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Learn more about this problem.
Error code: ERR_TOO_MANY_REDIRECTS


Lorenzo Orlando Caum

  • Support Staff

May 5, 2015 at 10:43 am

Hi, could you deactivate any HTTPS plugins that may be running on your site?

This includes the old Espresso HTTPS plugin which is no longer recommended.

If you are not using any with that name, then a security plugin may also have this feature built-in for switching pages to HTTPS.


Lorenzo


Ballyholme Yacht Club

May 6, 2015 at 2:20 am

hi i have disabled all plugins on my website and am still getting this redirect loop?


Josh

  • Support Staff

May 6, 2015 at 6:56 am

Hi there,

Here’s a guide that you can follow that will help you fix the too many redirects issue:

http://www.wpbeginner.com/wp-tutorials/how-to-fix-error-too-many-redirects-issue-in-wordpress/


Ballyholme Yacht Club

May 7, 2015 at 3:02 am

HI THANKS FOR THI SBUT I TRIED ALL THE SOLUTIONS IN THAT LINK & IT STILL DOESNT WORK. I HAVE DEACTIVATED ALL PLUGINS TOO. WHEN I TRY TO ACTIVATE ANY OTHER PLUGIN I DONT GET THIS REDIRECT ISSUE. I ONLY GET THE REDIRECT ISSUE WHEN I TRY TO ACTIVATE THE EVENT ESPRESSO PLUGIN?


Josh

  • Support Staff

May 7, 2015 at 7:27 am

Hi there,

Here’s a bit of code you can add to a custom snippets plugin that will disable the redirect to the About page:


// stop redirect to about page after update
add_action( 'init', 'ee_remove_about_ee_redirect', 4 );
function ee_remove_about_ee_redirect() {
    global $pagenow;
    if (
        ! in_array(
            $pagenow,
            array( 'wp-login.php', 'wp-register.php' )
        )
        && class_exists( 'EE_System' )
    ) {
        remove_action(
            'AHEE__EE_System__initialize_last',
            array( EE_System::instance(), 'redirect_to_about_ee' ),
            9
        );
    }
}

Please be sure to activate the snippet plugin before you activate EE4.


Ballyholme Yacht Club

May 7, 2015 at 8:20 am

hi many thanks for this but once i added the code to this plugin & activated it & then activated version ee4 it still gives me:

The webpage at http://ballyholme.com/wp-admin/admin.php?page=espresso_about has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.


Ballyholme Yacht Club

May 7, 2015 at 8:22 am

infact i never actually clicked activate on that snippet and now that i have i get the white screen of death?


Josh

  • Support Staff

May 7, 2015 at 9:05 am

A white screen of death means there’s a PHP error in your code somewhere.

You can check your error log or enable WP_DEBUG to find out what’s causing the white screen of death.

More tips here:

http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/


Ballyholme Yacht Club

May 7, 2015 at 9:40 am

hi i have been able to activate plugin now but now its showing:

The following errors have occurred:
There were errors creating the Event Espresso database tables and Event Espresso has been deactivated. To view the errors, please enable WP_DEBUG in your wp-config.php file.
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440
A database error has occurred. Turn on WP_DEBUG for more information.
EEM_Base – _do_wpdb_query – 1440


Ballyholme Yacht Club

May 7, 2015 at 9:54 am

hi can we get a refund for this product please as it wont work on our site

thanks


Ballyholme Yacht Club

May 7, 2015 at 10:09 am

Fatal error: Class ‘EE_System’ not found in /home/ballyhol/public_html/wp-content/plugins/mine/custom.php on line 10


Josh

  • Support Staff

May 7, 2015 at 10:25 am

I’m sorry for the trouble. Please try this code instead:


// stop redirect to about page after update
add_action( 'init', 'ee_remove_about_ee_redirect', 4 );
function ee_remove_about_ee_redirect() {
    global $pagenow;
    if (
        ! in_array(
            $pagenow,
            array( 'wp-login.php', 'wp-register.php' )
        )
        && class_exists( 'EE_System' )
    ) {
        remove_action(
            'AHEE__EE_System__initialize_last',
            array( EE_System::instance(), 'redirect_to_about_ee' ),
            9
        );
    }
}

The above will ensure the fatal error isn’t thrown.

When you go to activate EE4 with the above code in place, it may bring you to a white screen, because it’s not redirected to the about page. You can navigate away from the white screen by hitting the back button.


Ballyholme Yacht Club

May 7, 2015 at 10:56 am

thanks, i can now activate it but in maintenance page its still not giving me option to migrate data from v3 to v4?


Tony

  • Support Staff

May 7, 2015 at 11:59 am

That’s likely because EE4 was activated previously (when EE3 hadn’t been updated)

You haven’t created any Events/Registrations/etc within EE4 yet correct?

If so you first want to create a database backup*, there are many plugins available to do this. Here is one I use – https://wordpress.org/plugins/backupwordpress/

Then go to Event Espresso -> Maintenance -> Reset/Delete Data tab.

Within there you will find the option ‘Permanently Delete All Event Espresso Data’

http://take.ms/E00XK

If you click that it will reset the EE4 tables as if EE4 had never been activated. Then when you re-activate EE4 again, the migrations should trigger.

*Note as that function deletes tables from the database, it is highly recommended to create a database backup before hand and not skipping this step, we’ve not had reports of issues with the feature but it is better to be safe.

The support post ‘all events vanished once upgraded’ 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