Error importing vcards

Help
2009-05-27
2013-05-02
  • Hello,

    I´m trying to use the "import" feature, but it doesn´t work

    I just can get this error:

    Fatal error: Class 'VCARD' not found in C:\Datos\Server\EasyPHP 3.0\www\agenda2\lib\backEnd\ContactImportExport.class.php on line 174

    an before that error message, a lot of text,  from vcardclass.inc like that:

    " etVersion($version); } // reset vCard to begin new one function resetvCard($version = "2.1") { $this->types = array(); $lasterror_msg = ""; $lasterror_num = 0; $mailer = ""; $this->setVersion($version); } // set vCard object by vCard formatted string
    [...]
    { $pos = strpos($input, "|"); if ($attr == "P") return ($pos)? str_replace("|", ";", substr($input, $pos + 1)) : ""; elseif ($attr == "T") return ($pos)? substr($input, 0, $pos) : $input; else return str_replace("|", ";", $input); } } } // if ( !defined("VCARDCLASS_INC") ) ?>
    Fatal error: Class 'VCARD' not found in C:\Datos\Server\EasyPHP 3.0\www\agenda2\lib\backEnd\ContactImportExport.class.php on line 174"

    Any help?

    Thanks!

     
    • It seems that vcardclass.inc got damaged somehow, or your server does not execute it as php, but rather prints it as a string. Strange.

      You could try to rename it to vcardclass.inc.php (including the require statement in ContactImportExport) and see what happens.