Multi Relation
Posted: 05 August 2007 03:18 PM
[ Ignore ]
[ # 55 ]
Lab Technician
Total Posts: 1183
Joined 01-05-2006
@jacob is this still not working for you? i’ve implemented it on 1.6 and php5 a few times and it seems to work Ok.
Signature
================================================
Mark Huot
http://markhuot.com
================================================
Posted: 05 August 2007 08:35 PM
[ Ignore ]
[ # 56 ]
Grad Student
Total Posts: 58
Joined 02-02-2006
@Mark,
Honestly, I got to a point where I just disabled the extension and moved my data to another day of doing things (multiple fields, bleechh). I haven’t tried it in a while, so I can’t say if it is working or not.
Hopefully, I’ll have a chance to try again soon, and I will keep you posted. Thanks for checking on this.
Posted: 05 August 2007 09:07 PM
[ Ignore ]
[ # 57 ]
Lab Technician
Total Posts: 1183
Joined 01-05-2006
Thanks, let me know how it goes. I missed your last post and only just happened upon it today. I’ll look forward to any updates.
Signature
================================================
Mark Huot
http://markhuot.com
================================================
Posted: 09 August 2007 02:51 AM
[ Ignore ]
[ # 59 ]
Lab Assistant
Total Posts: 130
Joined 03-29-2006
I’m running ExpressionEngine 1.6.0 - Build: 20070627 with PHP version 4.4.4 and got this error. I applied the hack to mod.weblog.php as well.
Any clue?
Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476 Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476 Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476 Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476 Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476 Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476 Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476 Notice : Undefined offset : 1 in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 469 Notice : Undefined index : field_id_ in / home / image202 / public_html / yo / extensions / ext . multi_relationship . php on line 476
Signature
Adam Stacoviak
Handcrafted
Posted: 09 August 2007 06:54 AM
[ Ignore ]
[ # 60 ]
Lab Technician
Total Posts: 1183
Joined 01-05-2006
@Image202 —I think version 1.0.6 should fix the notices you’re seeing.
Signature
================================================
Mark Huot
http://markhuot.com
================================================
Posted: 09 August 2007 11:43 AM
[ Ignore ]
[ # 61 ]
Lab Assistant
Total Posts: 130
Joined 03-29-2006
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}
Signature
Adam Stacoviak
Handcrafted
Posted: 09 August 2007 11:57 AM
[ Ignore ]
[ # 62 ]
Summer Student
Total Posts: 23
Joined 01-04-2006
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
Posted: 09 August 2007 12:01 PM
[ Ignore ]
[ # 63 ]
Lab Technician
Total Posts: 1183
Joined 01-05-2006
Image202 did you try the fix mentioned here for php 4? http://expressionengine.com/forums/...
Signature
================================================
Mark Huot
http://markhuot.com
================================================
Posted: 09 August 2007 12:46 PM
[ Ignore ]
[ # 65 ]
Lab Assistant
Total Posts: 130
Joined 03-29-2006
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?
Signature
Adam Stacoviak
Handcrafted
Posted: 09 August 2007 01:01 PM
[ Ignore ]
[ # 66 ]
Lab Technician
Total Posts: 1183
Joined 01-05-2006
and if you select a relation does the code still show up?
Signature
================================================
Mark Huot
http://markhuot.com
================================================
Posted: 09 August 2007 01:02 PM
[ Ignore ]
[ # 67 ]
Lab Assistant
Total Posts: 130
Joined 03-29-2006
Signature
Adam Stacoviak
Handcrafted
Posted: 09 August 2007 02:05 PM
[ Ignore ]
[ # 68 ]
Lab Assistant
Total Posts: 130
Joined 03-29-2006
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.
Signature
Adam Stacoviak
Handcrafted
Posted: 14 August 2007 08:00 AM
[ Ignore ]
[ # 69 ]
Summer Student
Total Posts: 1
Joined 06-29-2007
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}
Posted: 14 August 2007 05:57 PM
[ Ignore ]
[ # 70 ]
Grad Student
Total Posts: 77
Joined 05-10-2006
{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!
Posted: 22 August 2007 01:32 AM
[ Ignore ]
[ # 71 ]
Summer Student
Total Posts: 29
Joined 10-10-2002
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) .
Posted: 31 August 2007 07:27 AM
[ Ignore ]
[ # 72 ]
Lab Technician
Total Posts: 1089
Joined 03-22-2006
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.
Signature
(a.k.a the_butcher)