WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields - Location Field add-on
Broke after Update ACF? (12 posts)

  1. alexanderij
    Member
    Posted 1 year ago #

    After the last update of ACF, it looks like the location plugin doesn't work anymore:

    "Error Field type does not exist".

    http://wordpress.org/extend/plugins/advanced-custom-fields-location-field-add-on/

  2. Jonathan Lundström
    Member
    Posted 1 year ago #

    This is due to some massive changes in the ACF 4.0 codebase. The functions and methods previously used to create and register fields are now gone. It's possible to update the plugin and it shouldn't be too hard. I'm looking into it at the moment and I will get back to you with results when there are any.

    I've also contacted the plugin authors but haven't got any official statement from them.

  3. alexanderij
    Member
    Posted 1 year ago #

    Would be great if you have a solution to this. Keep me posted!

  4. Ricardo
    Member
    Posted 1 year ago #

    Jonathan, it seems to me that the custom field code is the one which needs updating:

    http://www.advancedcustomfields.com/docs/tutorials/creating-a-new-field-type/

    Cheers,

    Ricardo

  5. Jonathan Lundström
    Member
    Posted 1 year ago #

    Ricardo, thats exactly what I meant with massive changes to the codebase. I've updated the field and have a working version for ACF4. I'm about to hand the code over to the plugin authors so that they can update the plugin and make it work properly.

  6. alexanderij
    Member
    Posted 1 year ago #

    Hi Jonathan, is it possible to mail the code? Because we don't know when the author is going to update.

  7. Jonathan Lundström
    Member
    Posted 1 year ago #

    Right now the field is missing its localization and is currently not in the form of a plugin. I can clean up the code and try to implement it using the standards from the previous plugin. I would like to release it publicly, but send me an email and we can discuss it for the time being.

    Keep in mind that when the real plugin updates you should use that one instead.

  8. Ricardo
    Member
    Posted 1 year ago #

    I see. So I guess the new ACF API isn't working as expected, otherwise updating the custom type code should be enough to make it work (according to that tutorial, at least).

    Anyway, it would be nice to have backward compatibility, I just wrote a post in ACF's forum asking if it was possible.

    Thanks for the quick response!

  9. Jonathan Lundström
    Member
    Posted 1 year ago #

    I've been trying to find some fast ways to contact the maintainer of the plugin and it seems like he's updated the plugin. His version also includes backwards compatibility.

    https://github.com/elliotcondon/acf-location-field

    That being said, I won't release mine since his is more functional.

    Best regards,
    Jonathan

  10. alexanderij
    Member
    Posted 1 year ago #

    Super, i see it works! Thank you!

  11. Ricardo
    Member
    Posted 1 year ago #

    Just tried it, worked like a charm. Thanks for your assistance!

  12. mattrock1
    Member
    Posted 1 year ago #

    Thanks for the link, Jonathan! I hope they update the Add-ons page soon. Would be super appreciated. Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.