We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Relationships Error

How Do I?

RicochetPartners's avatar
RicochetPartners
16 posts
10 years ago
RicochetPartners's avatar RicochetPartners

This question has been addressed here before, but not in a way that will make my problem go away, so here goes: I have a template that looks for the channel “Companies,” that works fine, but when I start looking for data from a relationship field (“locations”) it gives this error.

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 549

Filename: relationship_parser/Parser.php

Line Number: 52

And then the attendant “Headers already sent…” error…

I’ve boiled it down, and it seems like the “locations” relationship doesn’t have to be looking for anything, even, just the loop being there (“{locations}{/locations}”) will trigger the error. Due to the debugging settings, it only sends this error out when the user is logged in (and an admin), but either way, but for these php errors, the file has the correct contents.

Any ideas?

PHP Version 5.4.35 EE 2.9.2 URL: Irrelevant since it’s fine unless you’re logged in

       
RicochetPartners's avatar
RicochetPartners
16 posts
10 years ago
RicochetPartners's avatar RicochetPartners

I may have spoke too soon: through a bunch of trial and error to find the “right one,” i.e. the one that was messing it up, this solution (https://ellislab.com/forums/viewthread/235305/) worked.

Thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.