Results 1 to 2 of 2

Thread: Getting this error when running SugarCRM through hosting solution.

  1. #1
    anicolais is offline Senior Member
    Join Date
    Nov 2009
    Posts
    99

    Default Getting this error when running SugarCRM through hosting solution.

    Warning: chmod() [function.chmod]: Operation not permitted in /usr/home/web/users/a0018831/html/SugarCRM/include/utils/sugar_file_utils.php on line 196

    can i just comment out this entire section of code from the sugar_file_utils.php or does this code serve a purpose?

    **
    * sugar_chmod
    * Attempts to change the permission of the specified filename to the mode value specified in the
    * default_permissions configuration; otherwise, it will use the mode value.
    *
    * @param string filename - Path to the file
    * @param int $mode The integer value of the permissions mode to set the created directory to
    * @return boolean Returns TRUE on success or FALSE on failure.
    */
    function sugar_chmod($filename, $mode=null) {
    if ( !is_int($mode) )
    $mode = (int) $mode;
    if(!is_windows()){
    if(!isset($mode)){
    $mode = get_mode('file_mode', $mode);
    }
    if(isset($mode) && $mode > 0){
    return chmod($filename, $mode);
    }else{
    return false;
    }
    }
    return true;
    }

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Getting this error when running SugarCRM through hosting solution.

    You should speak to your hosting company ... sounds like they deprecate chmod

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hosting SugarCRM: Professional with a 3rd Party Linux Hosting Company
    By MikeAtJenark in forum General Discussion
    Replies: 1
    Last Post: 2009-03-20, 11:56 AM
  2. Error Installing 5.2 on 1and1 Managed Hosting Database error
    By nyichiban in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2009-03-04, 04:31 PM
  3. Local Server Running SugarCRM, Pulic Server Running Mambo
    By C12H22O11 in forum Web Self Service Portal
    Replies: 1
    Last Post: 2007-03-09, 04:57 PM
  4. LDAP error in 4.5.0h (with solution)
    By juanma in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2007-03-08, 03:19 PM
  5. Running Sugarcrm for Microsoft in web hosting
    By albatroz in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2006-10-06, 06:05 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
  •