Support

Home Forums Event Espresso Premium Importer add-on error – need help please

Importer add-on error – need help please

Posted: August 27, 2019 at 5:43 am


CaroleeAC

August 27, 2019 at 5:43 am

We’re trying the Importer add-on to import registrations (which were exported as CSV files from an old installation). However, we cannot get past (1) Choose Event because we’re getting the following error message:


Fatal error: Cannot use EventEspresso\AttendeeImporter\application\services\import\config\ImportModelConfigInterface as ImportModelConfigInterface because the name is already in use in /home/foobar/public_html/wp-content/plugins/eea-importer/src/application/services/import/config/models/ImportAttendeeConfig.php on line 8

Please help. Thanks.


Tony

  • Support Staff

August 27, 2019 at 7:21 am

Hi there,

Can you let me know which version of PHP, WordPress and Event Espresso you are running on the site, please?


CaroleeAC

August 27, 2019 at 8:25 am

Hi Toby,

We’re using Event Espresso 4.10.0.p
PHP 7.1 and
WordPress 5.2.2

Looking forward to your next reply.

Thanks.


CaroleeAC

August 27, 2019 at 8:26 am

My apologies for misspelling your name, Tony (slaps forehead).


Tony

  • Support Staff

August 27, 2019 at 9:02 am

I passed your reply over to Toby and he’s looking into it 🙂

So far, I can’t reproduce this and it’s a strange error. Just to confirm, you go to Event Espresso -> Importer (In the add-ons section).

Select an event and click next step and that’s when you get the error?


CaroleeAC

August 27, 2019 at 9:17 am

Hi Tony,

Yes, you described it correctly. The error comes up after I hit the “Next” button.

If I may. I’d like to give a little more background info…

We have a live site with an older version of EE (4.9.43.p).
We exported (using WP’s built-in export function) the Events, Venues, and Hidden Events as XML.
We’re building a new version of the site on a test server (this is where we have the latest EE version and where we got the error).
We imported the XML above into this test server.
The Events data were imported successfully although missing some details (like dates were incorrect and some custom fields were missing) – but we figured we could edit those manually.
On the live server (with the older EE), we exported the Registration details of one Event as a CSV.
When we tried to import this into the same Event on the test server using the Importer add-on, it errored out, thus this thread.

I’m hoping you could help us figure out a solution for this.

Thanks in advance.


Tony

  • Support Staff

August 27, 2019 at 9:45 am

Hmm, ok. Thank you for the additional information.

Can you test something on you dev site for me? Just create a new event using the admin (not imported) with a single ticket and single DateTime.

In the importer, select that new event, does it give the same error?


CaroleeAC

August 27, 2019 at 9:55 am

I did what you suggested and got the same error (unfortunately).


CaroleeAC

August 27, 2019 at 10:14 am

OK, just out of sheer curiosity, I decided to change the PHP version to PHP 7.1.30 (since that option was available on our cPanel). Lo and behold, the error is gone and Importer add-on seems to be working as it should now.


Tony

  • Support Staff

August 27, 2019 at 10:28 am

It would have been really strange for it to work tbh, but would have been something I could use to reproduce so was worth a shot.

The error your getting basically means that something is trying to load with the same name/alias as something else that has already loaded. Problem is the code looks fine and I’ve tested PHP5.6 and 7.1-3 with no issues.

What I would do next is test this with only Event Espresso core and the Importer add-on enabled. You can do this with Troubleshooting mode (Tools -> Site Health -> Troubleshooting -> Enable Troubleshooting Mode) which will switch to a default theme and disable all plugins for the current admin.

You then the admin bar -> Troubleshooting Mode -> Manage active plugins.

Active Event Espresso core and the Importer add-on and retest, does it work then?


CaroleeAC

August 27, 2019 at 10:21 pm

Hi Tony,

Thank you for your suggestion. I may have to table that test for another time since I’m a very tight deadline. For now, I’m just glad it is working as it should – which will allow us to replicate all the Events data from the old site to the new one.

I do hope that you guys can come up with an add-on that can do a straightforward “cloning” of an existing EE installation to a new redesigned website (like in our case). That would really be a time saver and I think many of your current users could use it too.

Once again, thank you for your help – appreciate your time and trouble.

Best.
Peter Go


Tony

  • Support Staff

August 28, 2019 at 5:34 am

No problem.

Something to note whilst you are working on this is PHP7.1 is almost EOL: https://www.php.net/supported-versions.php

So I’d recommend updating to PHP7.3 if possible.


CaroleeAC

August 29, 2019 at 5:01 am

Thank you for that last bit of advice, Tony.

The support post ‘Importer add-on error – need help please’ 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