This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing issues with Advanced Custom Fields (ACF) data not displaying correctly when previewing a page. The site was already running on PHP 8.3, which is not fully compatible with WordPress and WPML.
Solution: 1. We recommended downgrading PHP to version 8.1 to check if the issue persists, as PHP 8.3 might cause compatibility issues. 2. We requested a copy of the client's website to escalate the issue to our second-tier support team. 3. We provided a workaround code to adjust the ACF data display and confirmed that the issue is a known bug and will be addressed in a future update of WPML.
Please note that the solution provided might be irrelevant due to it being outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, 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.
To enable debug.log, open your wp-config.php file and look for:
define('WP_DEBUG', false);
And change it to:
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 which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the “.../wp-content/” directory.
If you can paste your debug.log to https://pastebin.com/ and provide me with that link, it would be great!
* Please do not paste the debug.log content in your reply.
I would need temporary access to your site's WP-admin to investigate this issue and understand it better. Please create an administrator user using any email address you prefer.
Please fully back up your site (files and database) and confirm it in your next reply.
* Note: I might need to enable/disable plugins and switch themes.
Your next reply is set to private for you to provide the username and password details.
I've checked further and in the debug info you shared with my colleague on the chat, I noticed that the default language of the website is German, meanwhile on the website right now the default language is Deutch.
- Can you please tell me in which language was page you shared created originally?
- Can you please test if the issue happens with a new page?
Thank you for the updates, I would require a copy of your website to test it locally and further escalate the issue to the 2nd tier support team.
You can use the Duplicator plugin(https://wordpress.org/plugins/duplicator/) to create a copy of your website and upload the backup on a file-sharing website (Google Drive, Dropbox, etc.), please send me the link to download the backup after.
* Please try to minimize the size of the backup file by excluding unnecessary media files or backup folders that might be in the "/wp-content/" folder.
I’ve set your next reply as private so you can provide the backup link.
I added the code and in the TwentyTwenty theme it still isn't showing the content.
Again, when I remove the "preview=1" it shows the translated (to be reviewed) text.
Why does it need the "preview=1"? Can't i do without?
Just throwing out a couple of questions.
The "preview=1" is default from WordPress and WPML for the preview functions.
Is it ok if I give it a try?
Manage Cookie Consent
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.