ICLE
October 31, 2019 at 7:49 am
Step by step of Registration CSV error
Text of error:
The file will download automatically when done, and then you will be redirected.
An exception of type EE_Error occurred while running BatchRunner::create_job(). Its message was EE_Datetime_Field::_prepare_for_display requires a DateTime class to be the value for the $DateTime argument because the Date/Time Event Created field is not nullable. and had trace #0 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_models/fields/EE_Datetime_Field.php(438): EE_Datetime_Field->_prepare_for_display(1572529547) #1 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php(701): EE_Datetime_Field->prepare_for_get(1572529547) #2 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_CPT_Base.class.php(102): EE_Base_Class->_get_fresh_property(‘EVT_created’, false, NULL) #3 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php(670): EE_CPT_Base->_get_fresh_property(‘EVT_created’, false, NULL) #4 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php(1168): EE_Base_Class->_get_cached_property(‘EVT_created’, false, NULL) #5 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php(347): EE_Base_Class->get(‘EVT_created’) #6 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.class.php(96): EE_Base_Class->set(‘EVT_ID’, ’86’, false) #7 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php(2112): EE_Event->set(‘EVT_ID’, ’86’) #8 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.class.php(50): EE_Base_Class::_check_for_object(Array, ‘EE_Event’, NULL, Array) #9 /home4/iclegaat/public_html/wp-content/plugins/csvexport/csvexport-custom.php(126): EE_Event::new_instance(Array) #10 /home4/iclegaat/public_html/wp-content/plugins/csvexport/csvexport-custom.php(199): wpso_get_venue_slug(’86’) #11 /home4/iclegaat/public_html/wp-includes/class-wp-hook.php(286): espresso_add_meta_value_csv(Array, Array) #12 /home4/iclegaat/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array) #13 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Deprecated.core.php(1469): apply_filters(‘FHEE__EE_Export…’, Array, Array) #14 /home4/iclegaat/public_html/wp-includes/class-wp-hook.php(286): ee_deprecated_registrations_report_csv_legacy_fields(Array, Array) #15 /home4/iclegaat/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array) #16 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/batch/JobHandlers/RegistrationsReport.php(501): apply_filters(‘FHEE__EventEspr…’, Array, Array) #17 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/batch/JobHandlers/RegistrationsReport.php(107): EventEspressoBatchRequest\JobHandlers\RegistrationsReport->get_csv_data_for(0, 0, 1, Array, Array) #18 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/batch/BatchRequestProcessor.php(71): EventEspressoBatchRequest\JobHandlers\RegistrationsReport->create_job(Object(EventEspressoBatchRequest\Helpers\JobParameters)) #19 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/modules/batch/EED_Batch.module.php(241): EventEspressoBatchRequest\BatchRequestProcessor->create_job(‘EventEspressoBa…’, Array) #20 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/modules/batch/EED_Batch.module.php(177): EED_Batch->_enqueue_batch_job_scripts_and_styles_and_start_job() #21 /home4/iclegaat/public_html/wp-content/plugins/event-espresso-core-reg/modules/batch/EED_Batch.module.php(142): EED_Batch->enqueue_scripts_styles_batch_file_create() #22 /home4/iclegaat/public_html/wp-includes/class-wp-hook.php(286): EED_Batch->enqueue_scripts(‘admin_page_espr…’) #23 /home4/iclegaat/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #24 /home4/iclegaat/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #25 /home4/iclegaat/public_html/wp-admin/admin-header.php(104): do_action(‘admin_enqueue_s…’, ‘admin_page_espr…’) #26 /home4/iclegaat/public_html/wp-admin/admin.php(233): require_once(‘/home4/iclegaat…’) #27 {main}
What would cause this?
Josh
October 31, 2019 at 8:16 am
Add New Note to this Reply
Hi,
It may be related to items #8 through #12 from your stacktrace. If you temporarily remove the callback to the espresso_add_meta_value_csv
function from the filter hook that modifies the CSV report, does the report generate without errors?
ICLE
November 6, 2019 at 11:56 am
Add New Note to this Reply
I noticed this only happens in shared hosting in Bluehost.
This is not happening in my dev I have setup in Pantheon.
Might this be the result of a security measure Bluehost is unwittingly running?
Tony
November 6, 2019 at 12:06 pm
Add New Note to this Reply
Is the bluehost site and dev pentheon site syncing their database? Meaning they are pulling in exactly the same content on each site?
If not then either site will be pulling different data so we can’t say if its an issue with a specific host.
As Josh mentioned, it looks like it from the espresso_add_meta_value_csv
function and at a guess, something to do with adding the published/event date to the CSV.
Have you checked that function and/or ran the export with it disabled to confirm if it works then?