We're trying to send a page to translation but it fails in 3 languages out of 4. Chinese worked, but KO, FR, JA failed.
The original page was created using Elementor (Pro) about a year ago, and updated today.
The UI reports this, which suggests the issue lies in the media-translation glue plugin.
Job ID: 4297
ATE Job ID: 185033103
Error Type: DownloadError
Error Message: array_key_exists(): Argument #2 ($array) must be of type array, null given /var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:214
Error Details: {
"message": "array_key_exists(): Argument #2 ($array) must be of type array, null given",
"code": 0,
"file": "/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php",
"line": 214,
"trace": [
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:118",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:139",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-translated-images-update.php:301",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-translated-images-update.php:155",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php:200",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:341",
"/var/www/html/web/wp/wp-includes/plugin.php:205",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php:173",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/inc/wpml-private-actions-tm.php:33",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/class-wpml-tm-ate-jobs.php:90",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Consumer.php:32",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Process.php:69",
"[internal function]:0",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Process.php:99",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/REST/Download.php:60",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1292",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1125",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:439",
"/var/www/html/web/wp/wp-includes/rest-api.php:467",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:341",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:365",
"/var/www/html/web/wp/wp-includes/plugin.php:570",
"/var/www/html/web/wp/wp-includes/class-wp.php:418",
"/var/www/html/web/wp/wp-includes/class-wp.php:821",
"/var/www/html/web/wp/wp-includes/functions.php:1343",
"/var/www/html/web/wp/wp-blog-header.php:16",
"/var/www/html/web/index.php:7"
]
}
---
Job ID: 4298
ATE Job ID: 185033104
Error Type: DownloadError
Error Message: array_key_exists(): Argument #2 ($array) must be of type array, null given /var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:214
Error Details: {
"message": "array_key_exists(): Argument #2 ($array) must be of type array, null given",
"code": 0,
"file": "/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php",
"line": 214,
"trace": [
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:118",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:139",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-translated-images-update.php:301",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-translated-images-update.php:155",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php:200",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:341",
"/var/www/html/web/wp/wp-includes/plugin.php:205",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php:173",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/inc/wpml-private-actions-tm.php:33",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/class-wpml-tm-ate-jobs.php:90",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Consumer.php:32",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Process.php:69",
"[internal function]:0",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Process.php:99",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/REST/Download.php:60",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1292",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1125",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:439",
"/var/www/html/web/wp/wp-includes/rest-api.php:467",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:341",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:365",
"/var/www/html/web/wp/wp-includes/plugin.php:570",
"/var/www/html/web/wp/wp-includes/class-wp.php:418",
"/var/www/html/web/wp/wp-includes/class-wp.php:821",
"/var/www/html/web/wp/wp-includes/functions.php:1343",
"/var/www/html/web/wp/wp-blog-header.php:16",
"/var/www/html/web/index.php:7"
]
}
---
Job ID: 4299
ATE Job ID: 185033107
Error Type: DownloadError
Error Message: array_key_exists(): Argument #2 ($array) must be of type array, null given /var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:214
Error Details: {
"message": "array_key_exists(): Argument #2 ($array) must be of type array, null given",
"code": 0,
"file": "/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php",
"line": 214,
"trace": [
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:118",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:139",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-translated-images-update.php:301",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-translated-images-update.php:155",
"/var/www/html/web/app/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php:200",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:341",
"/var/www/html/web/wp/wp-includes/plugin.php:205",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php:173",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/inc/wpml-private-actions-tm.php:33",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/class-wpml-tm-ate-jobs.php:90",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Consumer.php:32",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Process.php:69",
"[internal function]:0",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:603",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/Download/Process.php:99",
"/var/www/html/web/app/plugins/sitepress-multilingual-cms/classes/ATE/REST/Download.php:60",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1292",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1125",
"/var/www/html/web/wp/wp-includes/rest-api/class-wp-rest-server.php:439",
"/var/www/html/web/wp/wp-includes/rest-api.php:467",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:341",
"/var/www/html/web/wp/wp-includes/class-wp-hook.php:365",
"/var/www/html/web/wp/wp-includes/plugin.php:570",
"/var/www/html/web/wp/wp-includes/class-wp.php:418",
"/var/www/html/web/wp/wp-includes/class-wp.php:821",
"/var/www/html/web/wp/wp-includes/functions.php:1343",
"/var/www/html/web/wp/wp-blog-header.php:16",
"/var/www/html/web/index.php:7"
]
}
To properly investigate this matter, I would like to review the issue directly on your website. For this purpose, I kindly request temporary access to the WordPress admin panel (WP-Admin). Preferably, this would be to a test or staging environment where the issue has been replicated, if such an environment is available.
You will find the required credential fields below the comment section. Please rest assured that any information submitted there will remain strictly private and accessible only to you and our support team.
Additionally, it may be necessary to replicate your website locally in order to perform a deeper analysis in a controlled environment. To do so, we would temporarily install a plugin such as Duplicator to generate a full copy of the site and its content. Once the investigation is complete, the local copy will be removed.
Kindly confirm whether this approach is acceptable, and we will proceed accordingly.
Thank you very much for your cooperation.
Important:
Before granting access, we strongly recommend creating a full backup of your website files and database to ensure everything is safely preserved.
Thank you for providing the access credentials. I can confirm that I was able to successfully access the WordPress admin panel.
I will now proceed with the investigation and work actively to identify the root cause of the issue. I will keep you informed and share an update as soon as I have any findings.
We are still actively working on identifying the proper long-term solution for this issue. In the meantime, we would like to try a small code adjustment that should help unblock the translations that are currently failing.
Specifically, please update the following line in the file:
You may apply this change directly in the staging environment you previously shared. Alternatively, if you prefer, you can provide us with FTP access credentials, and we will apply the change for you.
Once the modification has been implemented, please test the translations again and let us know whether the issue persists.