Rendere compatibile Joomla 1.x con Php 5.3.x in Debian Squeeze

From RVM Wiki
Revision as of 17:17, 5 April 2011 by Gabriele.vivinetto (talk | contribs) (New page: Con php 5.3.x joomla 1.x * non mostra i contenuti delle pagine * non mostra il form di contatto * Per mostrare il contenuto, inserire nel file /includes/Cache/Lite/Function.php alla riga...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Con php 5.3.x joomla 1.x

  • non mostra i contenuti delle pagine
  • non mostra il form di contatto
  • Per mostrare il contenuto, inserire nel file
/includes/Cache/Lite/Function.php

alla riga

74

le righe:

                // To make compatible with PHP 5.3.x
                       $numargs = func_num_args();
                       for($i=1; $i < $numargs; $i++){
                               $arguments[$i] = &$arguments[$i];
                       }
               // To make compatible with PHP 5.3.x
  • Per sistemare il form di contatto, applicare questo patch:
cd includes
vi vcard.class.php.diff
--- vcard.class.php.old 2011-04-05 18:00:43.000000000 +0200
+++ vcard.class.php     2011-04-05 18:01:12.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version $Id: vcard.class.php 732 2005-10-31 02:53:15Z stingrey $
+* @version $Id: vcard.class.php 734 2005-10-31 02:53:15Z stingrey $
 * Modified PHP vCard class v2.0
 */
 
@@ -34,6 +34,8 @@
 }
 
 // taken from PHP documentation comments
+if(!function_exists('quoted_printable_encode'))
+{
 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);
@@ -72,6 +74,7 @@
 
        return trim($output);
 }
+}
 
 class vCard {
        var $properties;