ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Unusual behavior with relationships

June 26, 2013 2:30am

Subscribe [3]
  • #1 / Jun 26, 2013 2:30am

    Stake

    22 posts

    I don’t know if this is a known issue or a bug but I’m having problems with some relationship entries. Everything was going fine until I reached the last set.

    For example, I add 20 items to the relationship as normal. When I go and publish the entry, half (or more) of the items drop off for no reason. The other unusual problem is that if I add earlier entries as a relationship, I don’t have a problem. It only appears to be the last set of entries that is causing this. I’ve tried to delete all the entries that I was having problems in and recreating them but there’s no change in behavior. Is there a limit of relationships that can be made in EE overall? Are there any settings to check for?

  • #2 / Jun 26, 2013 1:23pm

    Bhashkar Yadav

    727 posts

    Hi Stake,

    Is there a limit of relationships that can be made in EE overall?

    There isn’t such any limit.

    Can you share your template code also so that forum members could get better understanding and can share some solution.

  • #3 / Jun 27, 2013 1:03am

    Stake

    22 posts

    Hi Bhashkar,

    I forgot to mention that the code seems to be working perfectly fine. The problem actually occurs after I save my changes in the entry itself and not at the code level. To clarify, if I add 20 relationships to an entry, save it and then edit the entry, most of relationships are gone. The problem is also reflected in the output from the page. As mentioned before, if I add entries that I made earlier, I don’t seem to have a problem.

    I’m using v2.6.1 - Build Date: 20130506

    This is the code below though my feeling is there’s something strange going on EE’s backend. Whether I didn’t do something right is a different matter.

    {exp:channel:entries channel="menu_category" sort="asc" orderby="category_order"}
    <span class="lrgtitle">{title}</span>{if group_desc} - {group_desc}{/if}
    
    
    {group orderby="menu_item_group_display_order"}
    <span class="medsubtitle">{group:title}</span>{if group:menu_group_description} - {group:menu_group_description}{/if}
    
    
    {items}
    
    <b>{items:title}</b>
    {if items:description}</br>{items:description}
    {if:else}{/if}
    {/items}
    <hr >
    {/group}
    
    {/exp:channel:entries}
  • #4 / Jul 05, 2013 9:04am

    code_monkey_z

    3 posts

    I am having this exact same issue. My template code has no problem outputting as many relations as I can add, but saving an entry with more than nine relationships simply deletes related items (seemingly at random) until it is down to 9 again.

    Although there is no limit coded anywhere, it seems clear to me the limit is 9.

    UPDATE:
    Looking further into this, I realized the problem wasn’t a limit, but certain entries conflicting with other entries. Two entries of mine specifically caused anything after them in the relationship field to break when they were both included. I do not yet know why these fields cause this error.

  • #5 / Jul 05, 2013 10:25am

    Stake

    22 posts

    Do you have any issues associating the two problem entries with other entries or is the problem specific to an entry?

  • #6 / Jul 05, 2013 10:30am

    code_monkey_z

    3 posts

    The two problem entries always cause a conflict, even if I completely delete them and re-publish them.

    EDIT:
    I managed to find a work-around to this issue. I re-named my two entries from “Entry 1” and “Entry 2” to “a Entry 1” and “b Entry 2.” Then they work perfectly normally, and I just added a field for an “Alternate Title” that gets used in place of the title when available.

    Although other alliterated entries don’t seem to have this problem, those two do. Obviously, this is not a clean work-around, but I am fairly certain this is being caused by a bug.

  • #7 / Jul 05, 2013 10:50am

    Stake

    22 posts

    I’ve done the same and the problem still occurs. I’m trying to figure out what the common factors are and with you having the same issue, I’m hoping to get a solution.

    Other than these two entries, if you create another one, do you run into the same issue? Or does the problem go away?

  • #8 / Jul 05, 2013 10:56am

    code_monkey_z

    3 posts

    If I make sure that none of the entries conflict, I can add any of the other entries to a list as long as I’d like. I can create new entries usually without issue.

    It seems like there’s some kind of conflict on title, but I really don’t know why.

    Very oddly, the two entries I know to be malignant start:
    “Will I…”
    and
    “Who is…”

    I have plenty of other entries that also start with “Will” and “Who” but none of them seem to be an issue.

    I can change the rest of the titles completely, but they still conflict with each other. Only changing the first letter seems to fix it.

    My best guess is that there is somewhere a weak typed comparison where it should be strong typed.

  • #9 / Jul 05, 2013 11:05am

    Stake

    22 posts

    I’ll see what I can try on my end. I’m almost tempted to pay for support at this point.

  • #10 / Jul 15, 2013 6:49pm

    Stake

    22 posts

    FYI, I have contacted Ellislabs support and they have identified this problem as a bug. They’re looking into this now with engineering.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases