2015-10-28 32 views
8

Właśnie zastosował supree 6788 łatkę do naszej instalacji Magento 1.9.2.1 jednak podczas wykonywaniaMagento 1.9.2.1 SUPEE-6788 patch - Hunk nie na .htaccess

sh PATCH_SUPEE-6788_CE_1.9.2.1_v1-2015- 10-26-11-38-41.sh

uzyskać następujące: -

15-10-26-11-38-41.sh 
    Checking if patch can be applied/reverted successfully... 
    ERROR: Patch can't be applied/reverted successfully. 

    patching file .htaccess 
    Hunk #1 FAILED at 207. 
    1 out of 1 hunk FAILED -- saving rejects to file .htaccess.rej 
    patching file .htaccess.sample 
    patching file app/code/core/Mage/Admin/Model/Block.php 
    patching file app/code/core/Mage/Admin/Model/Resource/Block.php 
    patching file app/code/core/Mage/Admin/Model/Resource/Block/Collection.php 
    patching file app/code/core/Mage/Admin/Model/Resource/Variable.php 
    patching file app/code/core/Mage/Admin/Model/Resource/Variable/Collection.php 
    patching file app/code/core/Mage/Admin/Model/Variable.php 
    patching file app/code/core/Mage/Admin/etc/config.xml 
    patching file app/code/core/Mage/Admin/sql/admin_setup/upgrade-1.6.1.1-1.6.1.2.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit/Form.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Grid.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit/Form.php 
    patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Grid.php 
    patching file app/code/core/Mage/Adminhtml/controllers/Permissions/BlockController.php 
    patching file app/code/core/Mage/Adminhtml/controllers/Permissions/VariableController.php 
    patching file app/code/core/Mage/Adminhtml/etc/adminhtml.xml 
    patching file app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php 
    patching file app/code/core/Mage/Core/Controller/Front/Action.php 
    patching file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php 
    patching file app/code/core/Mage/Core/Helper/UnserializeArray.php 
    patching file app/code/core/Mage/Core/Model/Email/Template/Filter.php 
    patching file app/code/core/Mage/Core/Model/Resource/Setup.php 
    patching file app/code/core/Mage/Core/etc/config.xml 
    patching file app/code/core/Mage/Core/etc/system.xml 
    patching file app/code/core/Mage/Customer/Block/Account/Changeforgotten.php 
    patching file app/code/core/Mage/Customer/Block/Account/Resetpassword.php 
    patching file app/code/core/Mage/Customer/controllers/AccountController.php 
    patching file app/code/core/Mage/Downloadable/Model/Product/Type.php 
    patching file app/code/core/Mage/Eav/Model/Resource/Attribute/Collection.php 
    patching file app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php 
    patching file app/code/core/Mage/Sales/controllers/DownloadController.php 
    patching file app/code/core/Mage/SalesRule/Model/Resource/Coupon/Collection.php 
    patching file app/design/adminhtml/default/default/layout/admin.xml 
    patching file app/design/frontend/base/default/layout/customer.xml 
    patching file app/design/frontend/base/default/template/customer/form/register.phtml 
    patching file app/design/frontend/base/default/template/customer/form/resetforgottenpassword.phtml 
    patching file app/design/frontend/base/default/template/persistent/customer/form/register.phtml 
    patching file app/design/frontend/default/iphone/layout/customer.xml 
    patching file app/design/frontend/default/modern/layout/customer.xml 
    patching file app/design/frontend/rwd/default/layout/customer.xml 
    patching file app/design/frontend/rwd/default/template/customer/form/resetforgottenpassword.phtml 
    patching file app/design/frontend/rwd/default/template/persistent/customer/form/register.phtml 
    patching file cron.php 
    The next patch would delete the file dev/tests/functional/.htaccess, 
    which does not exist! Assume -R? [n] 
    Apply anyway? [n] 
    Skipping patch. 
    1 out of 1 hunk ignored 
    patching file errors/processor.php 
    patching file lib/Unserialize/Parser.php 
    patching file lib/Unserialize/Reader/Arr.php 
    patching file lib/Unserialize/Reader/ArrKey.php 
    patching file lib/Unserialize/Reader/ArrValue.php 
    patching file lib/Unserialize/Reader/Bool.php 
    patching file lib/Unserialize/Reader/Dbl.php 
    patching file lib/Unserialize/Reader/Int.php 
    patching file lib/Unserialize/Reader/Str.php 
    patching file lib/Varien/Data/Collection/Db.php 
    patching file lib/Zend/Xml/Security.php 

biorę go poprawka nie została zastosowana poprawnie?

+0

tak, to nie miało zastosowania –

+0

Jakieś pomysły, dlaczego tak się nie stało? –

+0

Musisz użyć plików .htaccess z instalacji podstawowej, prawdopodobnie edytowałeś te –

Odpowiedz

7

Dzieje się tak z powodu edytowania plików .htaccess.

1) Zrób kopię zapasową pliku .htaccess

2) zastąpić plik .htaccess z danymi w .htaccess.sample (pobierz plik .htaccess.sample ze swojego magazynie Magento zainstalować jeśli don” t go mieć)

3) Zastosuj poprawkę

4) kopie kopii zapasowej w .htaccess

5) dodać linie cron.php, które zostały dodane do pliku .htaccess przez patch.

+0

Skąd można pobrać nieedytowany plik podstawowy htaccess? ponieważ nie mam oryginału, a plik do pobrania magento jest teraz w wersji 1.9.2.2. –

+2

Jeśli nie masz przykładowego, musisz to zrobić tutaj https://www.magentocommerce.com/download -> release archive. Również otrzymywałem ten sam błąd tylko dlatego, że po wklejeniu go na końcu pojawiła się dodatkowa przerwa w linii. –

+0

Witaj, ive zastąpiony przez podstawowy plik, ale wydaje się, że są inne problemy, zrzucanie danych wyjściowych poniżej –

4

Jego bardzo prosty

Krok 1: Kopia zapasowa .htaccess i .htaccess.sample

Krok 2: Prześlij oryginalne .htaccess i .htaccess.sample plików jak na swoje wersji Magento.

Krok 3: Wykonanie łata

1

add następnie cron rzeczy ręcznie do htaccess i usunąć te rzeczy z patch partii.

5

Użycie .htaccess.sample nie będzie działać. W magazynie magento install, .htaccess i .htaccess.sample mają różne rozmiary. Musisz użyć magazynu magento .htaccess dla swojej wersji. Po załadowaniu wersji magazynowej można zastosować poprawkę, a następnie po prostu dodać tag plików od dołu .htaccess do swojej wersji .htaccess.

0

Może to pomóc

próby usunięcia tego folderu /lib/unserialize następnie zastosować.