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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • Warning Custom Data
Pages: [1]

Author Topic: Warning Custom Data  (Read 1095 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Warning Custom Data
July 08, 2010, 02:15:23 am
When I select Administer/Customize/Custom Data I got a warning:
Code: [Select]
warning: Invalid argument supplied for foreach() in /var/www/dgwcivi/sites/all/modules/civicrm/CRM/Contact/BAO/ContactType.php on line 131.
From that point on I get this warning everywhere. It looks like there is foreach that is expecting subtypes, and I have none in my installation?
Code: [Select]
$pairs = array( );
        foreach ( $subtypes as $name => $info ) {
            $index = ($key == 'name') ? $name : $info[$key];
            $pairs[$index] = $info['label'];
        }
        return $pairs;

By the way, this only happens on my local test site, which was a fresh install of 3.2beta3, and not on the customer test site, which was upgraded from a 3.1.5 installation. I will now install 3.1.5 on my local test site too, customize and then upgrade to 3.2beta3.
« Last Edit: July 08, 2010, 02:30:08 am by Erik Hommel »
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Warning Custom Data
July 08, 2010, 04:22:51 am
Re-installed 3.2beta3 and did the following:
  • added Custom Data for Individual, which worked fine
  • changed the label for Individual to Persoon with Administer/Option Lists/Contact types
  • Went back to my Custom Data group, I could no longer link the group to Individual (which should now show up as Persoon)
  • Tried to create a new Custom Data group, which I could also no longer link to Individual

Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • Warning Custom Data

This forum was archived on 2017-11-26.