Back to top

Autore Topic: Impossibile accedere al pannello di amministratore  (Letto 1552 volte)

Offline FabioCern

  • Nuovo arrivato
  • *
  • Post: 2
    • Mostra profilo
Impossibile accedere al pannello di amministratore
« il: 16 Nov 2016, 09:23:54 »
Ciao a tutti
ieri sera stavo installando un nuovo modulo, sembrava che tutto procedesse per il meglio ma appena ho abilitato il modulo e successivamente mi sono slogato e ri- logato non sono più riuscito ad accedere al pannello di amministratore
appena provo l'accesso mi appare la seguente schermata

Fatal error: Call to undefined method JUserHelper::verifyPassword() in /web/htdocs/www.accademianazionaledellapolitica.it/home/plugins/authentication/joomla/joomla.php on line 56

Potete gentilmente suggerirmi come riprostinare il tutto
GRAZIE

Offline alexred

  • Fuori controllo
  • *
  • Post: 25672
  • Sesso: Maschio
  • Esperto in ozio relaxed
    • Mostra profilo
Re:Impossibile accedere al pannello di amministratore
« Risposta #1 il: 16 Nov 2016, 09:34:03 »
Ciao    FabioCern,
hai un backup recente dell'intero sito da ripristinare ?

Verifica magari se il tuo hosting ha i backup recenti del tuo sito.

Offline FabioCern

  • Nuovo arrivato
  • *
  • Post: 2
    • Mostra profilo
Re:Impossibile accedere al pannello di amministratore
« Risposta #2 il: 16 Nov 2016, 12:15:41 »
Gentile alexred
ho ripristinato con un backup di qualche settimana fa
Ma il problema persiste
ho disabilitato (impostando da 1 ad 0) tramite DB dal pannello DataBase MySQL. l'ultimo modulo che avevo installato che penso che abbia causato il problema
ma continuo a non accedere al pannello di amministratore
ho cambiato la password tramite sempre DB dal pannello DataBase MySQL. seguendo la guida di joomla inserendo la password provvisoria admin, ma il problema persiste

Cerco disperatamente una soluzione
riporto la riga on line 56 php

<?php
/**
 * @copyright    Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license        GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access
defined('_JEXEC') or die;

/**
 * Joomla Authentication plugin
 *
 * @package        Joomla.Plugin
 * @subpackage    Authentication.joomla
 * @since 1.5
 */
class plgAuthenticationJoomla extends JPlugin
{
    /**
     * This method should handle any authentication and report back to the subject
     *
     * @access    public
     * @param    array    Array holding the user credentials
     * @param    array    Array of extra options
     * @param    object    Authentication response object
     * @return    boolean
     * @since 1.5
     */
    function onUserAuthenticate($credentials, $options, &$response)
    {
        $response->type = 'Joomla';
        // Joomla does not like blank passwords
        if (empty($credentials['password']))
        {
            $response->status = JAuthentication::STATUS_FAILURE;
            $response->error_message = JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED');
            return false;
        }

        // Initialise variables.
        $conditions = '';

        // Get a database object
        $db        = JFactory::getDbo();
        $query    = $db->getQuery(true);

        $query->select('id, password');
        $query->from('#__users');
        $query->where('username=' . $db->quote($credentials['username']));

        $db->setQuery($query);
        $result = $db->loadObject();

        if ($result)
        {
            $match = JUserHelper::verifyPassword($credentials['password'], $result->password, $result->id);

            if ($match === true)
            {
                $user = JUser::getInstance($result->id); // Bring this in line with the rest of the system
                $response->email = $user->email;
                $response->fullname = $user->name;

                if (JFactory::getApplication()->isAdmin())
                {
                    $response->language = $user->getParam('admin_language');
                }
                else
                {
                    $response->language = $user->getParam('language');
                }
                $response->status = JAuthentication::STATUS_SUCCESS;
                $response->error_message = '';
            }
            else
            {
                $response->status = JAuthentication::STATUS_FAILURE;
                $response->error_message = JText::_('JGLOBAL_AUTH_INVALID_PASS');
            }
        }
        else
        {
            $response->status = JAuthentication::STATUS_FAILURE;
            $response->error_message = JText::_('JGLOBAL_AUTH_NO_USER');
        }
    }
}
Vi chiedo un aiuto gentilmente
GRAZIE

Offline alexred

  • Fuori controllo
  • *
  • Post: 25672
  • Sesso: Maschio
  • Esperto in ozio relaxed
    • Mostra profilo
Re:Impossibile accedere al pannello di amministratore
« Risposta #3 il: 16 Nov 2016, 12:41:06 »
come altro tentativo ti consiglio di individuare il numero esatto di versione di Joomla presente nel tuo sito.
Scaricare il pacchetto di installazione di quella esatta versione. Estrarlo sul tuo PC ed eliminare la cattella installation.
Poi caricare tutto via FTP sovrascrivendo file e cartelle.
In questo modo se qualche file del core di Joomla si era corrotto viene ripristinato e forse il tuo errore corretto.

 



Web Design Bolzano Kreatif