Skip Navigation

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 next available supporter will start replying to tickets in about 5.39 hours from now. Thank you for your understanding.

We have a longer than usual waiting time. Please make sure to check out the Known Issues page and Minimum Requirements before reporting any issue.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Europe/Paris (GMT+01:00)

This topic contains 31 replies, has 3 voices.

Last updated by konstantinosT-9 5 years, 4 months ago.

Assisted by: Yvette.

Author Posts
January 28, 2019 at 5:50 pm #3137036

philippeL-5

I am trying to: get all subcategories to show up on other than the main language.
Problem is as follows: I have 13 subcategories under "Apparatuur" in NL. When I switch to FR or EN, not all those subcats are being shown on the product_archive page, even though they are shown in the category widget on the left hand side... All cats are translated and the products too. How can I solve this?

Link to a page where the issue can be seen:
NL (seems to be good): hidden link
FR (not showing everything): hidden link

Login to see site: voortlabo123

I expected to see: All subcats showing in all languages.

Screenshot 2019-01-28 at 18.47.08.jpg
January 29, 2019 at 3:52 pm #3140651

philippeL-5

Anyobdy to givev me some assistance?
I have already tried all the obvious things like cache cleaning, resynchronisation of cats, ... to no avail.

January 29, 2019 at 4:29 pm #3140792

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

I will be helping you with this.

1. System access
I am being prompted to enter a password to view the page link you included in your message. Please enter the password I need to enter in the private area that I am opening in your next reply.

2. Clarification
2.1 Are these standard product category archives? Or are these pages that are showing the products in a category via shortcode?

2.2 For the categories that are not showing up, are they using the same slug as the original language?

3. System access
If it is possible, I´d like to see how WPML is configured on your site and to confirm the behviour you are describing.

Please provide access to your system (wp-admin and ftp) so that I can further investigate this particular problem. The fields to provide this data are included in a private section that I will open for your next response. You can find it above the comments area. The information in this private section is only visible between WPML Support and you.

January 30, 2019 at 9:53 am #3142966

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Thank you for the clarifications.

Would you mind doing the following basic diagnostic steps:

1. Temporarily deactivate your non-WPML plugins (except Woocommerce) and please see if the behaviour is the same when you try to display your archive page.
If the categories are now showing, then please activate your plugins one-by-one, testing the archive display each time, until you find the plugin that causes the archive page to not show a full listing of subcategories.

2. If it is the same result, please do the same test after temporarily switching your active theme to Storefront.

I would do this myself, but I do not want to disturb any others working on the site.
I wait for you reply on these tests. Of course, afterwards, you can reactivate your normal theme and plugins.

January 30, 2019 at 10:09 am #3143042

philippeL-5

Hi,
I deactivated all plugins, still same result, even after clearing cache. I also switched to storefront without any plugins besides wpml and woocommerce, same result, not all categories are shown.

Nobody is working on the site so you can just play around if you want.

January 30, 2019 at 10:25 am #3143234

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Ok - I will. Thanks.

January 30, 2019 at 1:54 pm #3144167

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

This seems to be the standard behaviour of the archive listing. If there are no products assigned to the subcategory, then it will not show up in the parent listing.

I created a test product and assigned it to category "STANDARD" and now the archive page shows the subcategory.

It was not an obvious thins since your modifed archive page does not include the number of products contained in the category in parentheses like the standard page does.

So, in conclusion, this seems to be a data management issue unnless the behavioud in the standard archive page is different (?).

Maybe a workaround is to create a dummy product that is assigned to all categories but is not purchasable (private, no price....etc.) Then your category tree will always show up.

AssignedTEstProd.png
AllSubCatsShow.png
January 30, 2019 at 4:02 pm #3144868

philippeL-5

Then something even weirder is going on... Products are assigned to that category and sub categories, bu the categroy is not showing up. I have noticed indeed that if you edit a product and save, the cat appears, only to dissappear again after a while... (hidden link)

January 30, 2019 at 4:06 pm #3144873

philippeL-5

hidden link

this is another one that isn't shown on the main category archive, even though there are products assigned to lower level categories.

January 31, 2019 at 8:48 am #3146677

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

I am not seeing this.

In the categories dasboard I can see that:
GRAM has 5 products
REVCO has 0 products

When I visit the link
hidden link

It shows the subcategory that has 5 products (this is expxected)
It does not show the subecategory with 0 products (it has nothing assigned to it - expected)

When I visit one level up
hidden link
The page is showing the parent category : Equipement de refroidissement et de congélation
(as expected).

Please include sceenshots to make sure that we are seeing the same thing.
I cannot reproduce the behaviour you are describing in your last messages.

LastLevelCategory.png
UpperParentCat.png
January 31, 2019 at 3:57 pm #3148653

philippeL-5

Hi, there were still 2 categories not showing up even though sub categories had lots of products under them (in FR). Going into 1 product and saving makes the categories re-appear, but after a while they always dissapeared again (maybe after adding new products)? The last day the cats remain showing. Could there be some problem with 2 people adding products to the website at the same time logged in as the same user?

January 31, 2019 at 4:09 pm #3148721

philippeL-5

Hi, further analysis:

1. I went in the website and opened one french product up per lowest level category and saved. This made all categories at top level show up again. Great! 🙂
2. I then went in the English version of those products that were missing and saved them, all categories in English showing up again! Great! 🙂
3. I go back to French to check: all categories of which I have edited the products in English have now dissapeared again in French... So there must be some interlinked problem in with the languages for those categories?

January 31, 2019 at 4:16 pm #3148749

philippeL-5

Since the new version of WPML the products want to betranslated with the new translator (in the cloud). I switched that off in the settings and said I wanted to use the standard woocommerce way (like it used to be in older version of WPML).

I do however get a warning message from WPML at the top of each product screen in another language than the default one. Could there be a problem there?

January 31, 2019 at 4:42 pm #3148879

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

The behaviour you describe suggests a system level problem. e.g. PHP environment or server caching.

I just noticed that you still only have 40M of PHP Memory allocated to WordPress although the minimum required for normal WPML operation is 128M and if you can allocate more...then even better.
https://wpml.org/home/minimum-requirements/

Please add the following line to your wp-config.php file

define( 'WP_MEMORY_LIMIT', '256M' ); 

Then, please try to find a way to provoke the behaviour you are describing. From what you write, it sounds like the problem is happens "sometimes" and indeterminately.

If we can replicate the error - then it will be possible to troubleshoot and investigate it.

Also, please be more clear when you write. I am not sure what you mean by
:"I do however get a warning message from WPML at the top of each product screen in another language than the default one."
The best way to report an error is to include a screenshot and describe the steps that I should do to see the same thing on your site.

I have visited a FR french product and cannot see any warning messages (see image)

FRSingleProductPage.png
January 31, 2019 at 5:16 pm #3149054

philippeL-5

Hi,

I upped the memory to 256mb, site a lot faster. Very good.

I went and tried the same method again. Still same problem.

I explain in steps how you can reproduce it:

1. Go to english page: hidden link You will see that the category "Cooling and freezing equipment" is not showing up, even though there are plenty of products under subcats. (in FR it is showing at the moment: hidden link)

2. Edit this product (this is a product that is under freezing and cooling, category not showing up in EN, it is showing up in FR, as seen in step 1): hidden link . Just edit this product and save.

3. After you have updated this product, the category will show up here in English : hidden link

4. But the category has then disappeared in French: hidden link

And so you can reproduce this over and over again. Editing a product in one language (non standard) makes the category disappear in other non standard language

Thanks!