Skip to content Skip to sidebar

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

Problem:
If you're experiencing an internal server error when trying to translate pages using WPML, particularly with pages containing images without metadata, this might be due to a known issue.
Solution:
We recommend waiting for the upcoming WPML 4.8.1 update, which addresses this issue. You can check the progress and details of this known issue on our errata page: WPML 4.8 Fatal Error When Translating Pages Containing Images Without Metadata.

If this solution does not apply to your case, or if it seems outdated, please open a new support ticket. We also 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.

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 2 replies, has 0 voices.

Last updated by Andrey 5 days, 11 hours ago.

Assisted by: Andrey.

Author Posts
August 28, 2025 at 3:17 pm #17355901

reneD-21

Background of the issue:
I installed WPML with WooCommerce, ACF, Mailchimp, and String Translation Addons via the OTGS installer. After the initial setup, except for WooCommerce, I wanted to translate 4 pages of the normal WordPress site. This process fails instantly with an internal server error. My Apache gives the following log entries regarding this matter: <code>500 GET /cms/wp-admin/admin.php?page=tm%2Fmenu%2Ftranslations-queue.php&return_url=https%3A%2F%2Fweingut-hoellmueller.at%2Fcms%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage%26lang%3Dde%26referer%3Date%26wpml_version%3D4.8.0&lang=de&trid=218&language_code=en&source_language_code=de HTTP/1.0</code> <code>AH01071: Got error 'PHP message: PHP Warning: Undefined array key 404 in /var/www/vhosts/weingut-hoellmueller.at/httpdocs/data/plugins/sitepress-multilingual-cms/classes/media-translation/AddMediaDataToTranslationPackage.php on line 83; PHP message: PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /var/www/vhosts/weingut-hoellmueller.at/httpdocs/data/plugins/sitepress-multilingual-cms/classes/media-translation/AddMediaDataToTranslationPackage.php:82nStack trace:n#0 /var/www/vhosts/weingut-hoellmueller.at/httpdocs/data/plugins/sitepress-multilingual-cms/classes/media-translation/AddMediaDataToTranslationPackage.php(82): array_merge()n#1 /var/www/vhosts/weingut-hoellmueller.at/httpdocs/data/plugins/sitepress-multilingual-cms/classes/media-translation/AddMediaDataToTranslationPackage.php(26): WPML\MediaTranslation\AddMediaDataToTranslationPackage->get_bundled_media_to_translate()n#2 /var/www/vhosts/weingut-hoellmueller.at/httpdocs/cms/wp-includes/class-wp-hook.php(326): WPML\MediaTranslation\AddMediaDataToTranslationPackage->add_media_strings()n#3 /var/www/vhosts/weingut-hoellmueller.at/httpdocs/cms/wp-includes/plugin.php(205): WP_Hook->apply_filters()n#4 /var/www/vhosts/weingut-hoellmuel...', referer: hidden link;. Link to a page where the issue can be seen: hidden link.

Symptoms:
I expected to reach the normal translation editor where I can start the (automatic) translation. Instead, I got the standard 'Your site has a critical error' message, which pops up in WordPress on internal server errors (500 codes).

Questions:
Why am I receiving an internal server error when trying to translate pages?
How can I resolve the PHP warning and fatal error related to the WPML plugin?

August 28, 2025 at 8:17 pm #17356295

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I’m sorry that you ran into trouble with this.

This is a known issue and will be addressed shortly with WPML 4.8.1.

https://wpml.org/errata/wpml-4-8fatal-error-when-translating-pages-containing-images-without-metadata/

September 1, 2025 at 11:11 am #17362229

reneD-21

Thank you for the reply. In that case we have to wait. Is there any ETA for it?

September 1, 2025 at 12:33 pm #17362504

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I don't have an ETA, but it should be shortly.

We have a beta version 4.8.1-b.1 available so that you can test it:
https://wpml.org/account/downloads/
(switch to the beta channel)