Results 1 to 6 of 6

Thread: Studio error

  1. #1
    glynd is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    51

    Default Studio error

    CE6.3 mysql 5 php5 Ubuntu 11.4

    Trying to change the layout in contacts and when I select the edit or detail view I get this and cannot do anything else.


    Warning: strcmp() expects parameter 1 to be string, array given in /var/www/sugarcrm/modules/ModuleBuilder/parsers/views/GridLayoutMetaDataParser.php on line 224

    Any ideas on fixing this please.

    TIA

    Glyn

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Studio error

    Follow my tips here.
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    glynd is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    51

    Default Re: Studio error

    Thanks Andre for this. In the mean-time I commented out line 224 as per the error, and all seems to be OK again.
    This was added by the look of it, to address bug 10329. Not sure when this was added and if it has been sorted with a later version.

    Cheers
    Glyn

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Studio error

    That is just a warning, it shouldn't stop anything... The code still runs, its just saying that it would rather see a string instead of whatever is being fed to it.

    What was it doing that made it so that you couldnt do anything?

    On a production server you shouldnt even show notices or warnings (or even errors to the screen for that matter) they shoudl all go to a log file.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    glynd is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    51

    Default Re: Studio error

    Hi Kenneth,

    Yes it said it was a warning but it was a show-stopper with no way to continue. I also would expect all warnings to be sent to a log rather than to the screen. Where do I look to change this setting if is indeed a setting?

    TIA
    Glyn

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Studio error

    error_log, log_error and display_errors are the three settings in php.ini that control error logging/displaying.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error shown in studio
    By jeyanth in forum Help
    Replies: 0
    Last Post: 2011-12-06, 04:39 AM
  2. 5.5 Studio Error
    By pgwalsh in forum Help
    Replies: 0
    Last Post: 2009-12-09, 04:55 PM
  3. parse error in Studio
    By veronicakatz in forum Help
    Replies: 0
    Last Post: 2008-10-14, 03:49 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
  •