This is the bug tracking and feature request tracking system for the Mambo open source CMS project. To add a new task, or comment or vote on an existing task, please register, preferably by using the same username that you use on the forums.
Please do not open tasks for bugs in versions earlier than Mambo 4.6.5.
FS#461 - new installation MamboLiteV4.6.5.zip on PHP/5.3.0
Opened by Mikhail (Rebel) - Wednesday, 08 July 2009, 12:47 GMT-4
Last edited by Andres Felipe Vargas valencia (andphe) - Sunday, 09 August 2009, 19:17 GMT-4
|
Details
Installation leads to Fatal error function mosDBTable ($table='', $keyname='id', $db='') { if ($table) $this->_tbl = $table; else $this->_tbl = $this->tableName(); $this->_tbl_key = $keyname; if (is_object($db)) $this->_db = $db; }
after /** @var mosDatabase Database connector */ var $_db = null; in includes/database.php should fix it Adding in php.ini:
should fix most of “Static function” errors but leaves Deprecated errors. The result is on http://www.roadaction.ru/mambo/index.php A lots of depricated and warnings here. |
Since a lot of the deprecated errors only occur in PHP 5.3 and higher, and most users are not yet using PHP 5.3, couldn't we simply set Mambo to ignore the E_DEPRECATED errors?
Something like:
if( ! defined('E_DEPRECATED') ) define('E_DEPRECATED', '0');Hello Elpie.
Is there exact place where to add this code?
Don't try it at the moment Mikhail. We are doing some testing with PHP 5.3 and, with luck, will have something for you soon.
For now, we probably need a workaround for PHP 5.3. More work will need to be done in Mambo 4.7 (which has a minimum requirement of PHP 5.2).
Note to self - we also need to check addslashes. Mambo's requirement of magic_quotes_gpc On is outdated as of PHP 5.3. magic_quotes are deprecated from 5.3 on, and gone completely in PHP 6.
See also issues with PEAR cache_lite: http://mambo-developer.org/tracker/index.php?do=details&task_id=470
as for the revision 1767 a fix for the cache has been addressed on the svn please test it and report more issues about Mambo and PHP 5.3
The fix for those that doesn't want to try the nightly build is, modify the includes/Cache/Lite/Function.php file, and around the line 72, change it from :
function call() { $arguments = func_get_args();to:
function call() { $arguments = func_get_args(); $numargs = func_num_args(); for($i=1; $i < $numargs; $i++){ $arguments[$i] = &$arguments[$i]; }I've opened a new thread with all this information so more people can join the testing http://forum.mambo-foundation.org/showthread.php?p=81756#post81756
I did what was pointed out in this topic:
http://forum.mambo-foundation.org/showthread.php?p=81756#post81756
but now I still get errors:
visiting my website via the genuine way:
and when I visit my admin page I get a blank.
does anyone know what's wrong?
ah found the problem, I was still using 4.6.2, after upgrading it to 4.6.5 it worked. only now I need to get my home and contact pages working again =(
Installation leads to Fatal error
Fatal error: Call to undefined method mosMenu::mosDBTable() in /var/www/mambo/includes/core.classes.php on line 899
It seams because mosDBTable() function definition is missing
adding
function mosDBTable ($table=
, $keyname='id', $db=) {if ($table) $this→_tbl = $table;
else $this→_tbl = $this→tableName();
$this→_tbl_key = $keyname;
if (is_object($db)) $this→_db = $db;
}
after
/** @var mosDatabase Database connector */
var $_db = null;
in includes/database.php should fix it
Adding in php.ini:
* error_reporting have ~E_STRICT
* zend.ze1_compatibility_mode true
should fix most of "Static function" errors but leaves Deprecated errors.
0B0-107 ! 0B0-410 ! 132-S-708 ! 132-S-712