Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Categories not being displayed in different languages

Status Resolved
Add-on / Version Publisher 1.6.3
Severity
EE Version 2.9.2

Karen Bosch

Jun 18, 2015

Hi!

I have a webshop that uses publisher. Everything works fine, but when I switch languages and go to a certain category (http://colourindisplay.portalserver.nl/webshop/category/ral-boeken for example) the page displays nothing. It works fine in Dutch, but it displays a blank page in English and German.

Any idea?

#1

BoldMinded (Brian)

Can you upgrade to 1.6.4 first to make sure you are up to date?

#2

BoldMinded (Brian)

Due to the nature of EE a white screen like this could be caused by 100 different things. There could be issues within the template code for example. Have you tried simplifying your template and removing everything but the main entries tag? (no Switchee or Stash tags etc) I’d need more information before I can really debug or help with this. You need to try to get a little more specific, such as is a category tag not translating?

#3

Karen Bosch

I upgraded to 1.6.4. I’m pretty sure it has something to do with the categories since it only happens on pages that use the categories. It doesn’t matter what’s in my template, even if I just enter “test” without anything else, it just displays a blank page. But as soon as I turn to Dutch and go to the same page, it shows everything just fine. I’m not translating the category tags.

Is there anything more I can say or do to help you find the problem?

#4

BoldMinded (Brian)

Did you follow the debugging the white screen guide? https://boldminded.com/white-screen/

#5

Karen Bosch

I did, but even while debugging it doesn’t display any kind of error

#6

BoldMinded (Brian)

If there was a php error then it would be displayed then. Sounds like the issue is elsewhere. Did you try starting with a black template then progressively adding in code from the template that doesn t work?

#7

Karen Bosch

Yea I did. As I said, even if I delete all the code and just enter “test” it doesn’t display anything. It’s really weird.

#8

BoldMinded (Brian)

Sounds like a routing issue. Do you have the profiler and template debugger turned on so you can be sure the template you’re expecting to load is loading?

#9

BoldMinded (Brian)

Comment has been marked private.

#10

Karen Bosch

I updated the module using your latest build, but unfortunately this doesn’t change anything.

#11

BoldMinded (Brian)

Did you rule out a routing issue? What does the template debugger tell you is happening?

#12

Karen Bosch

Comment has been marked private.

#13

BoldMinded (Brian)

I can’t see the template debugger output because I’m not logged in. Can you take a screenshot of the whole thing? Or copy paste it into a text file and shared somewhere like Dropbox?

#14

Karen Bosch

Oh right, haha.. I forgot I didn’t give you the credentials.

https://www.dropbox.com/s/tay8mbb5t3s1k8m/Template debugger.txt?dl=0

#15

BoldMinded (Brian)

It looks like its loading your webshop/index template. Is that the template you’re expecting to load? What does that template code look like? Did you start simplifying by removing pieces of it until it starts to render something?

#16

Karen Bosch

Okay so weirdly enough webshop/index didn’t contain any code. I don’t know how this is possible, but the same page in other languages link to different templates. I added an embed to the right template in webshop/index to check if that worked. It did show a page after that, but it didn’t show the products. In other words:

{exp:channel:entries channel="producten" category="{segment_3_category_id}" sort="asc" dynamic="no" limit="8"}

Is showing products when the language is Dutch, but isn’t showing products when the language is English or German. I also tried translating products, but that didn’t make a difference.

#17

BoldMinded (Brian)

Did you move {segment_3_category_id} outside of the entries tag to see what the value actually is? Did you try hard coding the category parameter? E.g. category=”3”?

Are you using my URL Helper extension or Low Seg to Cat?

#18

Karen Bosch

Yes, the value of {segment_3_category_id} is 1, which is correct (depends on the category, obviously). Entering the value hard coded doesn’t make a difference.

I’m not using your URL helpen extension.

#19

BoldMinded (Brian)

I can’t think of any changes recently that would cause this to happen. When you edit the entry in the control panel the entry is assigned to the category in all languages?

#20

Karen Bosch

Oh jeez.. I’m so sorry to have wasted your time. I automatically assumed that the categories would be taken over by the other languages as happens with other fields. I never even thought of checking this, but it wás the problem. Thank you very much for your efford and again, I’m sorry!

#21

BoldMinded (Brian)

No worries. I’ll look into documenting this better.

It should still work though because EE finds the native entries by the category, then Publisher uses those IDs to add to or remove from the entry list and swap out the values of the entry fields to other languages. I’ll try to look into this more next week. For now, lets leave the ticket open to remind myself. At least now you have a work around.

#22

Karen Bosch

Comment has been marked private.

#23

BoldMinded (Brian)

Karent, I’m actually unable to replicate this. I created a new entry in my default language and did not create translations for it in the other 2 languages. It is assigned to 2 of 4 categories available to the entry and the entry displays the default language content when viewed in one of the other 2 languages in the tag when either of those IDs are used:

{exp:channel:entries channel="pages" dynamic="no" category="1"}
    {title}
{/exp:channel:entries}
#24

BoldMinded (Brian)

Karen, I’m going to close this for now b/c its been a month with no updates and I wasn’t able to replicate. If you can provide more direct instructions on how to replicate it feel free to open a new ticket.

Login to reply