Events Made Easy › Forums › Bug fixed or feature request implemented › Importing Events by CSV
Tagged: csv, import events
- This topic has 6 replies, 2 voices, and was last updated 5 years, 1 month ago by Anonymous.
-
AuthorPosts
-
Wed 6 Nov 2019 at 16:41 #60469AnonymousInactive
Hi Franky.
I’m having trouble importing events by CSV.
I have followed the instructions in the document https://www.e-dynamics.be/wordpress/csv-import-events-and-locations/ as closely as possible
However, when I upload the .csv file – I encounter the error: “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”
I have tried this on two separate sites running EME, but the same issue occurs
The .csv I upload is this:
"event_name","event_status","event_start_date","event_end_date","event_start_time","event_end_time","event_notes","location_name","location_address1","location_address2","location_city" "Sample Event","1","2019-12-07","2019-12-07","20:30","22:30","This is the text for Sample Event","Location Name","Location Street","Location Road","City Name"
In the email that comes from WordPress, the error details are:
Error Details
=============
An error of type E_ERROR was caused in line 4052 of the file /var/www/vhosts/triskelartscentre.ie/httpdocs/wp-content/plugins/events-made-easy/eme_events.php. Error message: Uncaught Error: Call to undefined function eme_insert_event() in /var/www/vhosts/triskelartscentre.ie/httpdocs/wp-content/plugins/events-made-easy/eme_events.php:4052
Stack trace:
#0 /var/www/vhosts/triskelartscentre.ie/httpdocs/wp-content/plugins/events-made-easy/eme_events.php(191): eme_import_csv_events()
#1 /var/www/vhosts/triskelartscentre.ie/httpdocs/wp-includes/class-wp-hook.php(286): eme_events_page(”)
#2 /var/www/vhosts/triskelartscentre.ie/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#3 /var/www/vhosts/triskelartscentre.ie/httpdocs/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#4 /var/www/vhosts/triskelartscentre.ie/httpdocs/wp-admin/admin.php(253): do_action(‘toplevel_page_e…’)
#5 {main}
thrownCan you see anything obvious here that I am doing incorrectly?
Thanks
JamieWed 6 Nov 2019 at 16:46 #60470FrankyKeymasterWell, that’s a bug obviously 🙂
Go to the mentioned line in eme_events.php and change the call to eme_insert_event to eme_db_insert_event
The latest version still has this bug too, so I’ll fix that (and some other stuff) and release a new version this week.Wed 6 Nov 2019 at 16:51 #60472AnonymousInactiveThanks so much Franky
That fixed it. Much appreciated
Jamie
Thu 7 Nov 2019 at 12:18 #60489AnonymousInactiveHi Franky
One last question on this. In the CSV file, is it possible to include Custom Attributes? I see in the documentation that it allows Custom Fields by adding columns named “answer_XX”.
But if I had a Custom Attribute such as #_ATT{WEBLINK}, how would I add it?
Thanks
JAmieThu 7 Nov 2019 at 16:00 #60490FrankyKeymasterCurrently attributes can’t be imported. I recommend to switch to custom fields there.
But adding it to the code isn’t that difficult to do …Thu 7 Nov 2019 at 23:47 #60493FrankyKeymasterThis change should do it:
https://plugins.trac.wordpress.org/changeset/2188080/Fri 8 Nov 2019 at 10:46 #60501AnonymousInactiveExcellent. That worked perfectly. Great stuff as always Franky
Jamie
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.