0

magento 2.2.4 was working absolutely fine with PHP 7.0 and when i upgrade PHP to 7.1 than the frontend is working fine but the backend is giving me below error.

Can anyone please guide me if PHP 7.1 is compatible with magento 2.2.4? and if its compatible than how i can resolve below issue?

magento 2.2.4 backend issue with php 7.1

thank you

asked May 18, 2018 at 23:20

2 Answers 2

0

If you take a look at php support you will see it is supported. My advice would be to look at your web server logs and check the magento logs to see exactly what's causing the 500 error

answered May 19, 2018 at 3:43
6
  • I did the same but webserver logs saying simply http 500 error and magento logs saying nothing at all Commented May 19, 2018 at 3:49
  • Do you have mod_version enabled in apache? Commented May 19, 2018 at 3:52
  • Yes. It is enabled since i am using php 7.0 Commented May 19, 2018 at 3:53
  • The weird thing is. Its only giving error when i am try to access backend admin. But frontend is working absolutely fine.... Commented May 19, 2018 at 3:54
  • I presume this is not production so stackoverflow.com/questions/34629697/… may help Commented May 19, 2018 at 3:58
0

i found the issue under pub/error_log file and it was below

[19-May-2018 12:10:43 UTC] PHP Fatal error: The file public_html/app/code/xyzmodule/Core/Model/Action.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later. Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0

this issue is with third party module provider and we ask them for the fixed Action.php file which should be compatible with PHP 7.1

apologies for the trouble. This question should be close now.

thank you

answered May 19, 2018 at 12:23
2
  • Ahaa ionCube Encoder - i faced that issue too :) for PHP 5.4 and 5.6. Commented May 19, 2018 at 12:47
  • yes. it took my whole day to find that out :( Commented May 19, 2018 at 16:14

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.