When going into edit mode for a profile, the following notices are shown:

    * Notice: Undefined index: TEL in File_IMC_Build_Vcard->addTelephone() (regel 1109 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: ADR in File_IMC_Build_Vcard->addAddress() (regel 1019 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: NAME in File_IMC_Build_Vcard->fetch() (regel 1351 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: SOURCE in File_IMC_Build_Vcard->fetch() (regel 1357 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: PHOTO in File_IMC_Build_Vcard->fetch() (regel 1370 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: BDAY in File_IMC_Build_Vcard->fetch() (regel 1376 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: LABEL in File_IMC_Build_Vcard->fetch() (regel 1390 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: EMAIL in File_IMC_Build_Vcard->fetch() (regel 1406 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: MAILER in File_IMC_Build_Vcard->fetch() (regel 1414 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: TZ in File_IMC_Build_Vcard->fetch() (regel 1420 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: GEO in File_IMC_Build_Vcard->fetch() (regel 1426 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: TITLE in File_IMC_Build_Vcard->fetch() (regel 1432 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: ROLE in File_IMC_Build_Vcard->fetch() (regel 1438 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: LOGO in File_IMC_Build_Vcard->fetch() (regel 1444 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: AGENT in File_IMC_Build_Vcard->fetch() (regel 1450 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: ORG in File_IMC_Build_Vcard->fetch() (regel 1456 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: CATEGORIES in File_IMC_Build_Vcard->fetch() (regel 1461 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: NOTE in File_IMC_Build_Vcard->fetch() (regel 1468 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: PRODID in File_IMC_Build_Vcard->fetch() (regel 1473 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: REV in File_IMC_Build_Vcard->fetch() (regel 1480 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: SORT-STRING in File_IMC_Build_Vcard->fetch() (regel 1485 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: SOUND in File_IMC_Build_Vcard->fetch() (regel 1492 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: UID in File_IMC_Build_Vcard->fetch() (regel 1498 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: URL in File_IMC_Build_Vcard->fetch() (regel 1504 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: CLASS in File_IMC_Build_Vcard->fetch() (regel 1509 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).
    * Notice: Undefined index: KEY in File_IMC_Build_Vcard->fetch() (regel 1516 van /usr/share/php5/PEAR/File/IMC/Build/Vcard.php).

# drush pmi vcard
Project : vcard
Type : module
Title : vCard
Description : Allows vcard export of user data
Version : 7.x-1.2
Package : Other
Core : 7.x
Status : enabled
Path : sites/all/modules/vcard
Schema version : module has no schema
Files : vcard.module, vcard.admin.inc
Requires : profile

Is this a problem with the Vcard module or with the pear module?

Comments

radoeka’s picture

I have version 0.4.1 of the File_IMC module installed:

/srv/www/htdocs/sites/all/modules # rpm -q php5-pear-file_imc
php5-pear-file_imc-0.4.1-1.1.noarch

radoeka’s picture

Status: Active » Closed (works as designed)

Problem solved (I think) after restarting the webserver. Pear and the pear file_imc were just installed, and I think the webserver needed a restart to become aware of pear libs and modules.

sanduhrs’s picture

I get the same notices in my setup.
At least those are only notices, you probably don't have notices turned on on your live setup.
Also, FILE_IMC is still in beta, if you want to get rid of the notices, you may choose you switch to PEAR Contact_vcard_build and switch back to FILE_IMC when it gets stable.

radoeka’s picture

@sanduhrs: If both pear modules (Contact_vcard_build and File_IMC) are installed, which one will the Vcard module use?

sanduhrs’s picture

File_IMC has preference, because Contact_Vcard_Build has been officially deprecated [1].

[1] http://pear.php.net/package/Contact_Vcard_Build

radoeka’s picture