It sounds like a nice module. Unfortunately I am not able to check it out.
As soon as I activate the module, the node references disappear for everybody.
My testsite runs on XAMPP and I tested with IE8, Chrome3, Safari4 and Opera10. I checked on Garland and Alagna theme, I deactivated and uninstalled Both AEF modules and Ajax (all most recent versions), all without effect. Is there possibly another dependency, not mentioned on the module description?

Maybe it is not related but when I activate the module, on /admin/content/node-type/story/fields/field_type the AEF configuration field comes after the "Save field settings" button.

Comments

ndeschildre’s picture

Hello,

Weird indeed. What version of Content are you using? Do you get any PHP error, or other errors in the watchdog? And by "nodereference disappearing", you mean that the nodereference does not appear anymore on node edit page?
The settings below the save button is no problem.

Thanks.

iNade’s picture

Exactly the same problem here : the new noderef do not appear on the node edit page (on the node page, or whatever).

But I still have the other noderef I created before.

Using the 6.x-2.5 release of Content.

Thanks by advance.

Note 1 : This is the only noderef field I used... so I supppose every field with embedded options disappear.
Note 2 : By disappear we means "is not printed" into the page (html or whatsoever)

ndeschildre’s picture

I will look again... That's weird!

voroxobnyk’s picture

In system table in database i changed weight of module aef_embedded_edit from "0" to "1"

Then in sites/all/modules/aef_embedded_edit/aef_embedded_edit.module

Find line

<?php
$form[$field_name][$field_name .'_add_more']['#suffix'] .= '<div class="create-new-button">'.l(t('Create new @node_type', array('@node_type' => t("$type_full_name"))), 'aef_embedded_edit/node/add/'. $content_type_url, array('attributes' => array('class' => 'create_new_button', 'onclick' => 'return false;', 'field' => $field_name)) ).'</div>';
?>

Comment "[$field_name .'_add_more']"

<?php
$form[$field_name]/*[$field_name .'_add_more']*/['#suffix'] .= '<div class="create-new-button">'.l(t('Create new @node_type', array('@node_type' => t("$type_full_name"))), 'aef_embedded_edit/node/add/'. $content_type_url, array('attributes' => array('class' => 'create_new_button', 'onclick' => 'return false;', 'field' => $field_name)) ).'</div>';
?>

And in theme page.tpl.php files must contain

<?php
print $closure;
?>

before ending body tag

After that Embedded edit feature starts work better.

I do not think it is right ... Hardly a canonical solution. But somehow worked.
That's only after you save writes: "ajax.module: An unknown error has occurred." and creates more than one node.

Rino-1’s picture

I have Content 2.6. With disappear I mean that it is not visible in the node edit form. On screen, I have no errors.
I did not check if Xampp did put something in a logfile since I am not aware of Xampp having functionality like that.

voroxobnyk’s picture

page.tpl.php must contain

<?php
print $closure;
?>

before closing body tag

EmilOberg’s picture

I'm having the same problem. However, not for all content types. I've an image content type with an uberimage field and another uberimage field set to reference node mode in my article content type. It that context, the embedded edit module works, shows me the field and gives me an "Create new image"-link. On another content type, I've the embedded edit module bound to a node reference field. Here I end up with that field not showing at all, like the users above.

voroxobnyk fix did work.

Let me know if you need some debugging, I gladly help out.

ndeschildre’s picture

Status: Active » Fixed

Hello,

Thanks voroxobnyk for your debugging.
I commited your changes in the version 1.1 of the module.
Please re-open the issue if it still does not fix the problems.

iNade’s picture

Status: Fixed » Active

Do not change anything.

- Can't see the field.
- The settings fields are below the OK button

Same problem as before.

ndeschildre’s picture

:(
Ok I will really need to check with cck 2.6 then...

voroxobnyk’s picture

I have cck 2.6.

after i click button "Save" on embedded form i take error "ajax.module: An unknown error has occurred." (probably because server take set of errors while saving node from embedded form and client received erroneous response. I use devel module. So client may received krumo's backtrace output).
As a result, system creates more than one node from embedded form.

(Sorry my English)

ndeschildre’s picture

And is it the same thing if you desactivate Devel?