 amyS-4
|
Thanks. I also want to mention again. If you switch it back to seamless and disable the ACRML plugin the fields will work as they should.
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
Thanks for your update. I passed this info to our 2nd tier support team.
Best regards,
Osama
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
Our 2nd tier support team fixed the issue by editing: hidden link (Group = Content Type: Button Group — To Clone)
and there, they changed the repeater field name to "button_group_repeater"
This is because there was a collision between the field names being the same "button_group," and this was creating the problem.
The downside of this is the loss of content - you have to re-create the links in the button groups or rename the meta keys to the proper value - e.g. from "content_blocks_8_button_group_0_custom_url" to "content_blocks_8_button_group_repeater_0_custom_url"
I tested this approach on my local server, and it fixed the issue.
Best regards,
Osama
|
 amyS-4
|
I appreciate the reply. and for finding a potential solution.
The trouble with this is that I have to go through ALL pages where there were button groups are used and recreate them. While I can potentially so a search/replace, it's tricky and kind of risky.
Can you confirm that your tier 2 team made the field name change on my server? I do not see the change there. the repeater is still called "button_group". I tried manually changing it on my end and doing a search/replace for "_button_group_" to "_button_group_repeater_". Not having luck. I am probably going to clone the live server and try again.
Can you help me understand why this is all of a sudden an issue and was not before?
thanks.
|
 amyS-4
|
also can you clarify where the conflict with "button_group" was. I can't find the other one that may be causing the issue.
|
 amyS-4
|
Hey Osama... I've reverted back to the previous backup a few times and tried to execute this with no luck.
Are you sure your direction is right. If I'm changing Content Type: Button Group — To Clone
that is different than 'Global Content Blocks" which is what your direction to change the meta keys to the proper value - e.g. from "content_blocks_8_button_group_0_custom_url" to "content_blocks_8_button_group_repeater_0_custom_url"
shouldn't I be changing from:
"content_blocks_1_column_1_content_types_0_button_group_0_button_text" to "content_blocks_1_column_1_content_types_0_button_group_repeater_0_button_text"
I've tried both and not having luck. I'm not 100% sure this direction is right. Can you please double check.
I also noted that on the KIDS page ( hidden link ) the "Featured Databases" Multicolumn flexible content field is also missing after any updates are made to the ACF fields.
With the solution you suggested above, why would the issue go away if I disable the ACFML plugin? It make me wonder if the solution is correct.
Thank you
|
 amyS-4
|
I'm totally confusing myself a bit now. Sorry!!! I developed this so long ago I'm having trouble trying to remember some of the logic.
So if I did a search and replace in the database for "_button_group_" to "_button_group_repeater_"
that will also change
"content_blocks_1_column_1_content_types_0_button_group_0_button_text" to "content_blocks_1_column_1_content_types_0_button_group_repeater_0_button_text"
which will cover the clone of Button Group in "Global Content Types — To Clone".
After the search/replace, I reload the homepage and the buttons are there, but the back end the fields are all blank. See screenshot.
in MYSQL I see the data is still there but the fields are not connecting to it. (see other screenshot)
I'm kinda lost here. I'm going to restore back to the backup again and let you test this again. Thanks
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
I tested the workaround on a local version of your site, and the solution works correctly, but it deletes the buttons from the front end and backend, so you need to re-add them.
Also, our 2nd tier supporter tested that before sharing the workaround with me.
The issue with ACFML is the structure of the fields and clones, which is a bit complicated.
If you disable ACFML, the issue will not occur in the default language, but you will not be able to translate the fields correctly.
The access details are denied when trying to log in to the site to try the workaround. I think this is because you retrieved an old backup.
Best regards,
Osama
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
Thanks for the access details. I edited the home page without any changes to check the button group and kept the page open.
After that, I edited this field group and changed the button group field name. (hidden link)
The last step was updating the home page in the opened tab after changing the text in the first button. Please check if the home page works correctly. (hidden link)
Best regards,
Osama
|
 amyS-4
|
Thank you Osama. I’ll will review shortly. Just getting online for the day. Making some coffee 🙂
I appreciate the additional help here. Did you see in one of my messages above that I am having the same issue on the /kids page with the multicolumn flexibile content block. Can you look into that as well.
Thank you.
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
Enjoy your coffee! I did the same steps. I edited the Kids page without any changes to check the button group and kept the page open.
After that, I changed the content field name in this field group. (hidden link)
Please check if the Kids page works correctly. (hidden link)
Best regards,
Osama
|
 amyS-4
|
Hey Osama, Thank you. Can I ask.... Are you doing this on my staging server or on your local server?
I went in opened and simply saved the "Global Content Blocks" page
hidden link
In doing so the button group on the homepage disappears as it did previously. I just want to confirm that you're maybe working locally.
Separately, I wonder how leaving the page open, changing a field name and saving the open page would work. Wouldn't the field name change on the page? Just trying to understand how that works.
thank you again!
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
1) I did the steps on your site.
2) Leaving the page open is for not adding the buttons from scratch.
3) Although I followed the steps on my local site, I can see the issue on your site. Therefore, I'll consult our second-tier support team about this.
4) When I changed the buttons, I didn't update the "Global Content Blocks" group, so it worked correctly.
Best regards,
Osama
|
 amyS-4
|
Thanks Osama. Let me know if you'd like me to revert again as it may prove helpful to start from where the live site Is and find a solution that work. Appreciate you elevating this to Tier 2.
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
Sorry for the late reply. Please don't restore the site, so our 2nd tier can check the issue on the current status.
If they ask me to restore the site, I'll let you know.
Best regards,
Osama
|