Folgendes Problem nach der instalation Fehler


(hardstyles) #1

There was a problem installing the plugin Example Feedburner: Mysqli prepare error: This command is not supported in the prepared statement protocol yet If this plugin has already been installed, and if you want to hide this message, you must add the following line under the [PluginsInstalled] entry in your config/config.ini.php file: PluginsInstalled[] = ExampleFeedburner
Fatal error: Class ‘Piwik_UsersManager_API’ not found in /home/www/Ideenzauberin/piwik/plugins/Login/Auth.php on line 57

das ist nach der erfolgreichen installation als fehler gekommen kann mir da jemand helfen bitte danke


(hardstyles) #2

das ist die auth.php

hp
/**
 * Piwik - Open source web analytics
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
 * @version $Id: Auth.php 1420 2009-08-22 13:23:16Z vipsoft $
 *
 * @category Piwik_Plugins
 * @package Piwik_Login
 */

/**
 *
 * @package Piwik_Login
 */
class Piwik_Login_Auth implements Piwik_Auth
{
    protected $login = null;
    protected $token_auth = null;

    public function getName()
    {
        return 'Login';
    }

    public function authenticate()
    {
        $rootLogin = Zend_Registry::get('config')->superuser->login;
        $rootPassword = Zend_Registry::get('config')->superuser->password;
        $rootToken = Piwik_UsersManager_API::getTokenAuth($rootLogin, $rootPassword);

        if($this->login == $rootLogin
            && $this->token_auth == $rootToken)
        {
            return new Piwik_Auth_Result(Piwik_Auth_Result::SUCCESS_SUPERUSER_AUTH_CODE, $this->login, $this->token_auth );
        }

        if($this->token_auth === $rootToken)
        {
            return new Piwik_Auth_Result(Piwik_Auth_Result::SUCCESS_SUPERUSER_AUTH_CODE, $rootLogin, $rootToken );
        }

        $login = Piwik_FetchOne(
                    'SELECT login FROM '.Piwik::prefixTable('user').' WHERE token_auth = ?',
                    array($this->token_auth)
        );
        if($login !== false)
        {
            if(is_null($this->login)
                || $this->login == $login)
            {
                return new Piwik_Auth_Result(Piwik_Auth_Result::SUCCESS, $login, $this->token_auth );
            }
        }
        return new Piwik_Auth_Result( Piwik_Auth_Result::FAILURE, $this->login, $this->token_auth );
    }

    public function setLogin($login)
    {
        $this->login = $login;
    }

    public function setTokenAuth($token_auth)
    {
        $this->token_auth = $token_auth;
    }
}

(oj.69) #3

[quote=hardstyles @ Nov 18 2009, 06:58 PM]das ist die auth.php

hp
/**
 * Piwik - Open source web analytics
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
 * @version $Id: Auth.php 1420 2009-08-22 13:23:16Z vipsoft $
 *
 * @category Piwik_Plugins
 * @package Piwik_Login
 */

/**
 *
 * @package Piwik_Login
 */
class Piwik_Login_Auth implements Piwik_Auth
{
    protected $login = null;
    protected $token_auth = null;

    public function getName()
    {
        return 'Login';
    }

    public function authenticate()
    {
        $rootLogin = Zend_Registry::get('config')->superuser->login;
        $rootPassword = Zend_Registry::get('config')->superuser->password;
        $rootToken = Piwik_UsersManager_API::getTokenAuth($rootLogin, $rootPassword);

        if($this->login == $rootLogin
            && $this->token_auth == $rootToken)
        {
            return new Piwik_Auth_Result(Piwik_Auth_Result::SUCCESS_SUPERUSER_AUTH_CODE, $this->login, $this->token_auth );
        }

        if($this->token_auth === $rootToken)
        {
            return new Piwik_Auth_Result(Piwik_Auth_Result::SUCCESS_SUPERUSER_AUTH_CODE, $rootLogin, $rootToken );
        }

        $login = Piwik_FetchOne(
                    'SELECT login FROM '.Piwik::prefixTable('user').' WHERE token_auth = ?',
                    array($this->token_auth)
        );
        if($login !== false)
        {
            if(is_null($this->login)
                || $this->login == $login)
            {
                return new Piwik_Auth_Result(Piwik_Auth_Result::SUCCESS, $login, $this->token_auth );
            }
        }
        return new Piwik_Auth_Result( Piwik_Auth_Result::FAILURE, $this->login, $this->token_auth );
    }

    public function setLogin($login)
    {
        $this->login = $login;
    }

    public function setTokenAuth($token_auth)
    {
        $this->token_auth = $token_auth;
    }
}

[/quote]
Hallo,

probiers mal mit der Installationsoption “PDO” beim mysql-Adapter. Das hat bei mir geholfen. Keine Ahnung, warum das mit der standardmäßig eingestellten Option nicht funktioniert hat … (da hat wohl mein Provider irgendtwas eingeschränkt style_emoticons/<#EMO_DIR#>/sad.gif )

Viel Erfolg !