Results 1 to 9 of 9

Thread: Still cannot install modules or patches to 4.01a

  1. #1
    chucknb87122 is offline Sugar Community Member
    Join Date
    Mar 2005
    Posts
    55

    Default Still cannot install modules or patches to 4.01a

    Hi,

    I still cannot install modules or patches to 4.01a. I have installed both hotfixes. When I try to install a patch or module I get the following:

    Could not copy file /var/www/html/crm/cache/upload/upgrades/temp/J1C26s/SugarSuite-Patch-4.0.1c/sugar_version.php to /var/www/html/crm/./sugar_version.php

    The problem looks like an extra './' (see above) but I cannot figure out which file has this little extra piece. Please help!

    Thanks

  2. #2
    kushalk is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    12

    Default Re: Still cannot install modules or patches to 4.01a

    It seems your webserver user (apache or nobody) is not able to read or write to the /sugar/cache directory.
    Give the proper permission to /cache dir.

  3. #3
    chucknb87122 is offline Sugar Community Member
    Join Date
    Mar 2005
    Posts
    55

    Default Re: Still cannot install modules or patches to 4.01a

    Hi,

    I do not believe this is a permissions problem as the extra './' appear in the error message. Does anyone know where I might look to remove this. I tried changing the ownership to apache:apache and this did not fix the problem. The error message is:

    Could not copy file /var/www/html/crm/cache/upload/upgrades/temp/ShPg7D/SugarSuite-Patch-4.0.1c/sugar_version.php to /var/www/html/crm/./sugar_version.php

    Notice the extra './' right before sugar_version.php, ie

    ********| right there
    .../crm/./sugar_version.php

    Thanks

  4. #4
    chucknb87122 is offline Sugar Community Member
    Join Date
    Mar 2005
    Posts
    55

    Default Re: Still cannot install modules or patches to 4.01a

    Hi,

    Maybe this will help I get a different message when trying to install a module. Resource module fails at 23% during install:

    23%

    Display Log
    Rebuilding Include Modules...
    Merging application files for modules.ext.php in Ext/Include
    Copying .../patch/vcal_res_server.php to vcal_res_server.php
    Copy /var/www/html/crm/cache/upload//upgrades/temp/UhLHpW/patch/vcal_res_server.php
    Failed to copy /var/www/html/crm/cache/upload/upgrades/temp/UhLHpW/patch/vcal_res_server.php vcal_res_server.php

    Thanks

  5. #5
    gsalami is offline Junior Member
    Join Date
    Mar 2006
    Posts
    1

    Default Re: Still cannot install modules or patches to 4.01a

    i have the same problem!!! anny ideas?

    regards,

    gu

  6. #6
    brown_er is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    10

    Default Re: Still cannot install modules or patches to 4.01a

    Similar problem here with 4.0.1d stops at 23% with the following error:

    Warning: copy(index_login.php): failed to open stream: Permission denied in /home/.fidget/sugarcrm/lightdesigncenter.net/sugarsuite/ModuleInstall/ModuleInstaller.php on line 848
    Failed to copy /home/.fidget/sugarcrm/lightdesigncenter.net/sugarsuite/cache/upload/upgrades/temp/XjbHDk/root/index_login.php index_login.php

    I have tried a variety of modules and get the same reslults with everyone of them.
    Last edited by brown_er; 2006-03-13 at 08:37 PM.

  7. #7
    brown_er is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    10

    Default Re: Still cannot install modules or patches to 4.01a

    I gave up and uninstalled d and went back to 4.0.1c - module loader works fine now.

  8. #8
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Still cannot install modules or patches to 4.01a

    I think the files causing the issue are all expected to be installed in the SugarCRM root directory. The SugarCRM root directory may not have enough permission to the SugarCRM module installer.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  9. #9
    y2chuck is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    84

    Default Re: Still cannot install modules or patches to 4.01a

    there should be a warning that tells you what line it's crapping out in and in which file. I had the same issue at line 84 of /modules/administration/upgradewizard.php

    Line:

    if(!move_uploaded_file($_FILES['upgrade_zip']['tmp_name'], getcwd().'\\'.$sugar_config['upload_dir'].$_FILES['upgrade_zip']['name'])) {

    should have been:

    if(!move_uploaded_file($_FILES['upgrade_zip']['tmp_name'], getcwd().'/'.$sugar_config['upload_dir'].$_FILES['upgrade_zip']['name'])) {


    so the double back-slash gets changed to a single forward slash:

    "getcwd() ' . '\\' , "

    to
    "getcwd()' . '/' "

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
  •