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.

PHP Errors, Relationships, Undefined Offset

January 24, 2014 5:14pm

Subscribe [5]
  • #1 / Jan 24, 2014 5:14pm

    bromtec

    31 posts

    Hello,

    Working locally in MAMP.  Just upgraded from 2.4 to 2.7.3. 

    Was previously using Multi Relationships and ran into relationship errors after the upgrade, so restored everything and completely removed / uninstalled multi relationships and the field associated with it, and then upgraded again.

    I’ve created a new relationship field, and it’s outputting what I want, but is also giving errors when logged in…


    A PHP Error was encountered

    Severity: Notice
    Message:  Undefined offset: 0
    Filename: relationship_parser/Tree_builder.php
    Line Number: 536

    I get anywhere from 1-5 of the above, and then the following always at the end. 

    A PHP Error was encountered

    Severity: Warning
    Message:  Cannot modify header information - headers already sent by (output started at /Users/paul/all/rsw_dev/public_html/system/codeigniter/system/core/Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 412

    It happens on most, but not all entries.  The errors come with something as simple as including,

    {related_projects}
    
    {/related_projects}


    (literally just the start and end tag, nothing in between). 

    Removing the above from the template will eliminate the errors (and the desired output, unfortunately). 


    Any ideas / help would be greatly appreciated. 

  • #2 / Jan 31, 2014 5:14am

    nuvole

    14 posts

    I have the same problem. My errors are:

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined offset: 2
    Filename: relationship_parser/Tree_builder.php
    Line Number: 532

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined offset: 2
    Filename: relationship_parser/Tree_builder.php
    Line Number: 532

    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at public_html/system/codeigniter/system/core/Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 412


    when I’m lodged in.

    This happened when I was working on a Grid field, just after creating a new field.

  • #3 / Feb 03, 2014 5:47pm

    bromtec

    31 posts

    no solution here yet, but was curious… are you running 2.7.3 as well?

  • #4 / Feb 04, 2014 3:06am

    nuvole

    14 posts

    Yes, v2.7.3.

  • #5 / Mar 03, 2014 6:20pm

    Scott Harrington's avatar

    Scott Harrington

    85 posts

    Same problem too, anyone found a solution yet?

  • #6 / Mar 05, 2014 11:24am

    bobh

    145 posts

    Exactly the same issue here, output is good but lots of errors. who’s got a patch?

  • #7 / Dec 11, 2014 8:27am

    jefinho's avatar

    jefinho

    26 posts

    Same problem here! Anyone already found a solution?

  • #8 / Dec 11, 2014 11:18am

    bromtec

    31 posts

    It seems to go away after I logout, so I’ve just been living with it the way it is…

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

ExpressionEngine News!

#eecms, #events, #releases