| @@ 599-607 (lines=9) @@ | ||
| 596 | $transaction_processor = EE_Registry::instance()->load_class( 'Transaction_Processor' ); | |
| 597 | // set the start time for this reg step | |
| 598 | 			if ( ! $transaction_processor->set_reg_step_initiated( $this->transaction, $reg_step->slug() ) ) { | |
| 599 | 				if ( WP_DEBUG ) { | |
| 600 | EE_Error::add_error( | |
| 601 | sprintf( | |
| 602 | __( 'The "%1$s" registration step was not initialized properly.', 'event_espresso' ), | |
| 603 | $reg_step->name() | |
| 604 | ), | |
| 605 | __FILE__, __FUNCTION__, __LINE__ | |
| 606 | ); | |
| 607 | } | |
| 608 | } | |
| 609 | } | |
| 610 | } | |
| @@ 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__); | |