I just played around with the 'frontpage' style element within aegir and inserted some php code to see what's actually there.

I am not very proficient with midgard, and I don't know where to look next... any suggestions?

thanks again..

nico

<?
echo 'register_globals = ' . ini_get('register_globals') . "\n";
echo 'register_argc_argv = ' . ini_get('register_argc_argv') . "\n";
echo 'magic_quotes_gpc = ' . ini_get('magic_quotes_gpc') . "\n";
echo 'magic_quotes_gpc = ' . ini_get('magic_quotes_gpc') . "\n";
echo 'variables_order = ' . ini_get('variables_order') . "\n";
echo 'gpc_order = ' . ini_get('gpc_order') . "\n";
print_r ($GLOBALS[midgard]);
?>
These are the results:

register_globals = 1
register_argc_argv = 1
magic_quotes_gpc = 0
magic_quotes_gpc = 0
variables_order = EGPCS
gpc_order = GPC
stdClass Object
(
    [host] => 1
    [style] => 5
    [page] => 10
    [cookieauth] => 0
    [auth] => 0
    [author] => 1
    [user] => 1
    [admin] => 1
    [quota] => 0
    [lang] => 0
    [root] => 1
    [sitegroup] => 0
    [debug] => 0
    [config] => Array
        (
            [prefix] => /usr
            [multilang] => 1
            [quota] => 1
        )

    [argc] => 1
    [argv] => Array
        (
            [0] => welcome
        )

    [uri] => /aegir/rcs/welcome/
    [ah_prefix] =>
    [prefix] => /aegir
    [self] => /aegir/rcs/
    [types] => Array
        (
            [article] => 1
            [attachment] => 2
            [element] => 3
            [event] => 4
            [eventmember] => 5
            [file] => 6
            [group] => 7
            [history] => 8
            [host] => 9
            [image] => 10
            [language] => 11
            [member] => 12
            [page] => 13
            [pageelement] => 14
            [pagelink] => 15
            [person] => 16
            [preference] => 17
            [quota] => 18
            [parameter] => 19
            [repligard] => 20
            [sitegroup] => 21
            [snippet] => 22
            [snippetdir] => 23
            [style] => 24
            [topic] => 25
        )

)


Marcin Soltysiak wrote:
Hello folks,

Hi,

I've been trying to get midgard and Aegir working for a few days now. Right now I have loaded midgard 1.6.0 with spider-admin, midcom, etc (everything datagard installs by default).

After I log into Aegir, I get a horribly rendered page (see http://draco.ramapo.edu/aegir.jpg for a snapshot). I've never seen Aegir at work, but I would assume that the left and right panes don't have the same content.

If I click on any of the links, they will expand on that same pane. I've tried to add a new company, new website, but nothing happens.. it doesn't even appear on the database.

Spider-admin seems to mostly work (with some problems, but that's for another post), and nothing that I add there seems to show in aegir.

I've reloaded the midgard dB a bunch of times, without any errors.. what I am doing wrong?

if it matters, I'm running php 4.3.8 and apache 2.0.58, mysql 3.23.58. I will leave the page up if someone wants to take a look... This is a test box,so no harm done in breaking it more. : http://draco.ramapo.edu/aegir/


Funny, must admit... Generally, Aegir shows its frontpage every time it does'n get what to show actually. For example, whet you point to http://draco.ramapo.edu/aegir/rcs/blabla it will show a frontpage since it doesn't recognize blabla as a /AegirCore/argv0/ module snippetdir, so let's dig further...

The left pane contains navigation subsystem and it is called via /aegir/rcs/navigation module. Let try it standalone - we get a frontpage again.

Lets find what active $argv array contains...ooops it is empty! Perhaps Midgard failed in a way...Nope:

$midgard->argv=Array
       (
           [0] => navigation
           [1] => top
       )

So, PHP has not registered $argv global var. Check your register_argc_argv PHP startup parameter :-)

Solt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- Marcelo N. Halpern, your favourite daemon. UNIX Systems Administrator - Ramapo College TEL: +1.201.684.6821 FAX: +1.201.684.7961

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to