Joomla 1.0.13 and PHP 5.3.x issues - Contacts disappeared

com_contacts uses the includes/vcard.class.php file, which also needs to be modified to avoid this error:

Fatal error: Cannot redeclare quoted_printable_encode() in includes/vcard.class.php on line 74

In vcard.class.php around line 36 is the function quoted_printable_encode. This ends up declaring twice, causing the error, so you can prevent the error and fix the error by checking if the function already exists, and if it does, PHP ignores the function declaration. Adding the green lines of code before and after the existing function clears the problem.

if(!function_exists('quoted_printable_encode')) {
function quoted_printable_encode($input, $line_max=76) {
/* ... */



  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to enable php errors

PHP errors are disabled by default in our servers. If you want to enable them edit .htaccess and...

Joomla 1.0.13 and PHP 5.3.x issues - Frontpage contents disappeared

If you cannot see contents in frontpage then try the following. In joomla folder:...

Joomla 1.5.x backend menus disappeared

This is mostly a Joomla 1.5.x and php 5.3.x issue. If you login in administrator pane and you...