I need help. I have a website that suddenly does not display the content of the pages in posts. It does not show them in any posts dutch or english. It happens also in the default theme.
Anything we did so far does not resolve my issue. The momenet i install 4.9.3 or 4.9.4 the posts content is gone in any theme i activate. I reverted to 4.9.2.1
Thanks for reaching out, and sorry for the delay in providing an answer.
I apologize for the problems that you are experiencing. It is good that reverting to WPML 4.9.2.1 mitigates the problem. It gives us some buffer to try to understand what may be happening here, and solve it.
Before moving forward, I would recommend doing a full site backup, just in case.
While one of my colleagues gets assigned to this ticket, I would like to try and advance in the assistance. To better understand the issue, we should try to isolate and reproduce it. To do so, let me kindly request some information.
1. Do you have a staging site where we can see the problem? It would be easier for us if we have a site that is not at risk if we modify something - we would not do any change without letting you know first.
2. Can you provide credentials for that staging site, or your main site if there is no alternative?
3. Could you provide a copy of the site, using the Duplicator plugin, for example, so we can try to reproduce the issue in a local, controlled environment?
I am setting your next answer as private so you can share with us any confidential information.
To be able to look into this we will surely need a copy of your site, if that's okay?
Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.
We can then install a backup plugin to take a copy.
I took a copy of the site and installed it locally, and updated WPML to the latest version, 4.9.4, to be able to see the issue.
But when I visit the en/14-daagse-rondreis-bosnie-met-kids/ page it displays correctly as far as I can see (the content is the Dutch content, because it is not translated and falling back to the Dutch original, according to your settings).
So the problem possibly only occurs on your server.
That is a production server, so I would rather not make changes there (like changing plugin versions) if it can be avoided.
Do you have a staging or dev server that can be used for testing?
I'll set another private reply in case the answer is yes and you can share details of that.
I'm glad you were able to fix the problem by adjusting the code.
I can't tell at a glance what the source of the problem might have been with that plugin, and while it would be nice to know, reviewing custom code generally isn't something we have time to do, particularly in a scenario where things are now working.
If problems resurface then do please get back in touch.
I was not asking for reviewing my code. Apparently something changed in WPML between 4.9.2.1 and 4.9.3 causing the content to disappear based on the content filter. I was asking about your thought on that as that is something you control.
My other question was: " Why did the copy of the website work in your server?" That does not make any sense. It should have given the exact same problem.
If i dup the website to my local server i get the same issue. I can replacte it even with alone that plugin with the line mentioned unchanged.