I'm getting this:

    Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /path/to/drupal/includes/entity.inc).
    Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 354 of /path/to/drupal/includes/entity.inc).

When I view a node that has this field in it.

How can I fix this?

Thanks

CommentFileSizeAuthor
#5 node_with_link.png110.3 KBjfha73
#5 node_without_link.png101.87 KBjfha73
#4 Link1.png8.38 KBjfha73

Comments

jfha73’s picture

FYI,

I forgot to say that this happened after upgrading from D6 to D7, so it might have been something in the migration process.

jfha73’s picture

More info,

My nodes with Link field are not showing the link in them when I view them, but if I hit Edit, I can see them just fine.

jcfiala’s picture

I'm not sure. I need more info about what's going on.

For one, is this a site that was built with Drupal 6 and upgraded to Drupal 7?

Try digging in a little and seeing what's going on. Does it change any if you change the display of the link field? If you disable the link field from displaying, do you still get the error? As I doubt you're here in Denver, I can't just come over to your office and debug, so the more detail you can give the better.

Has this _just_ started happening, or has it happened as long as you had the link module enabled?

jfha73’s picture

StatusFileSize
new8.38 KB

This just started after I upgraded to Drupal 7, it never happened when it was on Drupal 6, also, I don't see where to change the display of the link editing the node or editing the field in content types.

jfha73’s picture

StatusFileSize
new101.87 KB
new110.3 KB

Here is another example, same node, one with link in it another without.

The content type does have a Link field on it, the one without means the link field is empty.

jfha73’s picture

Status: Active » Closed (cannot reproduce)

Sorry about this, I just noticed that it shows also in some nodes without link field in them.