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

Last updated by faridM-2 5 months, 2 weeks ago.

Assigned support staff: Riffaz.

Author Posts
April 28, 2019 at 4:19 pm #3698593

faridM-2

Some WPML plugins were updated last week and I just remarked the when put some elements in the Trash (for example when I put some events fom The Calendar Events in the Trash), I got the following Fatal error:

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 /home/httpd/vhosts/aloetis.com/httpdocs/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php on line 107 and defined in /home/httpd/vhosts/aloetis.com/httpdocs/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php:130 Stack trace: #0 /home/httpd/vhosts/aloetis.com/httpdocs/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php(107): WPML_Media_Post_Images_Translation->translate_images_in_post_content(NULL, Object(WPML_Post_Element)) #1 /home/httpd/vhosts/aloetis.com/httpdocs/wp-includes/class-wp-hook.php(288): WPML_Media_Post_Images_Translation->translate_images(7279) #2 /home/httpd/vhosts/aloetis.com/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL in /home/httpd/vhosts/aloetis.com/httpdocs/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php on line 130

What is wrong?

F.

April 28, 2019 at 6:01 pm #3698751

faridM-2

More worrying is that WPML messed the website up completely. I disabled the woocommerce "Shop" page by "Deselecting" the shop homepage in Woocommerce settings. While in the original language "french"
"/boutique" is working, the english translation ("/en/shop") is selecting the woocommerce page with categories showing up!!! Also when in english, the language switcher (Français (e.g french)) of the page is pointing to the english page instead of the french one.
Please check hidden link and the translated page hidden link
Which should looks similar while it is messed up.

Thanks.

April 29, 2019 at 6:27 am #3700229

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for contacting WPML support.

Regarding the fatal error:

One another user also reported this.
now we have to dig this bit deeper.

Some WPML plugins were updated last week and I just remarked the when put some elements in the Trash (for example when I put some events fom The Calendar Events in the Trash)
- I do not understand this.
- could you please explain this with screenshots for better understanding?

Regarding your other issue please open a new ticket to avoid the confusion and to reduce the waiting time.

Regards,
Riffaz.

May 6, 2019 at 8:41 am #3745933

faridM-2

Hi,

Do you find the issue?

May 6, 2019 at 1:01 pm #3748689

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Try the following steps:
1. Go to WPML > Support > Troubleshooting
2. Click on the button "Remove ghost entries from the translation tables".

Let me know how it goes.
If that does not help we need to check this in our test server.

Regards,
Riffaz.

May 6, 2019 at 1:04 pm #3748705

faridM-2

My issue is resolved now. Thank you!