ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

MSM log-out problems after moving to a new server

May 20, 2010 6:12pm

Subscribe [4]
  • #1 / May 20, 2010 6:12pm

    John Geddes

    5 posts

    I’m in the process of moving my EE install to another server.  After doing so, almost everything seems to work, but when I log out of the admin I get a MySQL error.  I’ve got MSM installed, and I can tell that my database expects a site ID, but the MySQL code being passed doesn’t have that. 

    Its almost like the admin doesn’t think I have MSM, or at least the log-out function doesn’t know it.

    MSM does seem to work fine, as I can change to different sites, but I just can’t seem to be able to log out of the admin.

    Thanks.

  • #2 / May 20, 2010 7:33pm

    Brandon Jones

    5500 posts

    Hi and welcome to the forums, jgeddes!

    Can you verify the version and build of EE and MSM you’re using? What specifically is the full MySQL error?

  • #3 / May 21, 2010 10:28am

    John Geddes

    5 posts

    Sorry Brandon, I should have put that in the first post.

    Build: 1.6.8

    MySQL ERROR:

    Error Number: 1366

    Description: Incorrect integer value: ‘’ for column ‘id’ at row 1

    Query: INSERT INTO `exp_cp_log` (`id`, `member_id`, `username`, `ip_address`, `act_date`, `action`, `site_id`) VALUES (’‘, ‘1’, ‘administrator’, ‘10.10.1.10’, ‘1274466393’, ‘Logged out’, ‘1’)


    My MySQL table has a column for Site, but the query doesn’t include that column.  It’s like the log-out function doesn’t know that I have MSM.

  • #4 / May 21, 2010 4:32pm

    Sue Crocker

    26054 posts

    Can you go into the Admin ›  Utilities ›  SQL Manager ›  Database Query Form and query for:

    describe exp_cp_log

    what is the value for id?

  • #5 / May 21, 2010 5:25pm

    John Geddes

    5 posts

    mysql> describe exp_cp_log;
    +------------+------------------+------+-----+---------+----------------+
    | Field      | Type             | Null | Key | Default | Extra          |
    +------------+------------------+------+-----+---------+----------------+
    | id         | int(10)          | NO   | PRI | NULL    | auto_increment |
    | site_id    | int(4) unsigned  | NO   | MUL | 1       |                |
    | member_id  | int(10) unsigned | NO   |     | NULL    |                |
    | username   | varchar(32)      | NO   |     | NULL    |                |
    | ip_address | varchar(16)      | NO   |     | 0       |                |
    | act_date   | int(10)          | NO   |     | NULL    |                |
    | action     | varchar(200)     | NO   |     | NULL    |                |
    +------------+------------------+------+-----+---------+----------------+
    7 rows in set (0.03 sec)
  • #6 / May 21, 2010 7:20pm

    Brandon Jones

    5500 posts

    jgeddes,

    I suspect the issue is that your new server is running MySQL in ‘strict’ mode. Please contact your host (for the new server) and confirm that’s the case, and if so, ask that they disable strict mode. Keep us posted.

  • #7 / May 27, 2010 2:48pm

    John Geddes

    5 posts

    Thanks Brandon, that did it!  Sorry for the late reply.

  • #8 / May 27, 2010 3:51pm

    Ingmar

    29245 posts

    Glad to see you’re all set. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases