Tagged: ,

  • This topic has 6 replies, 2 voices, and was last updated 5 years ago by Anonymous.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #60469
    Anonymous
    Inactive

    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}
    thrown

    Can you see anything obvious here that I am doing incorrectly?
    Thanks
    Jamie

    #60470
    Franky
    Keymaster

    Well, 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.

    #60472
    Anonymous
    Inactive

    Thanks so much Franky

    That fixed it. Much appreciated

    Jamie

    #60489
    Anonymous
    Inactive

    Hi 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
    JAmie

    #60490
    Franky
    Keymaster

    Currently 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 …

    #60493
    Franky
    Keymaster
    #60501
    Anonymous
    Inactive

    Excellent. That worked perfectly. Great stuff as always Franky

    Jamie

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top