Login Credentials Not Accepted by Fuel

Please help me figure this thing out: I have been battling to login to the Dashboard but having issues. In the first place I was denied access to the Login page with issues bordering on Severity: 8192 Message: but was able to resolve them with #[\AllowDynamicProperties]. Now I am abled to reach the Login Page but when I put my login credentials: username: admin, p/w: admin the system is telling invalid login details. I tried all I could but no success. Hope the forum will help!

My htdocs/www/fuel/application/config/config.php file:
$config['base_url'] = 'localhost/htdocs/www/';
$config['index_page'] = 'index.php';
$config['encryption_key'] = 'fuelcmshelloworld';
$config['sess_save_path'] = sys_get_temp_dir();
$config['cookie_secure'] = TRUE;

htdocs/www/fuel/modules/fuel/config/fuel.php file:
$config['site_name'] = 'MyWebsite';
$config['fuel_mode'] = 'AUTO';
$config['default_pwd'] = 'admin';
$config['admin_enabled'] = TRUE;
$config['dev_password'] = 'admin';

$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'admin',
'password' => 'admin',
'database' => 'fuelcms',
'dbdriver' => 'mysqli',

Please any help will be appreciated!


  • Do you have PHP 8.1 or lower to try?

  • Also I edited my phpadmin db user to admin p/w admin

  • PHP Version 8.2.4

  • You mean I should lower the version of my php??

  • Yes. FUEL doesn't support PHP 8.2.

  • OK let me try. Will get back soon.

  • I downgraded my xampp & php to 8.1.17 and it is now saying invalid login (user: admin, p/w: admin)

  • Can you try reinstalling the database first just so we can make sure everything is fresh (I'm assuming this is a new install).

  • I re-install the db, changed the user name/pw in both mysql and /fuel/application/config/database.php but still not allowed to enter the dashboard. Saying invalid login

  • The login page is no longer accessible and I got the following error when trying to login:

    A PHP Error was encountered
    Severity: Warning

    Message: mysqli::real_connect(): (HY000/1045): Access denied for user 'admin'@'localhost' (using password: YES)

    Filename: mysqli/mysqli_driver.php

    Line Number: 211


    File: C:\xampp\htdocs\www\fuel\modules\fuel\core\Loader.php
    Line: 475
    Function: DB

    File: C:\xampp\htdocs\www\fuel\modules\fuel\core\MY_Model.php
    Line: 160
    Function: database

    File: C:\xampp\htdocs\www\fuel\modules\fuel\core\MY_Model.php
    Line: 113
    Function: initialize

    File: C:\xampp\htdocs\www\fuel\modules\fuel\core\Loader.php
    Line: 241
    Function: load_class

    File: C:\xampp\htdocs\www\fuel\modules\fuel\core\Loader.php
    Line: 455
    Function: model

    File: C:\xampp\htdocs\www\fuel\modules\fuel\libraries\Fuel_pages.php
    Line: 645
    Function: module_model

    File: C:\xampp\htdocs\www\fuel\modules\fuel\libraries\Fuel_pages.php
    Line: 558
    Function: assign_location

    File: C:\xampp\htdocs\www\fuel\modules\fuel\libraries\Fuel_pages.php
    Line: 525
    Function: initialize

    File: C:\xampp\htdocs\www\fuel\modules\fuel\libraries\Fuel_pages.php
    Line: 65
    Function: __construct

    File: C:\xampp\htdocs\www\fuel\modules\fuel\controllers\Page_router.php
    Line: 70
    Function: create

    File: C:\xampp\htdocs\www\index.php
    Line: 365
    Function: require_once

    A Database Error Occurred
    Unable to connect to your database server using the provided settings.

    Filename: C:/xampp/htdocs/www/fuel/modules/fuel/core/MY_Model.php

    Line Number: 113

  • Resolved!

Sign In or Register to comment.