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

Last updated by Bobby 1 year ago.

Assigned support staff: Bobby.

Author Posts
September 11, 2018 at 12:24 pm

nathalieM-4

Hi, we have two sites, gogoquinoa.com and safbaby.com that are having issues with permalink structure in second language if changes are made to second language pages... Only fix so far is resaving permalinks twice and site is ok again.

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/whelkdev5/public_html/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php on line 98 and defined in /home/whelkdev5/public_html/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php:121 Stack trace: #0 /home/whelkdev5/public_html/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php(98): WPML_Media_Post_Images_Translation->translate_images_in_post_content(NULL, 'en', 'nz') #1 /home/whelkdev5/public_html/wp-includes/class-wp-hook.php(288): WPML_Media_Post_Images_Translation->translate_images(30304) #2 /home/whelkdev5/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/whelkdev5/public_html/wp-includes/plugin.php(453): WP_Hook in /home/whelkdev5/public_html/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php on line 121

September 12, 2018 at 10:51 am #2727215

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

please try the following and let me know your results

- Click on the WPML > Support > Troubleshooting. Look at the "Clean up";
- Click on the "Remove ghost entries from the translation tables" button

September 20, 2018 at 12:22 pm #2752073

nathalieM-4

Hi, it's still doing it. It seems to be as soon as we do a save on a page in the second language, we loose the permalink structure again... Affecting shop section of second language, giving 404, page not found in second language

September 21, 2018 at 10:02 am #2754813

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

as a test please deactivate WPML String Translation and let me know if the issue remains or if its resolved , there is a chance a Database filed might be missing or this is a compatibility case with a 3rd party plugin/theme.

September 29, 2018 at 11:08 pm #2775815

nathalieM-4

I'll try that and monitor for a couple days...

October 1, 2018 at 5:49 pm #2779052

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

if this issue is not immediately resolved when WPML String Translation is deactivated then it will require further debugging , please let me know your results as we will need to test this locally to resolve the issue.

The topic ‘[Closed] Fatal error permalink structure’ is closed to new replies.