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: Compatibility
This topic contains 43 replies, has 3 voices.
Last updated by Lauren 1 year, 8 months ago.
Assisted by: Lauren.
Author | Posts |
---|---|
August 10, 2023 at 6:31 pm | |
barrettL |
I have a site that is utilizing ACF blocks in the Gutenberg editor. I also have WPML on of course. I had an issue on a site that was also ACF blocks + Gutenberg + WPML, and reached out to ACF believing it was an issue with the blocks, and it still might be. However, I am utilizing ACF blocks on many many sites and there are only 2 sites with this issue. I am starting to suspect WPML because for several weeks pages have been built with the ACF blocks without issue. A few days ago I installed all the WPML plugins and began configuring and yesterday this issue started happening on this site. The issue is, upon editing an ACF block all the data gets mixed up with incorrect field keys. The actual values of the fields are correct but the keys of the array used to retrieve the data becomes mangled. From there, the data can never be retrieved and the only that can be done is to create a new block with all that content. |
August 10, 2023 at 7:57 pm | |
August 14, 2023 at 6:02 pm | |
August 14, 2023 at 6:03 pm #14199447 | |
Lauren WPML Supporter since 10/2015
Languages: English (English ) Timezone: America/New_York (GMT-04:00) |
Please see my previous private reply and let me know once the migration is complete. Thanks! |
August 14, 2023 at 7:51 pm #14199725 | |
barrettL |
I have installed the plugin and completed the form. It seems to have worked and is currently migrating. |
August 14, 2023 at 9:43 pm #14200041 | |
Lauren WPML Supporter since 10/2015
Languages: English (English ) Timezone: America/New_York (GMT-04:00) |
Great, you should get an email once it is completed. Let me know when that happens and I'll take a look at the staging site. Thanks! |
August 14, 2023 at 9:53 pm #14200045 | |
barrettL |
It's complete. |
August 15, 2023 at 5:35 pm #14204591 | |
Lauren WPML Supporter since 10/2015
Languages: English (English ) Timezone: America/New_York (GMT-04:00) |
Thank you for the update. I'm working on getting the test site set up. If I deactivate all plugins, I can access it. However, accessing the plugins throws this error which seems related to your theme: PHP Fatal error: Uncaught TypeError: Return value of _oms_populate_select_reusable_blocks() must be an instance of mixed, array returned in /mnt/BLOCKSTORAGE/home/278662.cloudwaysapps.com/scgehewwhq/public_html/wp-content/themes/orbit-media/includes/oms-acf.php:32 Since this error is related to ACF Pro as well, I'm wondering if this could be related to the issue you are having. I assume this is custom code you have added in the theme. Can you pelase test on your site if switching to a default theme temporarily resolves the issue? Also check and see if you have the same error in your debug log. in the meantime, I'll continue trying to get the copy of your site working. Please let me know what your results are. |
August 15, 2023 at 6:14 pm #14204759 | |
barrettL |
If all plugins are deactivated then no ACF blocks will be registered. The plugin oms-pageblocks is the plugin that creates ACF custom blocks that is having the issue when WPML is activated. Without custom code to register the blocks there could not be any ACF custom blocks. The theme serves up templates for the custom blocks. There are also some filters in the theme to customize where the blocks show up by default. Our custom theme and oms-pageblocks plugin go together. |
August 15, 2023 at 6:42 pm #14204939 | |
Lauren WPML Supporter since 10/2015
Languages: English (English ) Timezone: America/New_York (GMT-04:00) |
I understand the plugins are required for your custom theme. However, we need to determine if this bug is happening with the general WPML and ACF plugins, or if it's isolated to your custom theme/plugins. So we will need to try setting up the same environment for testing, without custom theme and plugins. You can use the staging site I set up to create a similar flexible field to the one you are having trouble with. Then we can create some test content with the new test field. Let's see if we can reproduce the problem with a default theme and only standard plugins, to rule out the chance that the issue is coming from custom code. Let me know once you have that set up on the staging site and what the name of the new field is so that I can test updating it. |
August 15, 2023 at 8:26 pm #14205285 | |
barrettL |
For the php error you encountered above when de-activating all the plugins, I have addressed that error on the dev site that was originally migrated into cloudways site. Are you able to update your testing site with a copy of my dev site again? Is there anything I would need to do to update your copy? Also, just posting here for ease of access, these are 2 pages with blocks that can be seen to be corrupt upon edit: I am also working on setting up a new instance of the site with a modified version of oms-pageblocks so that I can swap to a default theme but still render custom ACF blocks for testing. |
August 15, 2023 at 10:15 pm #14205553 | |
barrettL |
I have a new instance setup with an altered version of oms-pageblocks that does not need the theme to output the custom ACF blocks. The blocks are all unstyled as those do still come from the theme, but testing is able to happen on the Twenty Twenty-Three default WP theme. hidden link is the new instance. If you give me credentials of where to have it migrated into your cloudways site I will start that process. The same blocks on the same pages can be used for testing as noted in my comment above but also here |
August 16, 2023 at 3:58 pm | |
August 16, 2023 at 3:59 pm #14239693 | |
Lauren WPML Supporter since 10/2015
Languages: English (English ) Timezone: America/New_York (GMT-04:00) |
I have set up a new staging site for you to migrate your instance to. The details are in the previous private reply. Please let me know once migration is completed. Thanks! |
August 16, 2023 at 4:52 pm #14240027 | |
barrettL |
I have started the migration using the details above but unlike the last migration, this one isn't moving at all. It says Your site is being migrated to Cloudways! but all 3 progress bars have been at 0 for at least 10 minutes. I also tried cancelling and re-entering all the info. Both times it seems to be stuck at 0 for a while. Also, I believe I narrowed the issue down a little further. On a different testing instance I disabled string translation and the block issue did not occur on edit. I tried installing 3 previous version of string translation (down until the 6.1 fatal error fix version) and the issue occurred on all of them. Only when string translation was disabled did the issue not occur. |