graitapon/concerto-platform

Concerto 4.0.0 beta3 Install mysql issue

Closed this issue · 2 comments

When installing this version of Concerto I come across an issue with the mysql 
part of the install.

On first run it will produce and error saying it didn't install. However if you 
run it again it will say it did install, but you won't be able to log into the 
CMS. This is because an admin user hasn't been created.

I found that the route of the problem is that when trying to create the admin 
user during setup the 'last_login' field defaults to an empty string. This 
means mysql will through an error (which is uncaught), because the value isn't 
a timestamp.

I've fixed this by setting a default value for the last_login field like so:

in cms/model/User.php line 449:

$admin_data = array(
            "updated" => time(),
            "created" => time(),
            "last_login" => date("Y-m-d H:i:s"), //
            "login" => "admin",
            "firstname" => "unknown",
            "modify_password" => 0
        );





Original issue reported on code.google.com by mailmatt...@gmail.com on 21 May 2013 at 1:55

This might also be similar to this issue:
https://code.google.com/p/concerto-platform/issues/detail?id=41&can=1#makechange
s

Original comment by mailmatt...@gmail.com on 21 May 2013 at 1:57

v4.0.0.beta4 will contain proper default values.

Original comment by LisPrzem...@gmail.com on 21 May 2013 at 2:15

  • Changed state: Done