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.

embed a variable from parents tag

May 30, 2013 1:40pm

Subscribe [2]
  • #1 / May 30, 2013 1:40pm

    Mogra

    19 posts

    Hi all,
    i just migrated from EE 2.5.X to 2.6.1 and i have some issues.
    I just figured out that the problem using an orderby parameter in php 5.3 was actually a bug

    http://ellislab.com/forums/viewthread/235099/

    Now i have to struggle with this:

    i had and embed tag inside a reverse_related_entries one

    {embed="group/view" entry_id="{entry_id}”}

    migration script didn’t change this tag, but obviously i wanted inside the value from parents tag, non from channel:entries outside.

    So i changed in:
    {embed="group/view" entry_id="{parents:entry_id}”}

    and a receive a lot of:


    A PHP Error was encountered
    Severity: Notice
    Message: Undefined offset: 0
    Filename: relationship_parser/Tree_builder.php

    Line Number: 402
    A PHP Error was encountered
    Severity: Warning
    Message: array_keys() expects parameter 1 to be array, null given

    Filename: relationship_parser/Tree_builder.php
    Line Number: 402
    A PHP Error was encountered
    Severity: Warning

    Message: Invalid argument supplied for foreach()
    Filename: relationship_parser/Tree_builder.php

    Line Number: 413

    I searched a lot about this topic but no results…

  • #2 / Jul 17, 2013 3:07pm

    buffalonews

    1 posts

    I’m having this same issue. Did you find a solution?

  • #3 / Jul 18, 2013 5:00am

    Mogra

    19 posts

    I’m having this same issue. Did you find a solution?

    inside
    libraries/relationship_parser/Tree_builder.php

    i changed line 402

    $field_ids = array_keys($leaves[$depth]);


    in

    $field_ids = isset($leaves[$depth])? array_keys($leaves[$depth]):array();

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

ExpressionEngine News!

#eecms, #events, #releases