PHP-Anfänger steht vor einer Fehlermeldung

M

McFraggle

Jungspund
Hallo zusammen!
Vorweg: Ich hab von php etwa so viel Ahnung wie vom Zuckerrohranbau.
Problem:
Ich versuche eine php-Anwendung (openTimetool) bei mir aufzusetzen. Endlich hab ich nun den Apache soweit, dass er php ausführt und die mySQL-DB, die das openTimetool benötigt, sollte auch laufen.
Jedoch: Beim Start des Skriptes kommt eine Fehlermeldung:
Code:
Fatal error: Call to a member function on a non-object in /srv/www/htdocs/openTimetool/htdocs/index.php on line 40
Die ersten Code-Zeilen des Skriptes:
PHP:
 if (@$_REQUEST['resetAccountName']) {
        $account->setAccountName();
    }

    if (@$_REQUEST['newData']['accountName']) {
        require_once $config->classPath.'/modules/remote/remote.php';

        $accountName = $_REQUEST['newData']['accountName'];
        if (modules_remote::execute('account.isAccountName',$accountName)) {
            $account->setAccountName($accountName);
            $account->prepare(true);    // force getting the data via XML-RPC again
        } else {
            $applError->set('This is not a valid account name!');
        }
    }

    if( ($account->isAspVersion() && $account->getAccountName()) || !$account->isAspVersion() ) {
        require_once 'HTTP/Header.php';
        HTTP_Header::redirect($config->vApplRoot.'/modules/time/today.php');
    }
Zeile 40 ist dabei die Kopfzeile des letzten If-Statements.

hat jemand eine Idee, wie ich das beheben kann?
 
naja ...

anscheinend ist das Objekt $account´nicht instanziert.

d.h. $account->setAccountName(); wurde nicht ausgeführt !

überprüf mal ob du in die IF-Anweisung (if (@$_REQUEST['resetAccountName']) ) reinkommst ...

lg,
hannes
 

Ähnliche Themen

Windows clients können nicht mehr auf lange laufendes System zugreifen

NagiosGrapher 1.7.1 funktioniert nicht

Samba Update von 3.2.5 auf 3.5.6 - Probleme beim Server Browsen

VHOST Problem, Debian Lenny

Jaunty + Zend + Gdata + xampp

Zurück
Oben