Home›Support›English Support›[Resolved] The Image gallery dissapered from posts after installing WPML Media
[Resolved] The Image gallery dissapered from posts after installing WPML Media
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where images disappear and custom fields for images cannot be edited after installing WPML Media to translate image captions for posted articles. Solution: We identified a similar issue documented at https://wpml.org/errata/advanced-custom-fields-fatal-error-uncaught-typeerror-illegal-offset-type-in-isset-or-empty-in/, but the symptoms did not match exactly. Therefore, we reverted the workaround applied and suggested the client to edit the file
If you're experiencing this issue, we recommend trying the steps above. However, the solution might be irrelevant due to it being outdated or not applicable to your case. 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 the problem persists, please open a new support ticket at our 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.
We are using WPML in the production of our corporate website, which will go live tomorrow.
I just installed "WPML Media" to translate image captions for posted articles,
I am getting an error where images disappear and custom fields for images cannot be edited.
Is there a possible solution?
We are planning to work on the release today, but since the problem has not been resolved, we have taken another emergency action.
We would like to resolve this issue as soon as possible after the release, so please contact us as soon as possible.
Thank you for contacting WPML support, I’m happy to help you with this issue.
I understand the issue here is the images in the ACF gallery field disappeared after installing WPML Media Translation plugin. However, even after deactivating WPML Media, the image still doesn't display in the frontend.
Please let me know the post that you are editing and I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.
Thank you for contacting me!
We are very busy working on the release today and will contact you again once we have created a test environment.
Please wait as we need a little time.
However, I don't see the same symptom as noted in the documentation (fatal error) so I reverted the changes and you can see the gallery field works properly.
Edit the file /wp-content/plugins/acfml/classes/class-wpml-acf-attachments.php, around line 28, replace the workaround code:
Sorry for the late reply.
The error was resolved with what you supported! Thank you very much for your help.
In addition, I have one more question,
Is it possible to automatically translate German and Chinese into English for each article while the base language remains Japanese?
Thank you very much for your help.
New threads created by Long Nguyen and linked to this one are listed below: