Hello,

I've just installed the module.
I've created a field in my custom content type in the aim to have a reference to a block.

When I'm looking for a block in node reference field, I've got this issue in a popup:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://mydomain/fr/blockreference/autocomplete/node/field_menu_ref/
StatusText: OK
ResponseText: {"\u003Cspan thmr=\u0027thmr_1\u0027 class=\u0027devel-themer-wrapper\u0027\u003EMes instruments\u003C\/span\u003E [bid:121]":"\u003Cspan thmr=\u0027thmr_2\u0027 class=\u0027devel-themer-wrapper\u0027\u003EMes instruments\u003C\/span\u003E"}jQuery.extend(Drupal.settings, {"thmr_1":{"id":"thmr_1","name":"blockreference_item_simple","used":"theme_blockreference_item_simple","type":"func","duration":4.05,"candidates":["theme551_blockreference_item_simple"],"preprocessors":[],"processors":[]},"thmr_2":{"id":"thmr_2","name":"blockreference_item_simple","used":"theme_blockreference_item_simple","type":"func","duration":0.03,"candidates":["theme551_blockreference_item_simple"],"preprocessors":[],"processors":[]},"request_id":"121555085b3f45ee8d","devel_themer_uri":"\/fr\/devel_themer\/variables\/121555085b3f45ee8d"});

I've got JQuery 1.4

An Idea ?

Comments

rudiedirkx’s picture

Status: Active » Postponed (maintainer needs more info)

I see something with "devel-themer-wrapper". Can you reproduce it with Devel off? I can't reproduce it at all.

It also seems you're missing part of the URL..? Valid paths would be

  • blockreference/autocomplete/node/field_cool_blocks//test
  • blockreference/autocomplete/node/field_cool_blocks/135/test

What happens if you go to fr/blockreference/autocomplete/node/field_menu_ref//view? (Should search for "view".)

rudiedirkx’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
aitala’s picture

I am getting a similar issue with Block reference 7.x-2.4

An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: http://dev.ems.psu.edu/index.php?q=blockreference/autocomplete/paragraphs_item/block/field_paragraph_block/0
StatusText: Forbidden
ResponseText: 
Access denied | dev.ems.psu.edu
rudiedirkx’s picture

That's a different kind: No access.

BR requires 2 of 3 access checks:

  • always: permission 'access content'
  • new node: node create access for this node type
  • existing node: node edit access for this node

Can you confirm you have the correct accesses? Or check more checkboxes so you do?

swati sharma’s picture

@aitala I am facing a similar issue with blockreference. Could you resolve this for your site?

doostinharrell’s picture

I don't experience this with blockreference fields added directly to a node. I do however experience this issue when using blockreference in a custom paragraph type. Essentially in this scenario the only way I've been able to add references is to first add my paragraph type, the one containing the blockreference field, to the node (leaving the reference empty), save the node. then edit and populate.

Everything works the second time around.

doostinharrell’s picture

Status: Closed (cannot reproduce) » Active

Re-opened this as I was able to re-produce. I'm unsure if this is an issue with Paragraphs or Block Reference however so I'm going to create an issue on the Paragraphs project as well and provide a link here between the 2.