Enhanced ObjectRelation on 3.8.1

Author Message

Siniša Šehović

Monday 12 June 2006 5:54:34 am

Hi

I have problem with EOR!

I have article class with eor as one of attributes.

I can't relate object within article.

Every time I try to relate object after publish object is not related!?!?

Do I have to have special policies/roles?
Could it be the problem with cache?

Really don't know where else to look.

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Xavier Dutoit

Monday 12 June 2006 9:52:51 am

Hi,

What's the eor version you have ?

Could you try with the one from svn ? It seems to work with 3.8

X+

http://www.sydesy.com

Siniša Šehović

Monday 12 June 2006 11:37:54 pm

Hi Xavier

I have latest svn version.

Still have problem with it.

I have a feeling that on publish eor object is not associated with article.

When I edit article I have warnings:

Undefined index:  classes in /srv/www/htdocs/intranet/kernel/classes/ezcontentobject.php on line 3644
Undefined index:  language_codes in /srv/www/htdocs/intranet/kernel/classes/ezcontentobject.php on line 3645
Invalid argument supplied for foreach() in /srv/www/htdocs/intranet/kernel/classes/ezcontentobject.php on line 3653
array_diff(): Argument #1 is not an array in /srv/www/htdocs/intranet/kernel/classes/ezcontentobject.php

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Xavier Dutoit

Tuesday 13 June 2006 12:09:14 am

Hi,

Could you tell me what are the parameters you've choosen on the eor (select by class, node, list with check box or dropdown...) ?

Could you edit and article, select an object on the eor parameter and save draft with debug on and tell me if you see any warning/error ?

X+

http://www.sydesy.com

Siniša Šehović

Tuesday 13 June 2006 12:26:17 am

Hi

After store of draft I have this:

Notice:  Jun 13 2006 09:22:41 
validate, edit_id_list 
Notice:  Jun 13 2006 09:22:41 
 
Notice:  Jun 13 2006 09:22:41 
fetch 
Notice:  Jun 13 2006 09:22:41 
 
Notice: eZEnhancedObjectRelationType Jun 13 2006 09:22:41 
Unknown custom HTTP action: new_object 
Error: eZTemplate Jun 13 2006 09:22:41 
Cannot retrieve attribute of a boolean 

S.

---
If at first you don't succeed, look in the trash for the instructions.

Xavier Dutoit

Tuesday 13 June 2006 12:33:38 am

Hmm,

Not sure about what you're trying to do: are you trying to associate an existing object to your article or create a new one ?

Could you give me the detail of how you configured the eor in the article (on the class edit, what's the selection mode, do you have a default placement node to create new objects...) ?

Do you get a list of objects to select as you're expecting when editing the article ?

Last but not the least, do you have javascript enabled ?

X+

http://www.sydesy.com

Siniša Šehović

Tuesday 13 June 2006 12:46:23 am

Hi

I am trying to associate an existing object article or create a new one.

Selection mode is pulldown list.
I have default placement node for create new objects.
I do get list of object.

I can select them from pulldown list.

Javascript is enabled in IE.

Strange are these warnings when I try to edit objects!?!?

S.

---
If at first you don't succeed, look in the trash for the instructions.

Xavier Dutoit

Tuesday 13 June 2006 4:57:22 am

I don't get why you have these warnings.

On the edit, that might be related to the new multilingual on 3.8 that manage things differently than for the previous version (I'm guessing).

On the publishing, that's strange (new_object that is used to create complete related objects, a feature that is done differently now (I have to modify the code to offer both options).

I'll try to install a fresh copy on my side.
X+

http://www.sydesy.com

Xavier Dutoit

Thursday 15 June 2006 6:23:55 am

Grr,

I don't have time right now to install a 3.8 and the one I thought I had isn't working.

Feel free to bug me down next week if I haven't reply (I get notification on this thread)

X+

http://www.sydesy.com

Siniša Šehović

Thursday 15 June 2006 2:58:15 pm

Hi Xavier

Thanx for your help!

I'll try to figure it out but your help is really needed here.

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Wednesday 28 June 2006 6:00:28 am

Hi Xavier

Problem is somewhere inside edit_right_menu.tpl.
I'll try to fix it.

I do have one strange behavior with EOR.

If I try to create new EOR from edit view (article) when I click on create new button is replaced with textbox!?!?

What could be wrong?
Is it the problem with CSS?

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

J-A Eberhard

Wednesday 28 June 2006 6:37:04 am

I think it might be related to
http://ez.no/community/forum/developer/enhancedobjectrelation_and_3_8/re_enhancedobjectrelation_and_3_8__1

I have behavior where the 'New object' button was replaced by a single input field that was not saved as related object.
Tried with fresh 3.8 as well as upgraded 3.6 (was working in 3.6) with no success.

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Xavier Dutoit

Wednesday 28 June 2006 7:13:24 am

Hi all,

The previous behaviour had some problem, like it had to create a new object (with a temporary name) until it was "send for publishing". As some (most) of the user never discard drafts, I ended up with a lot of junk content.

In my case, it was not ok, and I modified this behaviour: instead of creating the complete related object, it only allows to write its name.

If you put the name of the object into the field, it creates a new object with the right name you just put (and creates the relation too).

I stupidely didn't put a setting to let you choose between these two way of working. This shouldn't be complicated at all, but I'm half in holiday, half drown under work right now.

In the meantime, you can take the Revision 1078 from the pub svn, that's the version before the changes.

Sorry, I didn't document properly the changes, and that has obvioulsy been confusing for you.

X+

http://www.sydesy.com

Xavier Dutoit

Wednesday 28 June 2006 7:14:33 am

@JA,

It didn't properly create a new object with the name you put into the field ?

X+

http://www.sydesy.com

Siniša Šehović

Friday 30 June 2006 12:00:38 am

Hi Xavier

I have the same behavior as J-A.

Object is not created with that name entered.

One strange thing is that if I save draft my layout is somehow changed to admin
(but without proper css, templates are fetched from admin siteaccess) and there I have all fields for EOR.

What could be wrong?

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Xavier Dutoit

Friday 30 June 2006 3:48:48 am

Just tried "store draft" on my 3.7 install. works like it should.

I don't know what's the pb with 3.8 (or the new version). diggin

X+

http://www.sydesy.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.