Results 1 to 4 of 4

Thread: Errors when running Update Wizard

  1. #1
    davidhperry is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    12

    Default Errors when running Update Wizard

    I'm currently running 4.0.1a and I'm trying to use the update wizard to move to the latest version. After the wizard uploads the file, it gives the following errors:

    Warning: move_uploaded_file(/home/.jasmine/davidhperry/sites/crm/SugarSuite-Full-4.0.1a\cache/upload/SugarOS-Upgrade-4.0.1-to-4.5.0f.zip) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/.jasmine/davidhperry/sites /crm/SugarSuite-Full-4.0.1a/modules/Administration/UpgradeWizard.php on line 84

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php35ib14' to '/home/.jasmine/davidhperry/sites /crm/SugarSuite-Full-4.0.1a\cache/upload/SugarOS-Upgrade-4.0.1-to-4.5.0f.zip' in /home/.jasmine/davidhperry/sites/crm/SugarSuite-Full-4.0.1a/modules/Administration/UpgradeWizard.php on line 84
    Not valid upload.

    I'm currently running PHP version 4.4.2 (but can upgrade it to 5.1.2) on a Linux box with Apache and MySQL. Please let me know if I need to provide additional info and thanks for the help!

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Errors when running Update Wizard

    More than likely you are fighting a permission problem. Look at your php.ini file and find out what it is using for a tmp upload directory and make sure that your apache process has access to it AND the /cache directory.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    weinerk is offline Junior Member
    Join Date
    Jun 2005
    Posts
    2

    Default Re: Errors when running Update Wizard

    Problem:
    bug in
    /var/www/html/crm/modules/Administration/UpgradeWizard.php


    Explanation:
    See carefully the warning - before \cache/upload there is a backslash instead of forwardslash.
    Warning: move_uploaded_file(/home/.jasmine/davidhperry/sites/crm/SugarSuite-Full-4.0.1a\cache/upload/SugarOS-Upgrade-4.0.1-to-4.5.0f.zip)


    Solution:

    change a line in UpgradeWizard.php

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

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

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Errors when running Update Wizard

    I forgot about that bug in 4.0.1.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

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
  •