cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error when installing SUPEE-5994

Re: Syntax error when installing SUPEE-5994

Arjen - I ran it with this command as per the magento documentation:

 

sh PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02.sh

 

Why would renaming the file make any difference?

Re: Syntax error when installing SUPEE-5994

I've seen cases that there were issues with underscores and dashes. Maybe that would have been the error. Did you try the command with sudo? That will onlywork if you have admin permissions.

 

By thw way, I would suggest running the patch locally or on a testing environment and migrate it to your live environment when you're sure it causes no problems to your webshop.

If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this

Re: Syntax error when installing SUPEE-5994

Arjen 

 

If there had been a problem with underscores and dashes then it wouldn't have run at all. Instead it would have returned a command not found error instead of a syntax error in the script.

 

If it failed with a permission error - then sudo might have been the solution. But that's not what's happening.

 

You make a good point about running the patch on a test environment. However the script fails on a test version of the site which is lcoated on a separate sub-domain on the server.

Re: Syntax error when installing SUPEE-5994

Here's what worked for me (linux)

 

1 - open the .sh patch in your text editor

2 - change line endings to UNIX

3 - change encoding to UTF-8

4 - save file (sometimes I had to save & re-open - using Panic's Coda 2.5 text editor)

5 - upload to Magento root & run via sh or bash

 

example

 

sh PATCH_SUPEE-6788_CE_1.8.0.0_v1-2015-10-26-11-59-56.sh

 

(or whatever your file name is)