Results 1 to 6 of 6

Thread: Javacript errors

  1. #1
    iwinchell is offline Member
    Join Date
    Feb 2010
    Posts
    8

    Default Javacript errors

    These are the errors i get specifically on the meeting page:

    Message: Object expected
    Line: 35
    Char: 1
    Code: 0
    URI: http:///sugar/include/javascript/jsc....js?s=5.5.0&c=


    Message: Object doesn't support this property or method
    Line: 37
    Char: 1
    Code: 0
    URI: http:///sugar/include/javascript/jsc....js?s=5.5.0&c=


    Message: Object doesn't support this property or method
    Line: 35
    Char: 1
    Code: 0
    URI: http:///sugar/modules/Meetings/jscla....js?s=5.5.0&c=


    Message: Object doesn't support this property or method
    Line: 114
    Char: 33
    Code: 0
    URI: http:///sugar/include/javascript/jsc....js?s=5.5.0&c=

    The issue here is simple, on the meetings page if i view and then edit a meeting, and say change the status from planned to held, then save, is seems to save but does not actually save the change, in other word it does something and returns me to the list of meetings, however if you go into that same meeting it is not updated properly, in my example the meeting would still say planned and not held. This does not happen on other pages, if i update something on say contacts and save it works fine. I have thought it was permissions on a file or something because thats what it tends to be, but im not sure where they would be if it is since I've been through the folders again and again. If anyone has any idea of exactly what folders or files i should be looking at i would be glad to go back and check or any other ideas.

    Thanks

  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: Javacript errors

    It seems you are using IE.
    Use Firefox with Firebug enabled. Enable tabs Console and Javascript on Firebug.
    Access this page using Firefox, hopefully you will see a red error message at the right bottom corner of Firefox page.
    Open the red error message and make a print screen.
    Let us know the error.

    Cheers
    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
    iwinchell is offline Member
    Join Date
    Feb 2010
    Posts
    8

    Default Re: Javacript errors

    Module is not defined
    [Break on this error] langlite=Module("langlite","0.3.7",fun...){publ.in it=function(){this.libs={};}
    jsclas....5.0&c= (line 35)
    SugarClass.inherit is not a function
    [Break on this error] SugarClass.inherit("SugarVCalClient","...ction SugarVCalClient(){this.init();}
    jsclas....5.0&c= (line 37)
    SugarClass.inherit is not a function
    [Break on this error] SugarClass.inherit("SugarWidgetListVie...n SugarWidgetListView(){this.init();}
    jsclas....5.0&c= (line 35)
    this.init is not a function
    [Break on this error] {GLOBAL_REGISTRY.container=this;this.init(root_div );}

    this is what i get, i go to meetings, select a meeting to view, hit edit, thats when it kicks these error back too me. this info was from firebug, i am almost sure it is a permissions thing, this is the only page its doing it on, and if you hit the save and continue button it works fine, save and updates the meetings with whatever changes are made, but if you hit the save button, its acts like its working, does everything this type of script is supposed to do except the actual saving of the changes made.

    Thank you for your time. Any help is appreciated.

  4. #4
    iwinchell is offline Member
    Join Date
    Feb 2010
    Posts
    8

    Default Re: Javacript errors

    Ok so again it was a permissions issue that had nothing to due with saving anything but rather with not having correct permissions on the init.js file, i believe. /include/jsolait/ set the permissions correctly in there and in /include/jsolait/lib/ . once this was done save functions seems to be working correctly. Just thought id post my fix in case anybody else has these problems, so far all my problem have been more or less permissions errors but it hard to find the files that are the ones with issues once i do though it always seem to fix my problems, sorry for posting, without fail though i always find the answer after i post, i look for these issues for a couple days before posting, and nothing, once i post it hits me like a ton of bricks man. Thank you.

  5. #5
    knoop is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    79

    Default Re: Javacript errors

    You say that you changed they permissions... On what files exactly and what rights did you gave these files?

  6. #6
    rippleminder is offline Member
    Join Date
    Apr 2011
    Posts
    6

    Default Re: Javacript errors

    Quote Originally Posted by knoop View Post
    You say that you changed they permissions... On what files exactly and what rights did you gave these files?
    make sure you have at least 644 on the files and 755 on the directories of

    include/jsolait/

    i have discovered than when you run the admin js repair utilities (not sure which one)

    Rebuild Javascript Languages
    Rebuild JS Compressed Files
    Rebuild JS Grouping Files
    Rebuild Minified JS Files
    Repair JS Files

    certain .js files for example here init.js get re-created in various include/ folders with insufficient permissions

    for example my include/jsolait/init.js and my include/SubPanel/SubPanelTiles.js had 640 not 644

    hence various include *.js files do not load on browser demand and hence the series of js errors in firebug

    also suspicious of jssource and jscalendar directories having similar 640's when 644 needed

    so the larger problem here is the admin js repair/rebuild scripts are not re-recreating the *.js files with sufficient permissions, and the workaround is every time you run them you also need to re-set permissions to the contents of include (and jssource and jscalendar) to at a minimum 644 and 755

    also see http://www.sugarcrm.com/kb/tag/permissions/
    Last edited by rippleminder; 2011-04-21 at 07:18 PM. Reason: typo

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New PHP == Errors
    By wdroush in forum Help
    Replies: 0
    Last Post: 2010-01-19, 08:00 PM
  2. Errors Installing Community. Data base creation errors
    By alcamie in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2009-07-17, 03:56 AM
  3. errors
    By janislanka in forum General Discussion
    Replies: 1
    Last Post: 2005-12-03, 03:00 AM
  4. Javacript and simple quotes
    By Vince in forum Developer Help
    Replies: 0
    Last Post: 2004-11-30, 08:10 AM

Tags for this Thread

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
  •