I have set up my Entity Reference View Widget according to the specifications. Everything works as expected up until the point when I click the buttons "Add Item" or "Add Items and Close Window."

The site was set up at www.example.com/site. I have made the necessary adjustments to my htaccess and settings.php files to reflect the fact that the site is installed in a subdirectory. Now this is going to sound strange but, when I click "Add Item" it essentially pushes the content from www.example.com to the "Selected Items" list. The content is from entirely different site on the same server, and in no way linked to my new Drupal site. I have never encountered anything like this before with another Drupal module. When I ultimately save the node, nothing shows up in the Entity Reference field.

When I created a subdomain for the directory, the module worked perfectly. Any ideas what could be causing this?

Comments

nhck’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.x-dev
Status: Active » Needs work
StatusFileSize
new483 bytes

Hej,

the same thing happend to me - I remove the slash in line 38 of the javascript file.

It might be better to use Drupal.settings.basePath ?

joncjordan’s picture

Sure enough, that fixed it. Thanks!

joncjordan’s picture

Status: Needs work » Closed (fixed)
nhck’s picture

Status: Closed (fixed) » Needs review

I don't think this is in the repository yet, so should we really close it?

jsacksick’s picture

Status: Needs review » Fixed

I committed a patch that makes use of the Drupal.settings.basePath, See ad086f6

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.