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.

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

Problem: The following warning is being displayed at the WordPress dashboard: Warning: Illegal string offset 'sizes' in /wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Solution: The warnings seems to be related to WPML Media. Please try the following:

- Download the lastest version of WPML Media from here: https://wpml.org/account/downloads/

- Install this plugin (it will speed up the update process): https://wordpress.org/plugins/easy-theme-and-plugin-upgrades/

- Upload the WPML media .zip file to Plugins > Add New. If there is a corrupt file, it will fix it.

- Go to WPML > Settings > Media Translation , select some options and click on Start to run the scan

- After that, select some options on "How to handle media for new content" and click on Apply

This topic contains 2 replies, has 2 voices.

Last updated by ralfM-3 11 months, 3 weeks ago.

Assigned support staff: Diego Pereira.

Author Posts
October 25, 2018 at 8:14 am

ralfM-3

I am trying to: Speichern einer Seite

Link to a page where the issue can be seen: -

I expected to see: das Bearbeitungsfenster

Instead, I got: eine Menge Fehler

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Illegal string offset 'sizes' in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: array_key_exists() expects parameter 2 to be array, string given in /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php on line 115

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:115) in /www/htdocs/w0174400/gemac-chemnitz.com/wp-admin/post.php on line 198

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0174400/gemac-chemnitz.com/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php:115) in /www/htdocs/w0174400/gemac-chemnitz.com/wp-includes/pluggable.php on line 1219

October 26, 2018 at 3:13 pm #2853475

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @ralfm-3, welcome to the WPML support Forum!

Since Cristina (our German supporter) currently has a few days off, the german forum is closed for now. It's ok if we communicate in English? If not, the German forum will reopen on Monday.

The warnings seems to be related to WPML Media. Please try the following:
- Download the lastest version of WPML Media from here: https://wpml.org/account/downloads/
- Install this plugin (it will speed up the update process): https://wordpress.org/plugins/easy-theme-and-plugin-upgrades/
- Upload the WPML media .zip file to Plugins > Add New. If there is a corrupt file, it will fix it.
- Go to WPML > Settings > Media Translation , select some options and click on Start to run the scan
- After that, select some options on "How to handle media for new content" and click on Apply

Please let me know if it worked for you.

Please note that PHP notices and warnings generally do not mean errors (see hidden link). If your site is working properly, you can hide them by setting wp_debug_display to false in your wp_config. You can keep the wp_debug_log as true, so the errors will be displayed only in the debug log (it's located in the wp-content folder): https://wpml.org/documentation/support/debugging-wpml/

All the best,
Diego

October 29, 2018 at 7:45 am #2857042

ralfM-3

Thank you Diego,
I'm fine with English.
I don't want to install more plugins, so I decided to replace the folder "wpml-media-translation" via ftp.
After going the other steps the errors are gone.

Thanks a lot.