• Resolved icarleug

    (@icarleug)


    Hello!

    I got a few errors in the admin interface when trying to use ACF v4.4.12 and after a bit of research I found out that the function names were wrong and that there was a ACF v5 available for early access.
    The v5 version worked with wp-multilang, I guess they changed the function names between versions.

    It might be good to mention the ACF v5 requirement on the plugin frontpage though.

    How to upgrade if you are still stuck on 4:
    https://www.advancedcustomfields.com/resources/upgrade-guide-version-5/
    Note that it will change the look of things, so try on a staging site first…

    Best Regards,
    Andreas

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • VaLeXaR

    (@valexar)

    Hi @icarleug.
    WP Multilang works with ACF and ACF PRO.
    ACF v4
    ACF v5.6
    What an error You have? Can You make the screenshot?

    Thread Starter icarleug

    (@icarleug)

    Hello @valexar!

    Actually I first fixed it for v4 so I know exactly where the problem is, at least for those errors I found.
    Then I found out that there was a v5, so I updated and got the same problem but in reverse, so I reverted to the original file and all was well.

    File: /includes/integrations/class-wpm-acf.php

    689: $field_groups = acf_get_field_groups(array(
    Function does not exist by that name in v4, it is called api_acf_get_field_groups

    715: $fields = acf_get_fields( $field_group );
    Function does not exist by that name in v4, it is simply called get_fields

    745: if( acf_is_ajax('add-menu-item') ): ?>
    Function does not exist at all in any form as far as I could find, I commented out 745-757 to make it not return an error.

    Best Regards,
    Andreas

    VaLeXaR

    (@valexar)

    Fixed. Update please.
    Thank You for Your review.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ACF v4 error’ is closed to new replies.