WordPress.org

Forums

Spreadsheet + ACF Import
"Fatal Error" when I click "Upload" (8 posts)

  1. dmitcha
    Member
    Posted 2 years ago #

    Hi, I have searched online and at GitHub in case someone else has experienced this; when I try to upload an Excel spreadsheet, I receive the following error:

    Call to undefined method Acf::get_field_groups() in /home/content/28/9910428/html/db/wp-content/plugins/spreadsheet-acf-import/inc/model.class.php on line 168

    The code at that line is:

    // Advanced custom fields
    if (array_key_exists('acf', $GLOBALS)) {
    $fieldgroups = $acf->get_field_groups();

    I have tested a simple Excel db against all different post types and always get this error.

    Any help/ideas? Thanks!

    http://wordpress.org/extend/plugins/spreadsheet-acf-import/

  2. webblish
    Member
    Posted 2 years ago #

    Hi, I've got exactly the same error....

    I've also reported it over her: https://github.com/thechurch/wp-spreadsheet-acf-import/issues/1

  3. timsmart
    Member
    Plugin Author

    Posted 2 years ago #

    Which acf version are you using? Currently we only support v3.x

  4. webblish
    Member
    Posted 2 years ago #

    Thanks for your reply.

    I'm not using ACF, I only want to import some data for regular fields. Do I still have to install ACF, also if I don't need any custom fields?

  5. timsmart
    Member
    Plugin Author

    Posted 2 years ago #

    Interesting. I will have to look into this when I have a bit of time - hopefully sooner rather than later. I never got around to testing this without acf.

  6. dmitcha
    Member
    Posted 2 years ago #

    I am using ACF Version 4.0.3. Does your plugin support only older versions?

  7. timsmart
    Member
    Plugin Author

    Posted 2 years ago #

    Unfortunately yes. ACF went through quite a few API changes in 4.x which has broken this plugin.

    We are just about to switch to ACF 4 at work, so if this plugin is needed I might get to fix it as part of company time - which would be great! Otherwise you might need to wait a few more days.

  8. timsmart
    Member
    Plugin Author

    Posted 2 years ago #

    Error fixed in 0.1.5.

    Upgrade to 4.x issue opened here https://github.com/thechurch/wp-spreadsheet-acf-import/issues/2 . Not sure when I'll get around to fixing this, but you can follow progress at that link.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Spreadsheet + ACF Import
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic