Results 1 to 8 of 8

Thread: Module Loader - Invalid cache/upload folder

  1. #1
    caldawn77 is offline Member
    Join Date
    Nov 2007
    Posts
    6

    Default Module Loader - Invalid cache/upload folder

    Hi Experts,

    I am a newbie in Sugar, just finished install Sugar in a IIS server, with PHP 5.1.5 and MySQL 5.0.

    Whenever I try using the "Module Loader", it keeps giving me a message, for example "Specified directory '' for zip file 'C:\Inetpub\wwwroot\sugarcrm/cache/upload/EsendexSMS_v0.2.zip' extraction does not exist." right after I click the "UPLOAD" button in the "Install from Local File" tab. Understand that that's because of the "/" and "\". May I know if there is anyway that I can resolve this?

    Please help~


  2. #2
    caldawn77 is offline Member
    Join Date
    Nov 2007
    Posts
    6

    Default Re: Module Loader - Invalid cache/upload folder

    Hi Experts,

    Is there anyone can give some advise??

  3. #3
    HolmesA's Avatar
    HolmesA is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    109

    Default Re: Module Loader - Invalid cache/upload folder

    Can you post the exact message that you are experiencing?

    I am not sure there is a problem because of the slash signs. Windows can process both forward and back slashes properly. You should check the permissions as this is the most probable cause.

    Here are a couple of simple steps to help detect the issue:

    1. put this path 'C:\Inetpub\wwwroot\sugarcrm/cache/upload/ into windows explorer by copy/pasting it. See if you get the folder browsed.

    2. put "'C:\Inetpub\wwwroot\sugarcrm/cache/upload/EsendexSMS_v0.2.zip" into windows explorer by copy/pasting it after you try uploading the file. If it is not there then you should work into the permissions direction.

    Let me know if this helps.

  4. #4
    caldawn77 is offline Member
    Join Date
    Nov 2007
    Posts
    6

    Default Re: Module Loader - Invalid cache/upload folder

    Hi,

    I have checked the permission for the cache/upload, all are allowed "WRITE" to "Internet Guest Account".

    Then error message that I am still getting now is "Specified directory '' for zip file 'C:\Inetpub\wwwroot\sugarcrm/cache/upload/EsendexSMS_v0.2.zip' extraction does not exist.". I am confirm that the file is inside the folder.

    I have done the 2 test that you have mention. It works fine.

  5. #5
    GameboyRMH is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    70

    Default Re: Module Loader - Invalid cache/upload folder

    You could try extracting the ZIP file into custom/modulebuilder/packages/

    Then open the Module Builder, if you can see the package from there just deploy it. I don't know for sure if this will work but it should. If it doesn't work just remove the files you extracted.
    Server: Fedora
    Sugar 5 CE
    Apache 2.2.6
    MySQL 5.0.27

  6. #6
    caldawn77 is offline Member
    Join Date
    Nov 2007
    Posts
    6

    Default Re: Module Loader - Invalid cache/upload folder

    Nope, it does not work. Please HELP~~!!!

  7. #7
    caldawn77 is offline Member
    Join Date
    Nov 2007
    Posts
    6

    Default Re: Module Loader - Invalid cache/upload folder

    Hi Experts,

    Found that the error message actually comes from the zip_utils.php under this include/utils as shown below:
    function unzip_file( $zip_archive, $archive_file, $to_dir ){
    if( !is_dir( $to_dir ) ){
    die( "Specified directory '$to_dir' for zip file '$zip_archive' extraction does not exist." );
    }

    $archive = new PclZip( "$zip_archive" );
    if( $archive->extract( PCLZIP_OPT_BY_NAME, $archive_file,
    PCLZIP_OPT_PATH, $to_dir ) == 0 ){
    die( "Error: " . $archive->errorInfo(true) );
    }
    }

    Guess the $to_dir does not actually hold any value during the execution. Is that normal?

  8. #8
    caldawn77 is offline Member
    Join Date
    Nov 2007
    Posts
    6

    Default Re: Module Loader - Invalid cache/upload folder

    Quote Originally Posted by caldawn77
    Hi Experts,

    Found that the error message actually comes from the zip_utils.php under this include/utils as shown below:
    function unzip_file( $zip_archive, $archive_file, $to_dir ){
    if( !is_dir( $to_dir ) ){
    die( "Specified directory '$to_dir' for zip file '$zip_archive' extraction does not exist." );
    }

    $archive = new PclZip( "$zip_archive" );
    if( $archive->extract( PCLZIP_OPT_BY_NAME, $archive_file,
    PCLZIP_OPT_PATH, $to_dir ) == 0 ){
    die( "Error: " . $archive->errorInfo(true) );
    }
    }

    Guess the $to_dir does not actually hold any value during the execution. Is that normal?
    Besides, this is what I found in Sugar Wiki. http://www.sugarcrm.com/wiki/index.p...=Zip_utils.php

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  3. Replies: 0
    Last Post: 2006-07-03, 09:54 AM

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
  •