No content in Joomla 1.0 and 1.5 (blank content)

This problem has to do with php 5.3.x.

For Joomla 1.0

You have to put the following code to the file:

/includes/Cache/Lite/Function.php and replace at line 74:
Code:
change
$arguments = func_get_args();
with:
Code:
$arguments = func_get_args();
$numargs = func_num_args();
for($i=1; $i < $numargs; $i++){
$arguments[$i] = &$arguments[$i];
}
then you have to alter the file "includes/vcard.class.php
Find “
// taken from PHP documentation comments
function quoted_printable_encode($input, $line_max = 76) {
 $hex   = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
 $lines   = preg_split("/(?:\r\n|\r|\n)/", $input);
 $eol   = "\r\n";
 $linebreak  = '=0D=0A';
 $escape  = '=';
 $output  = '';

 for ($j=0;$j<count($lines);$j++) {
  $line   = $lines[$j];
  $linlen  = strlen($line);
  $newline  = '';
  
  for($i = 0; $i < $linlen; $i++) {
   $c   = substr($line, $i, 1);
   $dec  = ord($c);
   
   if ( ($dec == 32) && ($i == ($linlen - 1)) ) { // convert space at eol only
    $c = '=20';
   } elseif ( ($dec == 61) || ($dec < 32 ) || ($dec > 126) ) { // always encode "\t", which is *not* required
    $h2 = floor($dec/16); 
    $h1 = floor($dec%16);
    $c  = $escape.$hex["$h2"] . $hex["$h1"];
   }
   if ( (strlen($newline) + strlen($c)) >= $line_max ) { // CRLF is not counted
    $output .= $newline.$escape.$eol; // soft line break; " =\r\n" is okay
    $newline = "    ";
   }
   $newline .= $c;
  } // end of for
  $output .= $newline;
  if ($j<count($lines)-1) {
   $output .= $linebreak;
  }
 }
 
 return trim($output);
}
"
and replase it with :
"
if(!function_exists('quoted_printable_encode'))
{
// taken from PHP documentation comments
function quoted_printable_encode($input, $line_max = 76) {
 $hex   = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
 $lines   = preg_split("/(?:\r\n|\r|\n)/", $input);
 $eol   = "\r\n";
 $linebreak  = '=0D=0A';
 $escape  = '=';
 $output  = '';

 for ($j=0;$j<count($lines);$j++) {
  $line   = $lines[$j];
  $linlen  = strlen($line);
  $newline  = '';
  
  for($i = 0; $i < $linlen; $i++) {
   $c   = substr($line, $i, 1);
   $dec  = ord($c);
   
   if ( ($dec == 32) && ($i == ($linlen - 1)) ) { // convert space at eol only
    $c = '=20';
   } elseif ( ($dec == 61) || ($dec < 32 ) || ($dec > 126) ) { // always encode "\t", which is *not* required
    $h2 = floor($dec/16); 
    $h1 = floor($dec%16);
    $c  = $escape.$hex["$h2"] . $hex["$h1"];
   }
   if ( (strlen($newline) + strlen($c)) >= $line_max ) { // CRLF is not counted
    $output .= $newline.$escape.$eol; // soft line break; " =\r\n" is okay
    $newline = "    ";
   }
   $newline .= $c;
  } // end of for
  $output .= $newline;
  if ($j<count($lines)-1) {
   $output .= $linebreak;
  }
 }
 
 return trim($output);
}
}
"

 

For Joomla 1.5


Just upgrade to the last version of joomla:

  1. Download the latest joomla from http://www.joomla.org
  2. Uncompress the zip file
  3. Copy all files to your server
  4. Run your site
  5. Delete “installation” folder










No comments:

Post a Comment