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: Getting “undefined” on 8 of the 10 languages

Status Resolved
Add-on / Version Publisher
Severity Trivial
EE Version

Postitief

Jul 25, 2013

Hello,

I’m using publisher 1.0.3 which I received via e-mail because of a php error, see my other ticket (http://boldminded.com/support/ticket/547).

In my template, I load images through a relationship of the page’s parrent. This is working for two of ten languages, all other languages return “undefined” for the url. The languages that are working are the standard language (EN) and NL.

In my perception this was always working for all languages. But today, the day of the final checks… it doesn’t anymore. I really don’t understand it..

Here a URL of the English version that is working.
http://elastolith.itmundi.biz/en/diy/inspiration

Here a URL of a German version, that isn’t working. (The difference is that the images aren’t loaded, because “undefined” is returned).
http://elastolith.itmundi.biz/de/diy/inspiration

Hope someone knows the answer.

#1

BoldMinded (Brian)

Which version of EE? What sort of field are the images in? Matrix with images, Assets field, standard File field? What do you have the Persistent Relationships setting set to?

#2

BoldMinded (Brian)

I’m going to email the latest iteration of 1.0.3 just so I know we’re on the same page.

#3

Postitief

EE version: 2.6.2

The images are in a channel (headers), field is standard file type. Then I have a other channel (content) with an relationship to the headers channel.

From this channel the images are loaded through this code:

{exp:channel:entries channel="{segment_1}" entry_id="{structure:parent:entry_id}"}
  <div class="slider-wrapper">
   <div id="slider" class="nivoSlider detail">
    {headers}
     {headers:header_afbeelding}
    {/headers}
   </div>
  </div>
 {/exp:channel:entries}

Persistent Relationships are set to “Yes”

#4

Postitief

Also no difference with the version 1.0.3 you send me!

#5

Postitief

Strange..

It seems that if I open the page for editing in EE and select the language, change nothing and save it again.. the images are working again..

I’m now doing it for all entries, see if this fixes the problem for all pages!

#6

BoldMinded (Brian)

{headers} is a Matrix field I assume?

Re-saving might fix it based on some changes I’ve made recently to Publisher, but its still kind of suspect. Keep me posted on this though if it goes bonkers again.

#7

Postitief

Re-saving only works when Persistent Relationships is set to “Off”. With this setting in “on” position, re-saving has no use. So I’ve set this setting to “off”, re-saved all pages in all languages and for noe it works!

{headers} is not a matrix, it’s a relationship.

#8

BoldMinded (Brian)

is it a Playa relationship or native relationship field?

#9

Postitief

Those are native relationship fields.

#10

BoldMinded (Brian)

Would it be possible to get FTP access so I can debug this directly? If so edit the ticket and add the credentials to the supplied fields.

#11

Postitief

Ticket is edited with the credentials

#12

BoldMinded (Brian)

Thanks, I’ll try to take a look at it tonight.

#13

BoldMinded (Brian)

What entry_id is that page? What should I edit that controls those carousel images?

#14

Postitief

I will send you an email!

#15

BoldMinded (Brian)

I’m unable to replicate the issue. I don’t see any “undefined” text.

Do you want persistent relationships to be on? Or do you want the relationships to be unique per language?

Can you get the page into a state in which it shows “undefined” so I can see it that way?

#16

Postitief

This issue is already fixed by re-saving all entries in all languages, as commented above. So that’s why you probably won’t see any undefined text anymore.

Relationships are not unique per language, all languages have the same relationship.

The page your looking at (http://elastolith.itmundi.biz) is a test location where the customer also has it’s access to. At this point of the project I don’t want to mess up things anymore to get a page in a “undefined” state, hope you’ll understand!

#17

BoldMinded (Brian)

Can we then assume this issue is resolved? If it happens again just open a new ticket. I can’t really debug/fix something if I can’t replicate or see the issue.

#18

Postitief

Lets assume this issue is resolved, since it now works for me. I understand that debugging is difficult if it’s not possible to replicate the issue!

Thanks for your support!

Login to reply