Results 1 to 8 of 8

Thread: Error when clicking save on "System Settings"

  1. #1
    syvertsonj is offline Member
    Join Date
    Jun 2004
    Posts
    5

    Default Error when clicking save on "System Settings"

    Hello, I have installed and am running 4.5.1b
    I am running version 4.4.6 of php with mysql at 4.1.22-standard and am getting the following error messages when I press "save" on the System settings screen.
    What should I look for?

    Also, what is the "PHP Allow call time pass reference" and how do I change it. Can I change this in .htaccess file?

    Thanks,

    Jon
    =================================
    Warning: fopen(config_override.php) [function.fopen]: failed to open stream: Permission denied in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 117

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 118

    Warning: fclose(): supplied argument is not a valid stream resource in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 120

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: Error when clicking save on "System Settings"

    Quote Originally Posted by syvertsonj
    Hello, I have installed and am running 4.5.1b
    I am running version 4.4.6 of php with mysql at 4.1.22-standard and am getting the following error messages when I press "save" on the System settings screen.
    What should I look for?

    Also, what is the "PHP Allow call time pass reference" and how do I change it. Can I change this in .htaccess file?

    Thanks,

    Jon
    =================================
    Warning: fopen(config_override.php) [function.fopen]: failed to open stream: Permission denied in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 117

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 118

    Warning: fclose(): supplied argument is not a valid stream resource in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 120
    Either file is missing or permissions aren't set properly for apache user.

  3. #3
    davecampbell is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    31

    Default Re: Error when clicking save on "System Settings"

    Was this problem ever solved?

    I'm having the same symptoms in a hosted environment, and all the files are 777.

  4. #4
    agcilantro is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    45

    Default Re: Error when clicking save on "System Settings"

    Quote Originally Posted by davecampbell
    Was this problem ever solved?

    I'm having the same symptoms in a hosted environment, and all the files are 777.
    I'm having the same problem after installation in a hosted environment. Here is the message I get when I try to upgrade:

    File Issues:
    File Permissions All Files Writable


    Database Issues:
    Database Privileges All Privileges Available


    Server Settings Check:
    Detected Settings Show Detected Settings
    Minimum PHP Version Unsupported PHP Version Installed: ( ver 4.4.7 )
    ]XML Parsing OK
    cURL Module OK
    MBStrings Module OK
    IMAP Module OK
    PHP Setting: Safe Mode OK
    PHP Setting: Call Time Pass By Reference Allow Call Time Pass Reference is On (this should be set to Off in php.ini)
    PHP Setting: Memory Limit OK (Unlimited)
    MBStrings mbstring.func_overload Parameter
    Location of php.ini /usr/local/lib/php.ini

  5. #5
    MilSp3c is offline Sugar Community Member
    Join Date
    Apr 2007
    Location
    Fort Lauderdale Florida
    Posts
    65

    Default Re: Error when clicking save on "System Settings"

    Quote Originally Posted by agcilantro
    I'm having the same problem after installation in a hosted environment. Here is the message I get when I try to upgrade:


    PHP Setting: Call Time Pass By Reference Allow Call Time Pass Reference is On (this should be set to Off in php.ini)
    PHP Setting: Memory Limit OK (Unlimited)
    MBStrings mbstring.func_overload Parameter
    Location of php.ini /usr/local/lib/php.ini
    Please edit the /usr/local/lib/php.ini and do a search for "eference":

    vi /usr/local/lib/php.ini
    type: /eference [enter]

    And it should bring you to the line, change it from On to Off.

    If you don't have access, please contact your hosting provider.

  6. #6
    agcilantro is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    45

    Default Re: Error when clicking save on "System Settings"

    The php.ini file is very small, and there is no procedure about call time pass by reference. What is the exact call that I need to put in and set to off?

    Thanks,

  7. #7
    eli
    eli is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    10

    Default Re: Error when clicking save on "System Settings"

    I modified the allow_call_time_pass_reference from On to Off and it did not resolve the issue above. I have found that this file does not exist in the root SugarCRM folder. I copied the file from another installation and received the same behavior.

    nano /usr/local/lib/php.ini

    allow_call_time_pass_reference = Off

  8. #8
    eli
    eli is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    10

    Default Re: Error when clicking save on "System Settings"

    Warning: fopen(config_override.php) [function.fopen]: failed to open stream: Permission denied in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 117

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 118

    Warning: fclose(): supplied argument is not a valid stream resource in /home/mwsport/public_html/sugar/modules/Configurator/Configurator.php on line 120
    I found in the modules/Configurator/Configurator.php that it looks for the config_override.php if it does not exist it creates it. So the permission denied error is probably because the file does not exist and it cannot be created because of permissions on your "sugar" folder or the file exists but is not writable. Either way it is a permissions error.

    If you are familiar with putty use it to gain shell access to your server and modify the permissions to allow that file or folder to be writable (note the permissions before you change them - you may want to return the permissions to their prior state after you modify your system settings).

    I made the folder writable updated my settings then returned the folder to the permissions it had before.

Thread Information

Users Browsing this Thread

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

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
  •