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);

  • Is it the full content of the error? – Luigi T. Jan 10 at 18:55
  • what does full content error mean? – Ali Ejaz Jan 10 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 at 19:11
  • yes, this is the complete error. I did not exclude anything. – Ali Ejaz Jan 10 at 19:13
  • How did you get this error? – Luigi T. Jan 10 at 19:19

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

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

  • 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. – Ali Ejaz Jan 10 at 19:33
  • Great! Happy for you :) – Luigi T. Jan 10 at 19:41

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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