Hi! Love this module. I've been using it since 6 and was happy to see you ported it to d8 already. Thanks for sharing your code with the rest of us. Really appreciate all the time and energy you've put into it.
I'm getting this error when I try to run the bookmarklet in d8:
ERROR:
Notice: Undefined index: #type in Drupal\prepopulate\Controller\prepopulateController->_prepopulate_request_walk() (line 32 of modules/prepopulate/src/Controller/prepopulateController.php).
Now, it's entirely possible this is something I've done wrong in the bookmarklet. But thought I would give you a shout out and see if you might recognize something. I'm very front end and don't understand the error enough to go digging around in your code.
Thanks again for being so generous. This little module has saved me *so* much time over the years.
Kathy
Comments
Comment #1
kdmarks commentedGeez. I should have waited a few minutes. It was me. Working now.
Again, thank you so much for this module!
Kathy
Comment #2
JonFreed commentedMarking as "Closed (cannot reproduce)". A better status might be something like "Closed (bad test)" or "Closed (opened by mistake)" because the opener stated "Geez. I should have waited a few minutes. It was me. Working now."
Comment #3
juliencarnot commentedI can reproduce this, with one "project" (custom content-type) node referencing a "resource" (custom content-type) node, through a entity reference field "field_p_resource".
Here is the URL I use:
node/add/project?edit[field_p_resource][0][target_id]=Ressource%20utilisée(49)(49 being the id of my resource node and "Ressource utilisée" being the field label)
I get this error message:
If I edit the prepopulateController.php on line 32 and replace occurences of "values" by "target_id", the notice disappears.
Note that in either cases, my entity reference field doesn't get the right value, but I guess this is rather because I can't seem to find the right syntax. Any hints on that would be greatly appreciated, I've tried quite a lot of combinations but no luck so far!
Comment #4
juliencarnot commentedComment #5
juliencarnot commentedCan no longer reproduce this with 8.x-2.0-alpha1 .
Comment #6
fadgadget commentednot working for me (alpha)
D7 (working)
/node/add/links?edit[title]='+escape(t)+'&edit[field_external_link][und][0][url]='+escape(u),'_blank'
D8 field now-
field_external_link[0][uri]
Tried all kinds of things with it. Was hoping it would simply be
[field_external_link][0][uri]=
but to no avail. It fills the title in ok. All help and advice appreciated. thanks
edit: I dont get an error message i just dont get the link field prepopulated
Comment #7
dqdStill reproducable with #value and #type
But, possibly just a documentation or unfinished port D8 issue. In D8 version it has no help pages with examples nor an entry in the reports > updates. Needs maintainer comment.
Comment #8
super_romeo commentedTry this format:
?edit[field_page][widget][0][target_id]=2see: https://www.drupal.org/project/prepopulate/issues/2668010#comment-12801667
Comment #9
heddnIf you see a new bug, please don't re-open a 2 year old issue. Instead, open a new bug.
Comment #10
dqdIn drupal.org issue life cycles in doesn't matter if an issue is 2 years old, unless we talk about complete other core compatibility levels here. If an old bug persist or re-occures I strongly recommend to reopen old issues for better back tracking. But if it is caused by another bug now, I agree. Tests here still lead to the assumption that this issue report fits and persists, but, for peace and harmony, I keep this issue in the state the maintainer recommends.