Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where a 'Button Group' flexible content block is not displaying on the homepage after cloning their live site to a staging environment. This issue occurred after upgrading to ACFML2 and making changes to ACF field groups. The problem persists despite trying various settings, and the block reappears only when the ACFML plugin is disabled.

Solution:
We recommend the following steps:
1. Create a fresh staging site from the live site.
2. Update WordPress Core, WPML CMS, String Translation, ACF, and ACFML to the latest versions, specifically ACFML (2.1.0).
3. Change the button field name to

button_group_repeater

.
4. Keep the clone field as Seamless.
5. Check if the issue is resolved.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket for further assistance at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 55 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 3 months ago.

Assisted by: Osama Mersal.

Author Posts
April 23, 2024 at 5:54 pm #15557746

amyS-4

Thanks Osama, I appreciate the outlined steps.. Thanks for taking the time.

To confirm... I'll have to go through every single page of the site and rebuild any flexible content block that uses button group? I can not do search/replace in the database as that did not work when we tried that? It's going to be quite an undertaking as there are a lot of page.

Question: Why would Seemless vs Group matter if that is merely a display option ?

Thanks again.

April 23, 2024 at 6:06 pm #15557754

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) Unfortunately, you would need to recreate the button.

2) I'm not sure why, but our dev team is aware of the issue, and they will work on a permanent fix for it.

Please let me if you need further assistance regarding this issue.

Best regards,
Osama

April 23, 2024 at 6:12 pm #15557802

amyS-4

I am still not seeing the homepage button(s) on the front end. I went into my template and changed "button_group" to "button_group_repeater" in

/wp-content/themes/TellurideLibrary/parts/content-blocks/content-types/content-type-button_group.php

April 23, 2024 at 6:17 pm #15557803

amyS-4

here's the code:

<?php
$max_per_row = get_sub_field("max_buttons_per_row");
$max_per_row_tab = get_sub_field("max_buttons_per_row_tablet");
$max_per_row_mob = get_sub_field("max_buttons_per_row_mobile");
$align = get_sub_field("button_alignment");
$row_width = ( get_sub_field("row_width") == "full-width") ? 12 : 6 ;
?>

<?php if( have_rows( 'button_group_repeater' ) ): ?>
<div class="inner-content grid-x align-center">
<div class="large-<?php echo $row_width; ?> cell">
<div class="grid-x grid-margin-x small-up-<?php echo $max_per_row_mobile; ?> medium-up-<?php echo $max_per_row_tab; ?> large-up-<?php echo $max_per_row; ?> <?php echo $align; ?>" data-equalizer >

<?php while( have_rows('button_group_repeater') ): the_row(); ?>

<div class="cell ">

<?php get_template_part( 'parts/content-blocks/content-types/content-type', 'button' ); ?>

</div>

<?php endwhile; ?>

</div>
</div>
</div>

<?php endif; ?>

April 23, 2024 at 7:00 pm #15557846

amyS-4

As a test. I changed added code:
$repeater = get_sub_field('button_group_repeater');
var_dump($repeater);

Which returned
bool(false)
for the homepage button group. It's not seeing the repeater fields at all. I believe that changing. SEAMLESS to GROUP for those fields is what is breaking that.

April 23, 2024 at 7:10 pm #15557853

amyS-4

Ok this is interesting.

I changed those 3 fields:
Content Type: Button Group — To Clone
Block: Button Group — To Clone
Global Content Blocks
from
GROUP back to SEAMLESS

var_dump($repeater);
returned:
bool(false)

Then I disabled "Advanced Custom Fields Multilingual" plugin
and
var_dump($repeater);
returned:
array of button information.

The plugin is definitely part of the issue here. I've left the var_dump() on the homepage under the her image. you'll see it's returning bool(false). I reverted your settings back to "Group" and enabled your plugin. You can turn it off and change the setting back to "Seamless" to see it recognize the repeater values.

hidden link

April 24, 2024 at 8:34 am #15559382

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

The buttons don't work on the front end in my local installation too. I tried some workaround and fixes with no luck, so I consulted our 2nd tier support about it.

Best regards,
Osama

April 25, 2024 at 5:02 pm #15566943

amyS-4

I think we're at the point where we are ready do move away from WPML and use a different solution. This breaking change in the plugin has been a massive waste of resources and expensive.

Can you provide instructions to uninstall and remove all WPML data.

Thank you.

April 25, 2024 at 8:08 pm #15567270

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) Please try the following:

1- Create a fresh staging site from the live site
2- Update WordPress Core, WPML CMS, String Translation, ACF, ACFML (2.1.0)
3- Change the button field name to (button_group_repeater)
4- Keep the clone field as Seamless
5- Check the issue

2) Sorry for the inconvenience. Here is a guide about resetting and deleting WPML. (https://wpml.org/documentation/getting-started-guide/language-setup/deleting-languages-and-plugin-data-by-doing-a-wpml-reset-on-your-site/)

Best regards,
Osama

April 30, 2024 at 10:13 pm #15582869

amyS-4

We decided that there are too many buttons throughout the site to have to go around and rebuild this. While we appreciate you may've found a way to resolve this, renaming the button_group field is not a great solution for us. This appears to be a major breaking change. We have opted to move away from WPML.

Thanks for your time.

April 30, 2024 at 11:59 pm #15582943

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Sorry for the inconvenience, and sorry for seeing you decide to use another solution.

Please let me know if you need further help.

Best regards,
Osama