1

any solution for this error?

createApplication(\Magento\Framework\App\Http::class); * $bootstrap->run($app); * -------------------------------------------- * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ try { require DIR . '/app/bootstrap.php'; } catch (\Exception $e) { echo << Autoload error {$e->getMessage()} HTML; exit(1); } $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class); $bootstrap->run($app);

7
  • Is it the full content of the error?
    – Luigi T.
    Jan 10, 2019 at 18:55
  • what does full content error mean?
    – sudo55
    Jan 10, 2019 at 19:07
  • The error you are getting, is all there or there is some other info you didn't include?
    – Luigi T.
    Jan 10, 2019 at 19:11
  • yes, this is the complete error. I did not exclude anything.
    – sudo55
    Jan 10, 2019 at 19:13
  • How did you get this error?
    – Luigi T.
    Jan 10, 2019 at 19:19

2 Answers 2

0

It looks like the file is not processed like a PHP file but like a text file. So maybe you should look at your web server settings.

That one is not an error, but the content of the pub/index.php file.

2
  • 1
    thanks, @Luigi I solved this error. Actually my PHP mod was disabled so I enabled it by sudo a2enmod php7.2 then sudo service apache2 restart and now its working fine.
    – sudo55
    Jan 10, 2019 at 19:33
  • Great! Happy for you :)
    – Luigi T.
    Jan 10, 2019 at 19:41
0

Seem PHP is not working properly on your server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.