Topic: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

Fatal error: Call to undefined method mosMenu::mosDBTable() in /customers/ct-data.dk/ct-data.dk/httpd.www/miacms/includes/core.classes.php  on line 1016

Hello all.
I know I have been sleeping on my job as web-admin.
But now I have the above error.

It comes from the web-hotel one.com have been upgrading to PHP 5.x.x

How do I set the site offline, so I can run the upgrade from 4.6.5 to 4.8.1
I guess I can not run the upgrade on a active server as the are locked files.

Any work arround ????
Thanks in advance

Re: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

Would it be possible to install MIACMS in a parallel installation using a new set of tables, then copy content from those locked tables and upgrade from there.
I have a template I need to copy also ....


Could that be a way ???

Re: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

I did a upgrade, that did not help.
Then I installed a clean verseion of miacms 4.9 it still failed the same way.

Found a fix from this thread: "After Install Mia 4.9 Error On PHP 5.3"
putting this into database.php

class mosDBTable extends mosDBAbstractRow {
    /** @var mosDatabase Database connector */
    var $_db = null;

// ADD THIS FUNCTION....
    function mosDBTable($table='', $keyname='id', $db='') {
        $this->mosDBAbstractRow ($table, $keyname, $db);
    }



But now it complains about some variables that was not derfined. And no content from the database is shown. The menues and other structure is shown, but no contents.
Any one got an idea?

Re: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

So.
Now I have 2 sites running
http://www.ct-data.dk/miacms/ opgrade from 4.6.5 - 4.8.1 - 4.9.0
and
http://www.ct-data.dk/miacms_test/ new and clean installation 4.9.0

I did this fix mentioned on database.php and now the site work and show the static pages.
The other pages  which is extracted from the databese, will not show ...
Both sites does have the same warning when i opens the frontpage:

"Warning: Parameter 2 to frontpage() expected to be a reference, value given in /customers/ct-data.dk/ct-data.dk/httpd.www/miacms_test/includes/PEAR/Cache/Lite/Function.php  on line 147"

I really could use a hint to get pass this warning - please

Re: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

Safari wrote:

So.
Now I have 2 sites running
http://www.ct-data.dk/miacms/ opgrade from 4.6.5 - 4.8.1 - 4.9.0
and
http://www.ct-data.dk/miacms_test/ new and clean installation 4.9.0

I did this fix mentioned on database.php and now the site work and show the static pages.
The other pages  which is extracted from the databese, will not show ...
Both sites does have the same warning when i opens the frontpage:

"Warning: Parameter 2 to frontpage() expected to be a reference, value given in /customers/ct-data.dk/ct-data.dk/httpd.www/miacms_test/includes/PEAR/Cache/Lite/Function.php  on line 147"

I really could use a hint to get pass this warning - please

I had the same issue, just add an ampersand:

line 147:
  $result = call_user_func_array($target, $arguments);
to
  $result = call_user_func_array($target, &$arguments);

See http://php.net/manual/en/function.call- … -array.php for reference:
...
Note: Referenced variables in param_arr are passed to the function by a reference, others are passed by a value. In other words, it does not depend on the function signature whether the parameter is passed by a value or by a reference.
...

Cheers Alain

Re: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

Many many Thank you
It works now :-)

Jens

Re: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

I also have the same problem while upgrading my PHP version
Fatal error: Call to undefined method mosMenu::mosDBTable() in /customers/ct-data.dk/ct-data.dk/httpd.www/miacms/includes/core.classes.php  on line 1016.
I m new to this cms.any help from any body .thanks
-------------------------------------

Ezine

Re: Fatal error: Call to undefined method mosMenu::mosDBTable() in /custom

Safari wrote:

Fatal error: Call to undefined method mosMenu::mosDBTable() in /customers/ct-data.dk/ct-data.dk/httpd.www/miacms/includes/core.classes.php  on line 1016

Hello all.
I know I have been sleeping on my job as web-admin.
But now I have the above error.

It comes from the web-hotel one.com have been upgrading to PHP 5.x.x

How do I set the site offline, so I can run the upgrade from 4.6.5 to 4.8.1
I guess I can not run the upgrade on a active server as the are locked files.

Any work arround ????
Thanks in advance


Gotta concur to that

Las Vegas Hotels