Support

Home Forums Event Espresso Premium Fatal Error when using the Importer

Fatal Error when using the Importer

Posted: April 26, 2023 at 6:58 pm

Viewing 11 reply threads


KIROS

April 26, 2023 at 6:58 pm

Receiving this error when attempting to run a csv import of attendees:
Fatal error: Declaration of EventEspresso\AttendeeImporter\domain\services\batch\JobHandlers\AttendeeImporterBatchJob::create_job(EventEspressoBatchRequest\Helpers\JobParameters $job_parameters) must be compatible with EventEspressoBatchRequest\JobHandlerBaseClasses\JobHandlerInterface::create_job(EventEspressoBatchRequest\Helpers\JobParameters $job_parameters): EventEspressoBatchRequest\Helpers\JobStepResponse in /home/customer/www/kiros.org/public_html/wp-content/plugins/eea-importer/src/domain/services/batch/JobHandlers/AttendeeImporterBatchJob.php on line 75

Please advise.


Sam

  • Support Staff

April 27, 2023 at 6:09 am

Hi Jeff,

Thank you for reporting this. I’ve added a ticket for our developers to check the issue.


ILEA

May 3, 2023 at 1:56 pm

We are receiving the same error when we attempt to use the Importer to load in a CSV file of registrants. Line 75.

Error message: Declaration of EventEspresso\AttendeeImporter\domain\services\batch\JobHandlers\AttendeeImporterBatchJob::create_job(EventEspressoBatchRequest\Helpers\JobParameters $job_parameters) must be compatible with EventEspressoBatchRequest\JobHandlerBaseClasses\JobHandlerInterface::create_job(EventEspressoBatchRequest\Helpers\JobParameters $job_parameters): EventEspressoBatchRequest\Helpers\JobStepResponse


WalkerDesigner

May 7, 2023 at 2:12 pm

I have the same eror – is there any resolution to this?


Tony

  • Support Staff

May 9, 2023 at 12:55 pm

Hi there,

​I have just pushed an update live for the Importer add-on to fix this, but it will not show as available on your site just yet.

​Go to your account page here on Event Espresso and download version 1.0.3.p of the importer add-on.

​Then on the site itself go to Dashboard -> Plugins -> Add new -> Upload plugin.

​Select the .zip file you just downloaded and upload it. WordPress should tell you there is a version installed already and ask if you want to replace it.

​Confirm the plugin matches (except the version number) and click to replace.

​The importer add-on should now work for you.


WalkerDesigner

May 11, 2023 at 3:38 pm

I downloaded the update and it is getting further into the process but my export still fails and now I get this error:

While running BatchRunner::createJob() the following RuntimeException occurred:
SplFileObject::__construct(/home/customer/www/thomasw113.sg-host.com/public_html/wp-content/uploads/espresso/attendee-importer/csv-uploads/GEURuKHOJXGHK1w/registrations-attendees-updated.csv): failed to open stream: No such file or directory

#0 /home/customer/www/thomasw113.sg-host.com/public_html/wp-content/plugins/eea-importer/src/application/services/import/extractors/ImportExtractorCsv.php(52): SplFileObject->__construct(‘/home/customer/…’, ‘r’)
#1 /home/customer/www/thomasw113.sg-host.com/public_html/wp-content/plugins/eea-importer/src/domain/services/batch/JobHandlers/AttendeeImporterBatchJob.php(77): EventEspresso\AttendeeImporter\application\services\import\extractors\ImportExtractorCsv->setSource(‘/home/customer/…’)
#2 /home/customer/www/thomasw113.sg-host.com/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/batch/JobHandlerBaseClasses/JobHandler.php(53): EventEspresso\AttendeeImporter\domain\services\batch\JobHandlers\AttendeeImporterBatchJob->create_job(Object(EventEspressoBatchRequest\Helpers\JobParameters))
#3 /home/customer/www/thomasw113.sg-host.com/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/batch/BatchRequestProcessor.php(115): EventEspressoBatchRequest\JobHandlerBaseClasses\JobHandler->createJob(Object(EventEspressoBatchRequest\Helpers\JobParameters))
#4 /home/customer/www/thomasw113.sg-host.com/public_html/wp-content/plugins/event-espresso-core-reg/modules/batch/EED_Batch.module.php(287): EventEspressoBatchRequest\BatchRequestProcessor->createJob()
#5 /home/customer/www/thomasw113.sg-host.com/public_html/wp-content/plugins/event-espresso-core-reg/modules/batch/EED_Batch.module.php(179): EED_Batch->_enqueue_batch_job_scripts_and_styles_and_start_job()
#6 /home/customer/www/thomasw113.sg-host.com/public_html/wp-content/plugins/event-espresso-core-reg/modules/batch/EED_Batch.module.php(164): EED_Batch->enqueue_scripts_styles_batch_create()
#7 /home/customer/www/thomasw113.sg-host.com/public_html/wp-includes/class-wp-hook.php(308): EED_Batch->enqueue_scripts(‘admin_page_espr…’)
#8 /home/customer/www/thomasw113.sg-host.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#9 /home/customer/www/thomasw113.sg-host.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /home/customer/www/thomasw113.sg-host.com/public_html/wp-admin/admin-header.php(118): do_action(‘admin_enqueue_s…’, ‘admin_page_espr…’)
#11 /home/customer/www/thomasw113.sg-host.com/public_html/wp-admin/admin.php(239): require_once(‘/home/customer/…’)
#12 {main}


Tony

  • Support Staff

May 12, 2023 at 10:59 am

Hi there,

So that error is telling you the file EE is looking for in a temp location isn’t available.

If you use FTP or your hosts File Manager to navigate to /wp-content/uploads/espresso/attendee-importer/csv-uploads/GEURuKHOJXGHK1w/

Can you see a .csv file in that location?


afermtools

May 15, 2023 at 1:38 pm

Hi,

We first installed on April 26 and have been the same issues.

We upgraded last week to the update mentioned above (1.0.3p) and like @WAlkerDesigner, the process went a little further. This time we got an error screen with a detailed report. Previously we got the WP Critical ErrorWhite Screen and I had to find the specific error in the Log Files.

Our latest error is the same “No Such Directory”. And there is no directory when looking via FTP. There are several other randomly named directories created but none of those were successful uploads either, we have yet to have successful import.

So it seems before the update the direcories were being created and now they not. Hope this info helps.

Error

FTP


WalkerDesigner

May 15, 2023 at 6:42 pm

I do see a CSV in my csv-uploads folder, but I continue to get the error.


WalkerDesigner

May 15, 2023 at 9:49 pm

Hey @afermtools and support – I found the issue and was able to successfully upload my CSV, although I had to do several attempts. What I found was that the State and Country fields require specific abbreviations, such as DE for Germany, and so any line items that were missing or incorrect for state or country would cause a crash.


Tony

  • Support Staff

May 16, 2023 at 4:16 pm

Hi there,

Nice sleuthing!

I can confirm this issue and have an open ticket to address the issue with the State and Country columns.

What I found was that the State and Country fields require specific abbreviations, such as DE for Germany, and so any line items that were missing or incorrect for state or country would cause a crash.

However, this doesn’t appear correct looking at the code.

For states, the value passed will be used in the query with:

'STA_abbrev' => $inputProperty,
'STA_name' => $inputProperty,
'STA_ID' => $inputProperty

So whatever is set in the state field will be used for all of those in an OR query, so any matches will be returned.

For country, it’s:

'CNT_ISO'  => $inputProperty,
'CNT_ISO3' => $inputProperty,
'CNT_name' => $inputProperty,

DE would be the CNT_ISO
Germany would be CNT_name

Same here, that’s within an OR so CNT_ISO = ‘DE’ OR CNT_ISO3 = ‘DE’ OR CNT_name = ‘DE’ for a match on any.

A blank country/state field could causes issues with the current code.


afermtools

May 22, 2023 at 1:39 pm

I checked with my team member and the file they were uploading had an empty state field on one of the records. After fixing that, the upload was successful. I’ll keep an eye out for an updated release.

Viewing 11 reply threads

The support post ‘Fatal Error when using the Importer’ 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