Error with "return get_post()->ID;" after deleting a translated post
-
Hi.
This is the first time I’m installing WPML from scratch, though I have been using it on several other sites.
Everything was working okay, until I had to delete an English translation of a parent page.
After that, I got this error: https://d.pr/i/3cXQ.The text: “Notice: Trying to get property of non-object in /var…./wp-includes/post-template.php” Making a new translation of the same page does not help.However, I found out the url with the post id will show the entire site, so I put up a redirect from the index, to that page. (https://d.pr/i/8CI2)
I am not sure what is causing the problem, nor how to solve it. But it seems wordpress is unable to find the page id, or it has somehow been changed?
Any suggestions?
- The topic ‘Error with "return get_post()->ID;" after deleting a translated post’ is closed to new replies.