[Assigned] Attribute not Appearing for Translation
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I'm having trouble with attributes swatch not working correctly. While searching for solutions, I noticed that the product size attribute has disappeared from the taxonomy translation. It only appears in the primary language. I believe this is also causing another issue where sizes in the translation language aren't being recognized correctly. I tried regenerating the product attribute lookup table, but it's been frozen for weeks without the option to regenerate it. I don't know if this could be the cause of all the attribute issues. Link to a page where the problem can be seen: hidden link
Symptoms:
A wrong size appears on the translated product page when choosing a size.
Questions:
Why is the product size attribute disappearing from the taxonomy translation?
How can I regenerate the product attribute lookup table if it's frozen?
Does the attribute lookup table be the cause of all these problems?
Welcome to the WPML support forum. I will do my best to help you resolve the issue.
Please try the following steps after a site backup and make sure the issue exists or not.
1) Upgrade to the latest version of the WooCommerce Multilingual & Multicurrency plugin (5.4.3)
2) Increase the *MaxInputVars* of PHP settings to *10000*. Please check the following article for more details or contact your system admin/hosting provider for this purpose.
hidden link
3) Clear all types of caches
4) Open the Variable Product for editing in the original language (the one having an issue)
5) Make minor changes in the Product contents and update it (to refresh the translation settings)
6) Update the translation
Main issue is that the SIZE attribute has disappear from Taxonomy Translation and we have many products where the size attribute is not appearing which makes impossible to purchase the product! (please see the images attached) - I cannot sync the size attribute as it's not appearing on taxonomy translation which seems like a solution.
We cannot go product by product and resave the translation which it seems is working but there are many products affected and need a faster solution please.
What about the regeneration of the product attributes lookup table that is greyed and cannot be done?
Please can we have a fast reply as this is stoppoing our shop from doing sales.
Thank you for the updates. Does it happen after upgrading to the latest versions?
Please visit WPML>>Settings>>Taxonomies Translation and make sure the SIZE attribute is set as translated.
Also, please share the WordPress debug.log (not WPML debug information) with us so we can collect more details on this. Refer to the following 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 follow 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 with that link, it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).
Thanks for the feedback. Yes, it happened on the last update and it seems it turned off the size attribute to not translatable automatically. Sounds weird but seems it happened so maybe the last update was triggering some error? Can be? First time happening this in over 4 years. In fact, I didn't even check it as I assumed was not the problem.
Please 3 more problems that are not working and we're dealing with these from some time now:
1) Media Translation stopped to work some time ago.
Please check screenshot of the media that has been translated and the 2 links where supposed to be working:
English Site (Main):hidden link
Vietnamese Site (Translated): hidden link
I tried many things but not way to make it work.
2) Product Variation Image Gallery (attached screenshot)
When copy product to translate, all images gallery linked to the product variations are not copied to the translation product and we should do it manually!!
3) We have a plugin - theme incompatibiity:
We use Woodmart Theme and when using the Single Product Custom Page available on the theme, the product page return a blank page on all variable products that have 4 or more variations. This happen only when the WPML String Translation plugin is ON. When deactivated, the product can be seen correctly. When DISABLE the Custom Product Page, also all products can be seen correctly.
Product Example with more than 4 variations and Custom Product Page ENABLE: hidden link
Product Example with less than 4 variations and Custom Product Page ENABLE: hidden link
Thank you for the updates. Please fill in 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 privacy information sharing policies.
Thank you for the updates and login information. But I am getting different results on the staging site.
1) This URL is showing a Page not found error: hidden link
2) This product is showing a blank screen: hidden link
3) This product shows different layouts for English and Vietnamese translations. The variable product images are not changing in both languages: hidden link
Please refer to this screencast for more details and let us know your feedback: hidden link
Also, *REST enabled* is disabled on hidden link. Hope it will because of the staging site. Becuase REST API is a must for the proper working of WPML.
1) Please check again the Admin access: hidden link
Probably you checked the page when we were doing some tests.
2) hidden link
This product is an example of what happen when WPML String Translation is ENABLED.
Curious thing is that when enabled, only works on the translated language. Why is not working on the original language but on the translated when WPML String Translation is ENABLED? And it works on both language when the plugin is DISABLED.
3) The problem is with the IMAGE TRANSLATION not working.
On the top banner of the Home Page, the image has been translated but it shows the same image on both langauge (english and vietnamese). That happens every time we uise the Media Translation.
"REST enabled" is this the Legacy REST API? Is it secure to ENABLE? How can we Enable it? Via Plugin or FTP? Is it totally necessary for the correct function of WPML?