Magento Expert Forum - Improve your Magento experience

Results 1 to 10 of 10

How to upgrade magento to Magento 1.8.0.0?

  1. #1
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    261
    Thanks
    22
    Thanked 42 Times in 34 Posts

    Default How to upgrade magento to Magento 1.8.0.0?

    Magento Community Edition version 1.8.0.0 was released on September 25, 2013. Its highlights, as listed in the release notes, include:

    • Major overhaul of tax calculation formulas, correction of rounding errors, and additional assistance with configuration.
    • Optimized cache adapters for single-server systems.
    • Upgraded Redis cache adapters for multi-server systems. (To set up and use Redis with Magento, please contact our support team and we can assist you. This can only be set up on SIP400 or higher plans.)
    • Eliminated many types of database deadlocks.


    So far, upgrades from 1.7.0.2 to 1.8.0.0 have been very quick compared to other earlier upgrades and, for the most part, have gone smoothly (there have been a few minor issues I will highlight later). Upgrades from other Magento versions to 1.8.0.0 do take longer (especially 1.5.x to 1.6.x) as they involve a large amount of database changes.

    At Nexcess, we perform upgrades via the command line. It is goes more quickly and we can better see what is happening should anything go wrong. The following outlines two different methods to upgrade to the latest version of Magento (from version 1.4.2.0 or later) using the command line tools.

    Please note If you are on a version earlier than 1.4.2.0, you will need to first upgrade using the “pear” installer. For more on that, please see the post about Upgrading to Magento 1.5.0.1.

    First and foremost, before beginning using either method, always create a backup of both your database and files. It’s also highly recommend to first go through the upgrade process on a dev site (an exact copy of your live site using a copy of the database). That way you can work out any issues that come up, take note of them, and run the upgrade on the live site much more seamlessly.

    Two other preliminary steps we recommend are: Switching caching storage to files in your Magento local.xml file and truncating logs tables in the Magento database (to make the database as lean and optimized as possible pre-upgrade).

    Method 1: Upgrade using mage tool



    With upgrades from 1.4.2.0+, you can use the “mage” tool to upgrade. For help with specifics on the mage tool, you can always type “./mage help” to see a list of commands, and “./mage help command” to see help for a specific command.
    After you’ve created backups, first you initialize the new Magento Connect registry and channel:

    Code:
    ./mage mage-setup
    Next run the following to set preferred set to stable:

    Code:
    ./mage config-set preferred_state stable
    Then you need to sync the old Magento Connect registry – the core and community extensions you already have – with the new 2.0 registry.

    Code:
    ./mage sync
    You should hopefully see a list of all of your installed extensions, including your third-party extensions. As we move to the next step, note that the syntax we use will upgrade everything we have installed in the channel. So if your extension developer released a new version to match the new version of Magento, it will get upgraded as well. Also note that for some reason, we have to –force the upgrade, or else it won’t work.

    Code:
    ./mage upgrade-all --force
    Once this is done, I highly recommend restricting access to your site to your own IP address. This is because that the first hit to your page will trigger the database upgrade. You want this process to go uninterrupted. You can do this in the .htaccess file by commenting out the default Access rules and putting in some temporary ones (don’t forget to change this back once you’re done)

    Code:
    #Order allow,deny
    #Allow from all
    Order deny,allow
    Deny from all
    Allow from 192.168.1.1
    1. Finally, open your site in your browser to trigger the database upgrade, and fix any errors that pop up. If you are upgrading from version 1.7.0.2 to 1.8.0.0, the database upgrade should go quite quickly. If you are upgrading from an earlier version to 1.8.0.0, expect it to take a few hours for this portion of the upgrade to complete. You may get errors along the way and the upgrade will “stall”. The first thing to try is to clear cache and sessions and refresh your site. If trying this once or twice doesn’t trigger the upgrade once again – the site will appear to be trying to load – then view the error report under var/reports and go from there. Other errors can show up in var/log/system.log or in the site PHP-FPM or Apache logs. Here is where you may need the assistance of a developer if you’re unable to get past errors thrown during the process. These errors can be for many reasons including: database integrity issues, modified Magento core files, and modifying/using the default Magento theme rather than setting up a separate custom theme.
    2. If the database upgrade completes successfully, you can now enjoy the new features and improved speed of the latest Magento Community offering.


    Method 2: Upgrade using file copy



    After creating backups, create a separate directory on your account and call it what you like, eg: upgradeFiles. Clear Magento cache.
    From within this directory, download the tar.gz file for Magento 1.8. Here is a one-liner to grab it from their site:

    Code:
    export mageup_ver=1.8.0.0 && wget http://www.magentocommerce.com/downloads/assets/${mageup_ver}/magento-${mageup_ver}.tar.gz
    Extract the directory:

    Code:
    tar xfz magento-1.8.0.0.tar.gz
    Copy upgrade version files over to your site. From within your Magento app document root, run:

    Code:
    cp -aR upgradeFiles/magento/* .
    1. Clear Magento cache once again.
    2. Follow Step 5 under Method 1 for disabling access to your site via .htaccess – to all but your IP.
    3. Follow Steps 6 and 7 above to trigger and complete the database upgrade portion of the site.


    Which one to use: Method 1 or Method 2?



    Method 2 allows you to have control over to which version you are upgrading. Method 1 will only allow you to upgrade to the latest stable version, which is currently 1.8.0.0. If you want to upgrade incrementally rather than straight to version 1.8.0.0 you would need to go with Method

    The other advantage of Method 2 is that it allows you to see more clearly which files are being updated, and Magento core files that have been modified will be replaced with the stock files for the upgraded version.

    As mentioned, upgrades from version 1.7 to 1.8 have gone quickly. The main issues that I’ve noticed are the following:

    1. Extensions that are incompatible with version 1.8 – this should be checked for all extensions before upgrading.
    2. Core_sessions errors. This can be resolved by setting sessions to use files, and clearing cache before beginning.
    3. Some sites had issues with the ‘Place Order’ or ‘Order Submit’ button not working in their checkout. The reason for this varied but was usually due to a template or checkout module that was incompatible with version 1.8.


    The reason for the ‘Place Order’ or ‘Order Submit’ button not working varied but was usually due to a template or checkout module that was incompatible with version 1.8. To fix this ussue, you will need to edit app/design/frontend/default/custom_theme_name/template/checkout/onepage/review/info.phtml in your custom theme. There is a bit of javascript that was changed at the end of the file. The code below shows you the code you will want to update to make your ‘Place Order’ or ‘Order Submit’ button work again.

    Around line 79 in Magento 1.7.0.2

    HTML Code:
    <script type="text/javascript">
    //<![CDATA[
        review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
    //]]>
    </script>
    Around line 79 in Magento 1.8.0.0

    HTML Code:
    <script type="text/javascript">
    //<![CDATA[
        review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
    //]]>
    </script>

    View more threads in the same category:


  2. #2
    Junior Member Ocodewire's Avatar
    Join Date
    Jan 2014
    Location
    India
    Posts
    244
    Thanks
    10
    Thanked 16 Times in 15 Posts

    Default

    Great!! As well you can use ocodewire Magento upgrade solution. It is easy to install & if you need a technical support help so its developer help you frequently on any issue. http://magento.ocodewire.com/magento...n-upgrade.html

  3. #3
    Junior Member
    Join Date
    Jun 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to upgrade magento to Magento 1 8 0 0

    Hi all,
    we had problems on configuring files:
    "db.php" and "databases.php".
    After upgrade we were smashing this files and we shouldnt.

    After that everything works.

  4. #4
    Junior Member alex118's Avatar
    Join Date
    Nov 2014
    Posts
    521
    Thanks
    55
    Thanked 57 Times in 49 Posts

    Default

    At this time, dev can upgrade magento more easily via Magento upgrade service. It supports to migrate store data between two versions of Mag, even from Mag 1.x to 2.x.
    Make your process simple.

  5. #5
    New member
    Join Date
    Feb 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Call Now @0889-004-5686 | Bulk Email Provider In Delhi/NCR, bulk email service provider Delhi, bulk sms providers Delhi, Bulk Email Provider Delhi.

  6. #6
    New member
    Join Date
    Nov 2016
    Location
    https://t.me/pump_upp
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great!! As well you can use ocodewire Magento upgrade solution.

  7. #7
    Junior Member fay_khattak's Avatar
    Join Date
    Jan 2016
    Location
    Karachi, Pakistan
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Great article. I have also written a nice tutorial which explains to upgrade any Magento 1.x version. Have a look at this too:

    https://magenticians.com/upgrade-magento-1-7-to-1-9/

  8. #8
    Senior Member
    Join Date
    Aug 2018
    Posts
    107
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default

    Is the re-implementing of my theme significant on 2.0? Or, should it just work. If it is significant work, I may consider moving to 1.9 as a step to cleanup my theming, modified core files, etc. since the developer created somewhat of a mess. – MarkE Jan 26 '17 at 4:30
    Migration take only data from Magento 1 to Magneto 2. – Dhiren Vasoya Jan 26 '17 at 4:48
    I see, I think that I understand that to mean if I migrate from Magento 1 to Magento 2 it is a data-only migration, I would be starting from scratch with extensions, themes, etc. so it is a safe/easy upgrade. Correct? – MarkE Jan 26 '17 at 5:25

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
  •