When downloading and running a patch to support Magento PHP 5.4 (Magento-CE-v1.7.0.0-1.7.0.2) from http://www.magentocommerce.com/download , running the script with sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh , we get this error:
$ sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh : command not found_1.12.0.0_v1.sh: line 7: 'ATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: line 9: syntax error near unexpected token `{ 'ATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: line 9: `_check_installed_tools() {
Strange, line 7 of the script is empty (here is the head of the file):
#!/bin/bash # Patch apllying tool template # v0.1.2 # (c) Copyright 2013. Magento Inc. # # DO NOT CHANGE ANY LINE IN THIS FILE. # 1. Check required system tools _check_installed_tools() { local missed=""
We tried downloading on Windows and Mac, on Firefox and Chrome, to eliminate any coding problems caused by the loading process. The patch seems very new - Added Jan 17, 2014
We are launching Magento Community Edition 1.7.0.2
Edit
We tried to run the .sh file using bash , but we get the same answer.
Interestingly, when the click “loads”, Magento shows the .sh source in the browser, so we tried various combinations of the view source, and then saved; copying text from a browser window and saving it to a text file. None of these problems solved the problem, although one of them changed the error message:
$ sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh Checking if patch can be applied/reverted successfully... /usr/bin/patch: **** malformed patch at line 238: ERROR: Patch can't be applied/reverted successfully.
Line 238 is the empty comment line:
+/** + * Abstract helper class for {@link Zend_Pdf_FileParser} that provides the + * data source for parsing. + * + * Concrete subclasses allow for parsing of in-memory, filesystem, and other + * sources through a common API. These subclasses also take care of error + * handling and other mundane tasks.
We also tried step VI mentioned here: set ff unix http://www.magentocommerce.com/boards/viewthread/864518
Then the error changed to:
$ sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh Checking if patch can be applied/reverted successfully... ERROR: Patch can't be applied/reverted successfully. patching file app/code/core/Mage/Catalog/Model/Product.php Hunk #1 FAILED at 1936. 1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Catalog/Model/Product.php.rej patching file app/code/core/Mage/Core/Controller/Varien/Router/Standard.php Hunk #1 FAILED at 43. 1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Core/Controller/Varien/Router/Standard.php.rej patching file app/code/core/Mage/Install/etc/config.xml patching file app/code/core/Zend/Pdf/FileParserDataSource.php