| @@ 836-845 (lines=10) @@ | ||
| 833 | $current_data_migration_script->set_migrating( false ); |
|
| 834 | $current_data_migration_script->schema_changes_before_migration(); |
|
| 835 | $current_data_migration_script->schema_changes_after_migration(); |
|
| 836 | if( $current_data_migration_script->get_errors() ){ |
|
| 837 | if( WP_DEBUG ){ |
|
| 838 | foreach( $current_data_migration_script->get_errors() as $error ){ |
|
| 839 | EE_Error::add_error($error, __FILE__, __FUNCTION__, __LINE__ ); |
|
| 840 | } |
|
| 841 | }else{ |
|
| 842 | EE_Error::add_error( __( '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.', 'event_espresso' ) ); |
|
| 843 | } |
|
| 844 | return false; |
|
| 845 | } |
|
| 846 | EE_Data_Migration_Manager::instance()->update_current_database_state_to(); |
|
| 847 | }else{ |
|
| 848 | EE_Error::add_error( __( 'Could not determine most up-to-date data migration script from which to pull database schema structure. So database is probably not setup properly', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__); |
|
| @@ 595-603 (lines=9) @@ | ||
| 592 | ) { |
|
| 593 | // set the start time for this reg step |
|
| 594 | if ( ! $this->transaction->set_reg_step_initiated( $reg_step->slug() ) ) { |
|
| 595 | if ( WP_DEBUG ) { |
|
| 596 | EE_Error::add_error( |
|
| 597 | sprintf( |
|
| 598 | __( 'The "%1$s" registration step was not initialized properly.', 'event_espresso' ), |
|
| 599 | $reg_step->name() |
|
| 600 | ), |
|
| 601 | __FILE__, __FUNCTION__, __LINE__ |
|
| 602 | ); |
|
| 603 | } |
|
| 604 | } |
|
| 605 | } |
|
| 606 | } |
|