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

Playa Multi-Relationship REL error

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Is there any way to run it on 4.4.8?, I tried upgrading to php5 but it breaks my template Thanks

Yep you should be able to get it to work by applying a small hack to the mod.weblog.php file as shown here.

Be aware though that this won’t be supported if anything goes wrong as it is a hack to a core file. I had to do it on one site the once and have never had any ill effects from it but just a warning.

Hope that helps a bit.

Best wishes,

Mark

       
Chris Newton's avatar
Chris Newton
440 posts
16 years ago
Chris Newton's avatar Chris Newton

I turned off multi-relationship and it fixed the problem for me. I took a cursory look through multi-relationship and nothing jumped out at me. I’m guessing it may do something to the relationship stuff and cause a problem when used with playa.

       
Christofer's avatar
Christofer
20 posts
about 16 years ago
Christofer's avatar Christofer

I had the same problem running PHP 5.2.8 and actually solved the problem by letting the {related_entries id="xxx"} live in it’s own {exp:weblog:entries} tag. Don’t really know why that helped but I guess that someone else of you might have an idea? (Might have been too much information to process at once, since there where quite a bit of data involved in my case). If your running PHP 5 and still have problems with this it might be worth a try…

So, to summarize, instead of doing what I usually do:

{exp:weblog:entries weblog="my_weblog" ...}
  {title}
  {custom_field}
  {related_entries id="xxx"}
    {related_custom_field}
  {/related_entries}
  {custom_field}
{/exp:weblog:entries}

I ended up with this:

{exp:weblog:entries weblog="my_weblog" ...}
  {title}
  {custom_field}
{/exp:weblog:entries}

{exp:weblog:entries weblog="my_weblog" ...}
  {related_entries id="xxx"}
    {related_custom_field}
  {/related_entries}
{/exp:weblog:entries}

{exp:weblog:entries weblog="my_weblog" ...}
  {custom_field}
{/exp:weblog:entries}
       
1 2

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.