Pergunta

Acabei de tentar aplicar PATCH_SUPEE-5994, mas abaixo está a mensagem que recebi.Alguém mais teve esse problema?

bash PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02.sh
Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.
patching file app/code/core/Mage/Authorizenet/controllers/Directpost/PaymentController.php
patching file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php
patching file app/code/core/Mage/Core/Controller/Varien/Router/Standard.php
patching file app/code/core/Mage/Customer/Model/Customer.php
patching file app/code/core/Mage/Dataflow/Model/Convert/Parser/Csv.php
patching file app/code/core/Mage/ImportExport/Model/Export/Adapter/Csv.php
patching file app/code/core/Mage/Install/Controller/Router/Install.php
patching file app/code/core/Mage/Install/etc/config.xml
Hunk #1 FAILED at 48.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Install/etc/config.xml.rej
patching file app/code/core/Mage/Sales/controllers/Recurring/ProfileController.php
patching file downloader/Maged/Model/Connect.php
patching file downloader/Maged/View.php
patching file downloader/template/connect/packages_prepare.phtml
Hunk #1 FAILED at 33.
1 out of 1 hunk FAILED -- saving rejects to file downloader/template/connect/packages_prepare.phtml.rej
patching file downloader/template/messages.phtml
Hunk #1 FAILED at 30.
1 out of 1 hunk FAILED -- saving rejects to file downloader/template/messages.phtml.rej
patching file get.php
patching file lib/PEAR/PEAR/PEAR.php
patching file lib/PEAR/PEAR/PEAR5.php
patching file lib/Varien/Io/File.php
Foi útil?

Solução

Acabei de ter uma falha na instalação do patch porque um desenvolvedor anterior editou get.php por algum motivo que só ele conhece.

Depois de enviar uma cópia não editada do(s) arquivo(s) com problema, no seu caso

  • app/code/core/Mage/Install/etc/config.xml
  • downloader/template/connect/packages_prepare.phtml
  • downloader/template/messages.phtml

tente o processo de patch novamente.

Esta é uma daquelas razões pelas quais nos dizem repetidas vezes NÃO EDITE ARQUIVOS PRINCIPAIS

Outras dicas

Acabei de ter o mesmo problema.Parece que um desenvolvedor anterior removeu o diretório do downloader por motivos de segurança.(no meu caso faltava apenas o mapa do downloader)

O patch primeiro verifica se consegue corrigir tudo.Caso contrário - e neste caso não - o patch falhará.

Para PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02.sh você pode ver na linha 133 "saída 1" por causa da falha.

Então comentei a linha 133 para evitar a saída e o patch foi aplicado com sucesso.

OBSERVAÇÃO:no meu caso, faltava apenas o mapa do downloader.

A solução para instalar corretamente o patch 5994:

1 - Open the patch 5994 file with textedit or notepad.

2 - Search for the word "downloader" in the code.

3 - Change the name of the directory "downloader"  with the real name on your server "downloader_fh0******". 

Exemplo :

change 

downloader/Maged/Model/Connect.php

para downloader_fh0******/Maged/Model/Connect.php
Isto tem sidoen changed recently in order to avoid someone from outside to take control of the directory.

4 - Save your file and upload it to your server.

5 - Apply the patch.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange
scroll top