BlackCatDevelopment / BlackCatCMS

BlackCat CMS is a PHP5, HTML5 content management system
https://blackcat-cms.org
Other
11 stars 9 forks source link

Installation fails at last step #358

Closed webbird closed 7 years ago

webbird commented 7 years ago

When reaching the "Finish" Step in a new installation, there may be an error:

Check tables password

The Backend should be functional, but the default pages created in this step will be missing.

I suspect an error in the installer saving / using the DB password. (Consequence of moving the DB configuration from config.php into a separate file.)

webbird commented 7 years ago

Unfortunately I am unable to reproduce this error in my local environment. Cause seems to be this part in install/index.php:

if ($result->numRows() == 0) {
    $errors['adminuser'] = false;
} else {
    $data = $result->fetchRow( MYSQL_ASSOC );
     /**
      *    Does the password match
      */
     if ( md5($config['admin_password']) != $data['password']) {
         $errors['password'] = false;
     }
}
webbird commented 7 years ago

I removed the account check as there never was a real problem at this point and if there should be, it can be fixed easily.