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

Multi Relation

Development and Programming

Mark Huot's avatar
Mark Huot
587 posts
15 years ago
Mark Huot's avatar Mark Huot

@Image202 – I think version 1.0.6 should fix the notices you’re seeing.

       
Adam Stacoviak's avatar
Adam Stacoviak
34 posts
15 years ago
Adam Stacoviak's avatar Adam Stacoviak

Thanks for the quick reply Mark!

That certainly took care of the errors, but now I’m seeing this. I followed the same steps as before, implemented the hack, and enabled the extension.

{REL[motion_relations]5gzIjWWfREL}
       
Mike Verbruggen's avatar
Mike Verbruggen
37 posts
15 years ago
Mike Verbruggen's avatar Mike Verbruggen

Mark this extension is wonderful.

And the update fixed a little problem i had yesterday.

The problem was an error message “Notice: Undefined variable: field_type in /usr/home/web/user/system/cp/cp.publish_ad.php on line 7311”

again,

Thanks

       
Mark Huot's avatar
Mark Huot
587 posts
15 years ago
Mark Huot's avatar Mark Huot

Image202 did you try the fix mentioned here for php 4? http://ellislab.com/forums/…

       
Adam Stacoviak's avatar
Adam Stacoviak
34 posts
15 years ago
Adam Stacoviak's avatar Adam Stacoviak
Image202 did you try the fix mentioned here for php 4? http://ellislab.com/forums/…

Yes that fix was applied.

       
Adam Stacoviak's avatar
Adam Stacoviak
34 posts
15 years ago
Adam Stacoviak's avatar Adam Stacoviak

There are 7 entries in the weblog that I’m adding the multi-relation selections to. I updated my template code to show this new relational data, and before any of the entries have been updated with relations, that code I mention below is shown. It’s also shown for entries that have been updated to include relation selections.

{REL[motion_news_relations]hREicj3SREL}

Does that help at all?

       
Mark Huot's avatar
Mark Huot
587 posts
15 years ago
Mark Huot's avatar Mark Huot

and if you select a relation does the code still show up?

       
Adam Stacoviak's avatar
Adam Stacoviak
34 posts
15 years ago
Adam Stacoviak's avatar Adam Stacoviak

Yes

       
Adam Stacoviak's avatar
Adam Stacoviak
34 posts
15 years ago
Adam Stacoviak's avatar Adam Stacoviak

If you’re open I could give you access to the install to trouble shoot.

I’m pausing development till I hear back from you, so I can roll back the db in case this doesn’t get sorted out in time.

       
arcoiris's avatar
arcoiris
3 posts
15 years ago
arcoiris's avatar arcoiris

I’ve got the same problem as Image202. I’m running PHP5 btw and version 1.0.6 of your extension.

It works for some related entries after I changed some code in your extension in the modify_template method:

foreach($TMPL->related_data as $key => $rel_data) {

    if(!isset($$reference->cfields)) continue;
            
    $field_id = $$reference->cfields[$rel_data['field_name']];

    ...
}

But other related entries on the same page give i.e. {REL[35][vorm_locaties]tJ3dFV96REL}

       
Brainwrek's avatar
Brainwrek
75 posts
15 years ago
Brainwrek's avatar Brainwrek
{REL[motion_relations]5gzIjWWfREL}

Just tried it for the first time. Looks awesome (thanks Mark!), but I am experiencing the same error.

I am using:

PHP 5.2.2 ExpressionEngine 1.6.0 (Build: 20070622) Multi Relationship (v.1.0.6)

Tried the hack (even though I think it’s only for PHP <5.0) and it broke EE. Took out the hack and back to {REL[motion_relations]5gzIjWWfREL}

Do I need to try an EE upgrade or something? Thanks again Mark!

       
peredur's avatar
peredur
6 posts
15 years ago
peredur's avatar peredur

For what it’s worth, the patch posted by arcoiris also worked for me (PHP 4, with the fix). Seems consistently okay…so far.

UPDATE

…except I get this error when posting or editing entries with the multi-relationship field (ellipses inserted):

Warning: Cannot modify header information - headers already sent by (output started at …extensions/ext.multi_relationship.php:500) in …core/core.functions.php on line 724

Warning: Cannot modify header information - headers already sent by (output started at …extensions/ext.multi_relationship.php:500) in …core/core.functions.php on line 296

And I’m now using PHP 5.x - same results (with or without the patch) as with 4 (i.e. the bad output without arcoiris’ patch, the above error with it) .

       
Daniel Walton's avatar
Daniel Walton
553 posts
15 years ago
Daniel Walton's avatar Daniel Walton

Hmm, not sure what changes were made in 106 of the extension, but on php 4.4.4 (ee 1.6) with either the weblog hack applied, or not, no relationships are showing. Neither are the {REL[xxx]xxxxxxxxxxx} tags.

       
lealea's avatar
lealea
202 posts
15 years ago
lealea's avatar lealea

– never mind… damn where’s the entry delete button?

       
lealea's avatar
lealea
202 posts
15 years ago
lealea's avatar lealea

On second thought, there IS a problem.

{ if no_related_entries } does not parse with your extension. :( Thoughts?

       
First 3 4 5 6 7 Last

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.