Results 1 to 10 of 10

Thread: show user details: mysql error 1054, unknown column name

  1. #1
    wivaku is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default show user details: mysql error 1054, unknown column name

    Running SugarPro 4.5.1g

    When I go to Admin -> User Management I see all the users.
    When I then click on one of the names, I get "empty" screen (just menu at top and on left) and the following error message:

    Error retrieving User list: Query Failed:SELECT users.* FROM users where users.deleted=0 ORDER BY name ASC LIMIT 0,1::MySQL error 1054: Unknown column 'name' in 'order clause'

    Indeed, there is no column "name" in the users table, only username, first_name and last_name.

    Ran the various repair commands from the Repair menu (e.g. Repair Database), but that did not fix it.
    Looked in the forum, found several other 1054 / name issues but they were related to other modules or situations.

    How to fix? Thanks in advance.

  2. #2
    wivaku is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default Re: show user details: mysql error 1054, unknown column name

    Follow up to the original post.
    Interesting:
    if I click on the name I get the error message, however: when I click on the little pencil instead then I see the Edit View just fine.
    So it seems to be specific for the Detail View.

    And to be sure, I went to Basic View + pressed Clear, so no custom view or something like that.
    Last edited by wivaku; 2007-10-26 at 08:33 AM.

  3. #3
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: show user details: mysql error 1054, unknown column name

    What happens if you click the "Email" or "Status" column prior to clicking on a user entry?

    This might be a bug, but if it is, it must have been introduced in 4.5.1g as I have 4.5.1f and I can't get it to happen on that version. Albeit, I noticed that on my version, sorting by the Name column actually sets the order to lastname, not name, which is where the problem is coming from on your end.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  4. #4
    wivaku is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default Re: show user details: mysql error 1054, unknown column name

    This indeed "solves" it. After clicking on the Status column, I can click on the name to get the detailed view.
    Thanks for coming up with this workaround!

  5. #5
    GameboyRMH is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    70

    Default Re: show user details: mysql error 1054, unknown column name

    Whoa, I just had the EXACT SAME PROBLEM in SugarCRM 5 beta 2.

    http://www.sugarcrm.com/forums/showthread.php?t=27735

    Same thing fixed it too, this thread was a life-saver
    Server: Fedora
    Sugar 5 CE
    Apache 2.2.6
    MySQL 5.0.27

  6. #6
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: show user details: mysql error 1054, unknown column name

    It seems to be the problem where in config.php the line

    'db_type' => 'mysql',

    is missing or incorrect.
    Only if this value is set, the filed "name" will be calculated correctly.

  7. #7
    wivaku is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default Re: show user details: mysql error 1054, unknown column name

    Confirmed:
    - this line was not in my config.php
    - after adding this line, the issue disappeared

    edit: I spoke too soon...

    my config.php did have db_type in there:
    'dbconfig' => array (
    'db_host_name' => 'localhost',
    ...
    'db_type' => 'mysql',
    ),

    However, at the moment I am unable to reproduce the issue. Will look into it later.
    Last edited by wivaku; 2007-11-16 at 03:58 PM.

  8. #8
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: show user details: mysql error 1054, unknown column name

    ok, fine.

    this error occurs often in the last time. how did you install ?
    perhaps anyone knows why this unhappy line is empty? I did not find a reason till now.

    hk

  9. #9
    wivaku is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default Re: show user details: mysql error 1054, unknown column name

    the line was in there after all. Sorry about confirming first the line was missing.
    My environment: SUSE (LAMP), ssh access to server, SugarPro, started with 4.0, using regular Sugar patch process, now at 4.5.1g.

  10. #10
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: show user details: mysql error 1054, unknown column name

    Chances are that this is a bug. Like I said in my previous post, I can't duplicate it on 4.5.1f, so it seems that it was likely introduced in patch g, especially given the fact it also happens in 5.0.

    I wouldn't be surprised if it is a bug, as there are a couple of ways to generate the same error message in other modules and they are the result of bugs.

    I haven't had a chance to upgrade my test system to the latest patch yet, but when I do, I'll see if I can dupe the problem and apply the same fix that I applied for other areas, then I'll share the fixed file.

    EDIT: I got a few free minutes and managed to upgrade to 4.5.1h. I cannot duplicate the error, which would seem to indicate the problem was either fixed (haven't reviewed release notes yet) or the problem lies elsewhere.

    Does your system continue to experience the problem after upgrading to 4.5.1h?
    Last edited by Angel; 2007-11-16 at 05:55 PM.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 2007-11-13, 02:51 PM
  2. MySQL error 1054: Unknown column 'user' HELP!
    By tj@estreet.com in forum Help
    Replies: 2
    Last Post: 2007-06-27, 05:44 AM
  3. Huge backups -- normal?
    By Liam in forum Help
    Replies: 5
    Last Post: 2007-05-02, 05:36 AM
  4. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  5. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •