Skip Navigation

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 11 replies, has 3 voices.

Last updated by lisetteE 2 years, 7 months ago.

Assigned support staff: Otto.

Author Posts
March 15, 2018 at 10:36 am #1546748

tarquinW

When saving an update to the WordPress menu i recieve a fatal error.

Is there a similar example that we can see?

Fatal error: Uncaught TypeError: Argument 1 passed to WPML_Media_Post_Images_Translation::translate_images_in_post_content() must be an instance of WP_Post, null given, called in /var/www/vhosts/collagenliftisrael.co.il/httpdocs/wp-content/plugins/wpml-media-translation/classes/images-translation/class-wpml-media-post-images-translation.php on line 60 and defined in /var/www/vhosts/collagenliftisrael.co.il/httpdocs/wp-content/plugins/wpml-media-translation/classes/images-translation/class-wpml-media-post-images-translation.php:72 Stack trace: #0 /var/www/vhosts/collagenliftisrael.co.il/httpdocs/wp-content/plugins/wpml-media-translation/classes/images-translation/class-wpml-media-post-images-translation.php(60): WPML_Media_Post_Images_Translation->translate_images_in_post_content(NULL, 'en', 'he') #1 /var/www/vhosts/collagenliftisrael.co.il/httpdocs/wp-includes/class-wp-hook.php(288): WPML_Media_Post_Images_Translation->translate_images(24296, Object(WP_Post)) #2 /var/www/vhosts/collagenliftisrael.co.il/httpdocs/wp-include in /var/www/vhosts/collagenliftisrael.co.il/httpdocs/wp-content/plugins/wpml-media-translation/classes/images-translation/class-wpml-media-post-images-translation.php on line 72

What is the link to your site?

hidden link

March 15, 2018 at 11:58 am #1546865

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks for opening a new ticket for this issue 🙂

To check for compatibility issues, Is it possible for you to do the following test:
-Back up your site first
-Deactivate all the plugins that are not related to WPML
-Switch for a moment to a WordPress default theme like Twenty Fourteen.
-If the issue is gone, activate one by one to see with which one there is an interaction issue

Let me know your results, please.

Kind Regards,

Otto

March 15, 2018 at 1:27 pm #1546970

tarquinW

Thanks Otto, I have tried as you suggested and the error continues.

March 15, 2018 at 2:23 pm #1547059

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I would like to request again temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

** IMPORTANT **

- Please make a backup of site files and database before providing us access.

- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:

hidden link

Kind Regards,

Otto

March 15, 2018 at 4:25 pm #1547229

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Please apologize for the inconveniences, I tried with WP All in One Migration and it is not working for me.

Also, the Duplicator is failing on your site. Can you provide me with a copy of the DB and the wp-content folder, excluding "uploads"? With that, I will be able to reproduce your site locally for further testing.

You probably need to use DropBox, Google Drive, or similar services, as the files will be quite big. I am enabling private message for your next reply so that you can send the download link.

Once the problem is resolved I will delete the local site.

Thanks for your cooperation.

Kind Regards,

Otto

March 16, 2018 at 7:48 am #1547753

tarquinW

Hi Otto, I have backups in the All in one Migration folder. Can you not use the latest version?

March 16, 2018 at 2:29 pm #1548135

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I managed to reproduce the issue but not to solve it 🙁

I escalated the ticket to our second tier support. They will investigate further and I will get back to you as soon as they have an answer.

Kind Regards,

Otto

March 19, 2018 at 6:32 am #1549161

tarquinW

Thanks Otto, is there any news on progress?

March 19, 2018 at 1:27 pm #1549602

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Not yet.

Please apologize for the delay, we are a bit loaded these days but we are going back to normal soon.

I will get back to you as soon as I have news regarding this issue.

Kind Regards,

Otto

March 21, 2018 at 10:47 am #1552034

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello again 🙂

It looks like your menus get broken somehow, probably some corrupted data in the DB.

You may see that there are 4 menus. 2 in Hebrew and 2 in English, but they are all listed under the Hebrew language.

As there are only two menus the quickest solution is as follow:
1. Deactivate WPML
2. Delete all 4 menus
3. Activate WPML
4. Run "Remove ghost entries from the translation tables" and "Clear WPML cache" from troubleshooting options (so the count of the menu will be updated). WPML > Support > Troubleshooting
5. Create a new menu and translate: https://wpml.org/documentation/getting-started-guide/translating-menus/

Let me know if this helps, please.

Kind regards,

Otto

March 22, 2018 at 9:29 am #1553441

tarquinW

Thanks Otto, this solved the problem!

October 15, 2019 at 3:29 pm #4758771

lisetteE

Hi,
I have this same issue on my website and doing what you suggested seemed to fix my issue.
My problem is that i cannot do this on my live website and I was wondering if you could provide the steps in fixing this without having to delete the menus? I have 6 menus with lots of menu items.

Apologies, jus tremoving ghost entries seems to have fixed my issue!

Thanks