Support

Account

Forum Replies Created

  • Do you have an ETA on when this will be fixed?

  • Did the dev ever fix this issue, or is there an official workaround besides modifying the plugin core?

  • In my case John’s solution of using get_option or get_post_meta was the best solution. It’s not quite as convenient, but I was loading field values for a scheduled job in WordPress so timing wasn’t an option for me. Hopefully this thread is able to help others.

  • Thanks John, I think that’s the route I’ll have to go since I’m also calling fields during a schedule task.

  • Okay I did a little more digging on this. I’m still seeing an issue between ACF 5.3.1 and ACF 5.3.3.2. In my theme everything works as expected. Our issue seems to be in a custom plugin where we start to get weird results. If I call get_field on a repeater I get the item count and if I call get_field on a flexible_content field I get an array of the field types, but none of the content for the groups.

    So I tried a few things to fix this:

    1. I was loading the fields via the init action, but that was in my theme, so I moved those to a custom plugin. In both 5.3.1 and 5.3.3.2 the fields fail to load if I’m loading the custom fields from the exported PHP definitions. If I move the fields back to the DB then 5.3.1 works and 5.3.3.2 fails.
    2. So the PHP field groups not loading made me think this was simply a hook priority thing so I set my field groups to a low priority number for early execution and then changed my plugin to a high priority late execution. This still gave the same odd results.
    3. Then I switch back to loading the fields from the DB. In this case 5.3.1 went back to working. 5.3.3.2 still failed so I left my plugin to late init with a priority of 999, but again that still didn’t work.

    So to confirm, my theme works perfectly with no loading issues. It’s in my plugin where the issues arise. Hopefully this helps a bit.

  • I ran a query and spit out all of the fields I have published in my DB. You can see the output below. I could only find one field that had the same name as another field with different field types for the same name.

    In my case I have multiple options pages. So I have the standard ‘options’ page and then I have another one called ’60day’. Now I tried moving my one issue field between these two pages, but that didn’t fix the issue. Reverting back to ACF 5.3.1 did fix this issue though. A week later I was doing some performance tuning and decided to move the field groups to PHP files. With this move, even with ACF 5.3.1 I was getting the item count output for my repeater fields. So I had to move my one ’60day’ field group back to the DB.

    I have gone through the usual steps of switching to a default theme and also disabled all non-standard plugins. I think the main question is what’s different between the field getting populated in my edit pages, which does work, versus getting the field values in the theme.

    THIS FIELD HAD NO NAME FOR SOME REASON
    -tab (1)
    Thumbnail
    -image (1)
    _copy
    -tab (1)
    add_photo_gallery
    -true_false (1)
    add_title_butterfly
    -true_false (1)
    affirmation_mp3
    -file (1)
    audio_file
    -file (1)
    author_link
    -text (1)
    author_location
    -radio (1)
    auto_play_video_once_on_load
    -true_false (1)
    background_image
    -image (4)
    boxed_content
    -true_false (1)
    button_label
    -text (2)
    button_link_type
    -radio (1)
    button_link_url
    -text (1)
    category_name
    -text (1)
    challenge_mp3
    -file (1)
    column_title
    -text (1)
    content
    -wysiwyg (1)
    content_colour
    -radio (3)
    daily_email_body
    -wysiwyg (1)
    daily_email_files
    -repeater (1)
    daily_email_subject
    -text (1)
    daily_emails
    -tab (1)
    date
    -textarea (1)
    -date_picker (2)
    dates
    -repeater (1)
    days
    -repeater (1)
    deal_start_date
    -date_picker (1)
    deck
    -post_object (1)
    description
    -textarea (7)
    -wysiwyg (2)
    fancy_title
    -true_false (1)
    feature_blocks
    -repeater (1)
    feature_image
    -image (2)
    feature_logos
    -image (1)
    footer_note
    -textarea (2)
    freebies
    -repeater (1)
    gallery
    -gallery (1)
    gallery_photos
    -gallery (1)
    gallery_position
    -radio (1)
    gratitude_mp3
    -file (1)
    gravity_form_id
    -number (1)
    highlight
    -textarea (2)
    highlight_cirlces
    -repeater (1)
    highlights
    -repeater (1)
    icon
    -select (1)
    -image (1)
    icon_features
    -repeater (1)
    intro*******
    -textarea (2)
    -wysiwyg (2)
    -repeater (1)
    intro_column_text
    -wysiwyg (1)
    intro_content_footer
    -text (1)
    intro_sub-title
    -wysiwyg (2)
    intro_title
    -text (2)
    item
    -textarea (1)
    job/location
    -text (1)
    link_feature_to_page
    -url (1)
    link_url
    -url (1)
    list_items
    -repeater (1)
    listing_type
    -radio (1)
    mailchimp_newsletter_group_name
    -text (1)
    monday_email_body
    -wysiwyg (1)
    monday_email_subject
    -text (1)
    monday_emails
    -tab (1)
    more_info_page
    -page_link (1)
    name
    -text (3)
    num_registrants
    -number (3)
    num_tickets
    -text (1)
    on_sale_products_only
    -true_false (1)
    outline_photos
    -true_false (1)
    page
    -post_object (1)
    page_blocks
    -repeater (1)
    page_icon
    -image (1)
    photo
    -image (6)
    product
    -post_object (2)
    product_category
    -taxonomy (1)
    purchase_buttons
    -repeater (1)
    purchase_date
    -date_picker (2)
    quote
    -textarea (1)
    recipients
    -repeater (1)
    registration_page
    -page_link (1)
    section_title
    -text (6)
    show_add_to_cart
    -true_false (1)
    side_scroll_on_mobile
    -true_false (1)
    sold_out
    -true_false (1)
    sub-title
    -text (2)
    subscriber_user
    -user (2)
    testimonials
    -repeater (1)
    thumbnail
    -image (1)
    ticket_type
    -text (1)
    time
    -text (3)
    time_of_day_to_switch_deals
    -text (1)
    title
    -text (14)
    title_icon
    -image (1)
    user
    -user (1)
    video_thumbnail
    -image (1)
    video_title
    -text (1)
    videos
    -repeater (1)
    vimeo_id
    -text (2)
    vimeo_video_url
    -url (1)
    -text (1)
    weekly_videos
    -repeater (1)
    worksheet
    -file (1)
    youtube_video_id
    -text (2)
    youtube_video_ids
    -repeater (1)

  • I have already submitted a ticket, but those aren’t as visible to external users. I wanted to give @imageDESIGN hope that they weren’t alone. 🙂

  • I ended up reverting back to ACF 5.3.1 and my issue was fixed, so I believe this is just a bug that was introduced in the last couple of versions.

    With regards to the direct query idea, while this could technically work, I would consider this more of a hack since you’re not future proofing your site for possible data structure changes that the ACF team might implement in the future.

  • I’m seeing this exact same issue in 5.3.3. I have two ACF options pages and on both if I call get_field on a repeater field, it returns the count of rows in the repeater and not the actual sub-fields. I tried calling have_rows as well and it can’t find anything.

  • I dug into this one more and found the culprit. The Store Exporter Deluxe plugin adds a “attribute_escape” filter, which ends up overriding the esc_attr call that ACF makes when it outputs the value of a field. The filter specifically removes the equals symbol from the value, which explains why we’re getting an empty string for the “is equals to” value. This filter is applied in the /plugins/woocommerce-store-exporter-deluxe/includes/formatting.php file. I commented out the filter for now and ACF is back to working as expected. I’ll reach out to the other developer to see if he can clean up this issue, though maybe there’s something that ACF can do to prevent other plugins from overriding the esc attributes like this.

  • Here’s my list of active plugins. I have the Deluxe version of the store exporter. Maybe that’s the difference. I can zip that up and send it over for testing is needed.

    – Advanced Custom Fields Pro: by elliot condon – 5.3.2.2
    – AJAX Thumbnail Rebuild: by junkcoder – 1.12
    – Enable Media Replace: by MÃ¥ns Jonasson – 3.0.3
    – Gravity Forms + Custom Post Types: by Brad Vincent – 3.0.1
    – Gravity Forms: Notification Attachments: by Timothy Wood (@codearachnid) – 1.5
    – Groups WooCommerce: by itthinx – 1.9.1
    – LearnDash WooCommerce Integration: by LearnDash – 1.2
    – Peter’s Login Redirect: by Peter Keung – 2.9.0
    – Post Types Order: by Nsp Code – 1.8.5
    – Redirection: by John Godley – 2.4.3
    – LearnDash LMS: by LearnDash – 2.1.5
    – Smart Manager: by Store Apps – 3.9.10
    – SumoMe: by SumoMe – 1.10
    – Twitter Widget Pro: by Aaron D. Campbell – 2.8.0
    – Visser Labs Updater: by Visser Labs – 1.2
    – WooCommerce – Autocomplete Order: by Mirko Grewing – 1.1.1
    – WooCommerce Deposits: by Abdullah Ali – 1.5
    – WooCommerce Dynamic Pricing: by Lucas Stark – 2.10.5
    – Follow-Up Emails: by 75nineteen Media LLC – 4.4.7
    – WooCommerce Moneris Gateway: by WooThemes / SkyVerge – 2.3.4
    – WooCommerce Google Analytics Integration: by WooThemes – 1.3.0
    – WooCommerce Product Add-ons: by WooThemes – 2.7.12 – 2.7.13 is available
    – WooCommerce Purolator: by Guillaume Prieur – 2.1.9
    – WooCommerce – Store Exporter Deluxe: by Visser Labs – 2.0.3
    – WooCommerce Subscriptions: by Prospress Inc. – 2.0.6
    – WooCommerce: by WooThemes – 2.4.10
    – WP Crontrol: by John Blackbourn & Edward Dale – 1.3
    – WP Instagram Widget: by Scott Evans – 1.8.1
    – WP Super Cache: by Automattic – 1.4.6
    – Gravity Forms: by rocketgenius – 1.9.14
    – Gravity Forms MailChimp Add-On: by rocketgenius – 3.7.1
    – Post Duplicator: by Metaphor Creations – 2.12
    – Groups: by itthinx – 1.9.0
    – Multisite User Management: by Brent Shepherd – 1.1
    – WooThemes Helper: by WooThemes – 1.5.9
    – iThemes Security Pro: by iThemes – 2.0.2
    – BuddyPress Community Stats: by rich @etiviti – 0.5.4
    – Advanced Custom Fields Pro: by elliot condon – 5.3.2.2
    – WP Super Cache: by Automattic – 1.4.6
    – Yoast SEO: by Team Yoast – 3.0.3
    – wpMandrill: by Mandrill – 1.33
    – Network Plugin Auditor: by Katherine Semel – 1.9.1

  • I have that same plugin and can confirm that this is indeed the issue. Now how it’s hijacking a field like this seems a little odd.

  • Sometimes making too big of a jump with both WPML and ACF can break stuff. I would recommend upgrading ACF to the most recent version of ACF 4 first and then do the same with WPML 2. Then once those versions are up to date you can upgrade ACF 4 to 5 and WPML 2 to 3.

  • I tried an upgrade on our dev site and everything seemed to upgrade properly. I wonder if the recent releases fixed the upgrade process.

  • I have a rather large site with 7 languages that I need to upgrade. Did you find a fix for this?

Viewing 16 posts - 1 through 16 (of 16 total)