Try the Demo

Magento Forum

   
How I do to apply a patch to Magento? 
 
Felipe Cardoso Martins
Jr. Member
 
Total Posts:  1
Joined:  2009-10-15
São Paulo, Brasil
 

Hi, I had fixed a patch in the magento cache control… How I can do to apply this patch?

Cheers,

Felipe

 
Magento Community Magento Community
Magento Community
Magento Community
 
egrovesystems
Member
 
Total Posts:  36
Joined:  2012-11-28
 

First of all open up the command prompt (or SSH into your server if your applying the patch remotely). Change the current directory to your Magento store root folder (this is one of ours, you will need to change to suit):

cd /home/www/arrowdesign.co.uk

Just to be safe, run:

ls

To list the current directory structure, it should list files such as index.php, cron.php and get.php as well as directories such as app, skin, var etc. If these are not shown then you are probably in the wrong directory.

Next we need to download the correct patch:

Community Edition 1.4.0.0 through 1.4.1.1
wget http://www.magentocommerce.com/downloads/assets/1.7.0.2/CE_1.4.0.0-1.4.1.1.patch

Community Edition 1.4.2.0
wget http://www.magentocommerce.com/downloads/assets/1.7.0.2/CE_1.4.2.0.patch

Community Edition 1.5.0.0 through 1.7.0.1
wget http://www.magentocommerce.com/downloads/assets/1.7.0.2/CE_1.5.0.0-1.7.0.1.patch

If your system doesn’t have wget on there (i.e. Mac OSX) replace wget with curl -O, so your commands become:

curl -O http://www.magentocommerce.com/downloads/assets/1.7.0.2/CE_1.4.0.0-1.4.1.1.patch
curl -O http://www.magentocommerce.com/downloads/assets/1.7.0.2/CE_1.4.2.0.patch
curl -O http://www.magentocommerce.com/downloads/assets/1.7.0.2/CE_1.5.0.0-1.7.0.1.patch

The above commands download the correct patch file from http://www.magentocommerce.com and store them in the current directory with the name CE_xxx.patch where xxx is the version it applies to.

It’s now time to patch Magento, run the following command (replacing xxx with the version number in your patch):

patch -p0 < CE_xxx.patch

This runs through the patch and applies the security updates to the affected files (lib/Zend/XmlRpc/Response.php and lib/Zend/XmlRpc/Request.php). You can then test the Magento store to ensure everything still works, if you need to you can reverse the patch using the following command:

patch -R -p0 < CE_xxx.patch

Once you are finished you can remove the patch file using the following command:

rm CE_xxx.patch

where xxx is the version it applies to.

 Signature 

Magento Development / Module Prestashop

 
Magento Community Magento Community
Magento Community
Magento Community
 
watts1874
Jr. Member
 
Total Posts:  1
Joined:  2009-06-18
 

This worked for me! Thanks for the advice

 Signature 

The wall mural design community.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Alicemagestore
Member
 
Total Posts:  54
Joined:  2012-12-11
 

I finished it. thanks!

 Signature 

Magento Checkout ($129)
Magento Facebook ($59)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top