I have a content type with Entity Reference Fields and I'm using ENTITY SELECTION/Views: Filter by an entity reference view which is a view of users, but the select list is totally empty, I've done this so many times and this is the first time it happens. I've tried many ways to fix it with no luck. The view, it is working just fine.

I'm getting this two error logs

Notice: Array to string conversion in views_popup_views_post_render() (line 192 of /home/mysite/public_html/sites/all/modules/views_popup/views_popup.module).

Warning: array_keys() expects parameter 1 to be array, string given in EntityReference_SelectionHandler_Views->getReferencableEntities() (line 117 of /home/mysite/public_html/sites/all/modules/entityreference/plugins/selection/EntityReference_SelectionHandler_Views.class.php).

Version:
Entity Reference 7.x-1.1
Entity API 7.x-1.7
Chaos 7.x-1.9

Thanks

Comments

menhio created an issue. See original summary.

jmanny’s picture

Category: Bug report » Support request
Priority: Normal » Critical
jmanny’s picture

Title: Filter by Entity Reference View not loading users » Filter by Entity Reference View not working
Issue summary: View changes
jmanny’s picture

Issue summary: View changes
mustanggb’s picture

Priority: Critical » Normal

The stable release is nearly 3 years old, so one thing to try is whether it works with the latest dev version instead.

Also what PHP version as you running as currently only 5.3 is being tested against.

Are you using the autocomplete widget? If so perhaps see if another one works.

jmanny’s picture

Thanks Mustang. I will try the Dev Version.

FYI: I am using version 7.x-1.1 in two different applications and one of them it's working fine. Both use PHP 5.5.38, and have tried autocomplete widget and the select list with no luck in the second one.

jmanny’s picture

After many hours of research this was finally solved by disabling Views Popup Version: 7.x-3.0

jmanny’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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