Rendere compatibile Joomla 1.x con Php 5.3.x in Debian Squeeze
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;
- Applicare il patch:
patch -p0 < vcard.class.php.diff
- In alternativa prelevare i due files già corretti da qui: Joomla! • View topic - Warning: Parameter 2 to frontpage() expected to be a referen