cancel
Showing results for 
Search instead for 
Did you mean: 

Error running php 7.2 update on Magento 1.9.2.2

Error running php 7.2 update on Magento 1.9.2.2

Hello. I'm using Magento 1.9.2.2 and trying to run the php 7.2 update. When running I get this error:

./PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2
diff: unrecognized option '--git'
diff: Try `diff --help' for more information.
./PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2: line 2: index: command not found
./PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2: line 3: ---: command not found
./PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2: line 4: +++: command not found
./PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2: line 5: syntax error near unexpected token `('
./PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2: line 5: `@@ -53,6 +53,9 @@ if (defined('COMPILER_INCLUDE_PATH')) {'

 

What do I need to do in order to fix this? I ran all the required updates before running the php 7.2 update. All work fine but the last one.

 

Thanks

 

4 REPLIES 4

Re: Error running php 7.2 update on Magento 1.9.2.2

any luck on this?  i ran into the same issue today.

Re: Error running php 7.2 update on Magento 1.9.2.2

HI @Allegro Consultants @taunnt 

Have you aplied PHP 7.2 patch for magento? 

You can download patch files from below link for Magento 1.9.2.2. 

PHP72-COMPAT-1.9.2.2.zip

I hope it will help you!



Re: Error running php 7.2 update on Magento 1.9.2.2

You need to run this command instead for the PHP 7 patch.

patch -p1 < PATCH-1.9.2.0-1.9.2.4_PHP7-2018-09-13-08-05-20.2_v2

 

Re: Error running php 7.2 update on Magento 1.9.2.2

Thank you very much. All better now.