Home›Support›English Support›[Resolved] Blog posts not visible in WordPress, but site itself shows them.
[Resolved] Blog posts not visible in WordPress, but site itself shows them.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client's website, with Dutch as the default language and English added via WPML, was displaying Dutch blog posts correctly, but the English translation page showed 'No result found'. Additionally, in the WordPress backend, all Dutch posts disappeared, showing only the default 'hello world' post.
Solution: First, we recommended the client to back up their site and database. Then, we instructed them to navigate to WPML -> Support -> Troubleshooting and perform the following actions:
Synchronize posts taxonomies
Clear the cache in WPML
Remove ghost entries from the translation tables
Fix element_type collation
Set language information
Synchronize local job IDs
Fix Terms count
Fix post assignment for translations
After these steps, we asked if the posts were visible in the backend with WPML active.
Upon further investigation, we found that some posts had titles in English but content in Dutch. We asked the client to confirm if they had translated these posts into English. We also clarified that the posts in question were under the 'Project' post type and provided a screencast for detailed guidance.
Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If you're experiencing similar issues and the provided steps do not resolve them, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.
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.
website hidden link
The website default language is Dutch. And English is added using WPML.
Problem: hidden link shows the Dutch blog posts. When i check hidden link it gives a 'No result found'.
But when i check WordPress: now all the sudden all the Dutch posts are gone? I only see the default 'hello world' (Hallo wereld in Dutch). So the website itself shows the posts and 4 categories, but WordPress itself does not.
What i tried, with no luck:
- Deactivated WPML, no difference
- Check websitte in a Incognito browser window. Still same problem.
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.
Please be sure to make a full backup of your site and database.
Then, go to WPML -> Support -> Troubleshooting.
Look for 'Clean up' and click the following:
- Synchronize posts taxonomies
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Synchronize local job IDs
- Fix Terms count
- Fix post assignment for translations
After these steps, do you see the posts on the backend of the site with WPML active?
Some more details. I remeber going to the dutch post category 'Geen onderdeel van een categorie'. I went to edit the category, so over there i could add its English translation.
But i saw that WPML incorrecty showed that this was an English category that could be translated into Dutch. This was wrong.
What i then did: I corrected this by saving that category 'Geen onderdeel van een categorie' was a Dutch language category, not an English one. After this change, i could translate it into English.
I believe that after this, all the posts were gone in WordPress...
Thank you for the updates. Please take a full site backup{mandatory}, then deactivate WPML plugins for a moment and reactivate them again one by one. Then make sure you are getting the expected results or not.
If the issue exists, please share with us the WordPress debug.log(not WPML debug information) to collect more details on this. Refer to these pages for instructions
To enable the WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.
If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).
Ok tried the above:
Deactivating all WPML plugins: still no blogposts visible in WordPress backend
Activating all WPML plugins again: still no blogposts visible in WordPress backend
Thank you for the updates and the Debug log details. The log is showing the following Deprecated notices related to WPML. However, they are not likely the cause of this bug.
[19-Feb-2024 09:59:50 UTC] PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$messageManager is deprecated in /*****/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 38
[19-Feb-2024 09:59:50 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /****/sitepress-multilingual-cms/classes/API/REST/class-wpml-ate-proxy.php on line 128
Therefore please fill the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.
Thank you for the login information. I can see a few Post titles in English completely and partially. But the post contents are in Dutch. So just to make sure have you translated these posts to English?
Please check the attached images and the following post links for more details, and let us know your feedback.
I can understand the confusion. These are Dutch blog posts that have a titel that look English, but in Dutch these titles are the same as in English. But the blog posts themselves are Dutch.
So the problem is: when you go to hidden link you can see all the blog posts (like the 3 you mentioned).
But when you go to the backend in WordPress, these Dutch blogposts are nowhere.
if i believe correctly this happened after i tried to translate a blog category into English.
O.M.G, that's a first. Never thought the client would create blog posts as projects haha. No wonder i could not find them. So in the end it had nothing to do with WPML.
Sorry for all the trouble.
To make no further mistakes, right now when you go to hidden link it says 'No results' found. The client doesn't want this message. So the only solution is to OR don't show this page at all, OR translate the projects into English?
Thanks a lot.
New threads created by Bigul and linked to this one are listed below:
Thank you for the feedback. No problems. We are always happy to help. Please note that I have opened a new ticket for the second issue. As per our support policies, we can only handle one issue per ticket. It will help us to serve you better and we can avoid discussing multiple problems in one ticket. I will get back to you soon on the latest ticket. Please wait. Thank you for your understanding.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.