CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va
Pages: [1]

Author Topic: Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va  (Read 4403 times)

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va
September 09, 2011, 09:11:14 pm
We've recently upgraded from Drupal 5 / CiviCRM 1.9 to Drupal 7.7 / CiviCRM 4.0.5

Sometimes, but not always we are getting the following error message when updating the value in a checkbox custom field.  May happen with other fields, but noticed it when updating the custom field.  The update does happen.

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /home/healthcare/www/www/includes/entity.inc).

Any idea what to look for - freaks some of our users out.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va
September 10, 2011, 12:23:30 pm
Can you please replicate this on http://drupal7.demo.civicrm.org

Kurund
Found this reply helpful? Support CiviCRM

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va
October 10, 2011, 05:16:56 pm
I just got this same error working on a fresh install of Civi 4.0.6 on Drupal 7.8. I was simply editing the email address of a contact. The installation is on a host that I'm new to, so it may just possibly have been down to something related to the hosting environment (although I can't think what).
Graham Mitchell
http://mc3.coop

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va
October 17, 2011, 02:58:02 pm
I just got this too on a practically fresh install. It occurred when editing a contact:

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /var/www/vhosts/ifm.org.uk/httpdocs/includes/entity.inc).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /var/www/vhosts/ifm.org.uk/httpdocs/includes/entity.inc).

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va
November 01, 2011, 05:35:48 am
Strangely I am not able replicate this error. It is possible that the error might be related to site setup. i.e. modules installed etc.
It would be great if someone who is able to replicate this can come up with the patch to fix this error.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER va

This forum was archived on 2017-11-26.