This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues where the content of a category disappears when switching languages in your store, it might be related to a theme conflict. Solution: We recommend trying the following steps to isolate the issue: 1. Switch to a default WordPress theme. 2. Keep only WPML/WCML Plugins and essential plugins active. 3. Disable all other plugins. Please ensure you have a full backup of your files and database before making these changes. If reverting to a standard theme resolves the problem, it indicates a theme issue. In such cases, contacting the theme developers is advisable.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.
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.
<b>Background of the issue: </b>
I've completely filled the store with products, but I'm having a lot of problems with the links. I don't understand how to solve them. I will be glad if you can help me. Here is the link to the video: hidden link
<b>Symptoms: </b>
When you switch the language, the content of the category disappears
<b>Questions: </b>
How can I solve the link issues in my store?
Thank you for contacting WPML Support, I will gladly help you.
When switching to the German version I notice that there is an error notification showing. Can you please share with us the WordPress debug.log content(not WPML debug information) to collect more details on this?
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 );
After, go to the shop page and switch language, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please check if you are getting any errors or warnings related to WPML in the log file.
Please share the debug.log file content by copying/pasting it on the pastebin.com page and share the Pastebin link with me (you can use text document and share it on Google Drive if you prefer).
Thank you for the access, as I am not able to access the theme files could you please:
- Navigate to the file path /home/vicfont/public_html/moissanit.eu/wp-content/themes/alukas/woocommerce/loop/result-count.php.
-go to line 30 in the file. You will likely see a printf() function call that looks something like this:
printf('% Keine Produkte gefunden', $number_of_products);
- If %K is being used as a placeholder, change it to a proper specifier that matches the data type you are outputting. Common specifiers include: %s for strings %d for integers %f for floating-point numbers
For example, if you are printing an integer value, it should look like this:
printf('%d Keine Produkte gefunden', $number_of_products);
If it's a string, you might use:
printf('%s Keine Produkte gefunden', $number_of_products);
After making the changes, save the file and check if the issue persists.
* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Vienna (GMT+02:00)
Hi,
I'm Marcel, and I'll be taking over your ticket.
Thank you for your feedback. I'll go ahead and mark this case as resolved. If you need any further assistance, please don't hesitate to open a new case and reference this one.