Mambo BTS

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.

Tasklist

FS#461 - new installation MamboLiteV4.6.5.zip on PHP/5.3.0

Attached to Project: Mambo BTS
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
Task Type Defect
Category Backend
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 4.6.5
Due in Version 4.6.6
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

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.

The result is on http://www.roadaction.ru/mambo/index.php

A lots of depricated and warnings here.

This task depends upon

Comment by Lynne Pope (Elpie) - Friday, 10 July 2009, 21:55 GMT-4

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');
Comment by Mikhail (Rebel) - Monday, 13 July 2009, 05:01 GMT-4

Hello Elpie.
Is there exact place where to add this code?

Comment by Lynne Pope (Elpie) - Wednesday, 15 July 2009, 09:19 GMT-4

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.

Comment by Lynne Pope (Elpie) - Tuesday, 03 November 2009, 19:34 GMT-4 Comment by Andres Felipe Vargas valencia (andphe) - Monday, 09 November 2009, 06:11 GMT-4

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

Comment by Andres Felipe Vargas valencia (andphe) - Monday, 09 November 2009, 06:17 GMT-4

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];
    }
Comment by Andres Felipe Vargas valencia (andphe) - Monday, 09 November 2009, 06:37 GMT-4

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

Comment by Rowan (Rowan) - Thursday, 11 March 2010, 11:05 GMT-4

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:

Restricted access

and when I visit my admin page I get a blank.

does anyone know what's wrong?

Comment by Rowan (Rowan) - Sunday, 14 March 2010, 10:41 GMT-4

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 =(

Comment by avanoah28 (avanoah28) - Thursday, 27 May 2010, 03:17 GMT-4

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

Loading...