Piotr Pokora wrote:
The problem is that none of my hosts are functional and the problems all
seem to be various mgd_xxx functions
that are not defined.  For example, when I try to access Aegir or
Spider-admin, the following error is logged:

PHP Fatal error:  Call to undefined function mgd_get_host() ...

All legacy functions are deprecated since 1.8 at least IIRC.
Thanks. I was afraid that was the case. Are there equivalent calls in the new API? If it ends up being only a few calls that I need, it might be
worth writing a wrapper that maps them into the new API.

Also, without Aegir or Spider, is midcom the recommended (only) admin tool for managing midgard sites in 8.09 ? I attempted to get that working also but am getting 404s when trying to access "/midcom-login-". There is no host record with a prefix set to "/midcom-login-". Should there be or is this handled a different way ?

But do not worry, you can still enable them.
Download midgard-php package from http://www.midgard-project.org/download/.
Build it manually:

    phpize
    configure --with-legacy-api=yes
    make
    sudo make install

Restart apache and all sites should be functional again.

Keep in mind, no one supports legacy API (neither Spider nor Aegir) any
longer.
I attempted this and got loads of errors on the "make " step. This combined with the fact that it will not be supported leads me to the questions I asked above about mapping the old API calls into the new.
It's either that or drop back to 1.8.9.

Thanks again.

Martin

Piotras

_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user

Reply via email to