cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 Error "An error has happened during application run. See exception log for details"

SOLVED

magento 2 Error "An error has happened during application run. See exception log for details"


I have updated to Magento 2 and it seems to be a mistake. The website is as follows.

" An error has happened during application run. See exception log for details."

 

http://203.170.129.6/~ichanged/

 

help me please, Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hi @duangporn_hemvijitraphan,

 

It seems you had open_basedir configured.

Is it possible for you to disable it?

View solution in original post

22 REPLIES 22

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hi @duangporn_hemvijitraphan,

 

Into the Magento directory you'll find /var/log/exception.log. This is the file you should check to try to understand which kind of error you have.

Re: magento 2 Error "An error has happened during application run. See exception log for detail

main.CRITICAL: Exception: Warning: realpath(): open_basedir restriction in effect. File(/var/www/html) is not within the allowed path(s): (/home/ichanged/:/tmp/:/var/tmp/:/usr/local/php56/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/ichanged/domains/i-changed.com/public_html/pub/errors/processor.php on line 304 in /home/ichanged/domains/i-changed.com/public_html/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'realpath(): ope...', '/home/ichanged/...', 304, Array)
#1 /home/ichanged/domains/i-changed.com/public_html/pub/errors/processor.php(304): realpath('/var/www/html')
#2 /home/ichanged/domains/i-changed.com/public_html/pub/errors/processor.php(151): Magento\Framework\Error\Processor->_getIndexDir()
#3 /home/ichanged/domains/i-changed.com/public_html/pub/errors/processorFactory.php(26): Magento\Framework\Error\Processor->__construct(Object(Magento\Framework\App\Response\Http\Interceptor))
#4 /home/ichanged/domains/i-changed.com/public_html/pub/errors/report.php(10): Magento\Framework\Error\ProcessorFactory->createProcessor()
#5 /home/ichanged/domains/i-changed.com/public_html/vendor/magento/framework/App/Http.php(324): require('/home/ichanged/...')
#6 /home/ichanged/domains/i-changed.com/public_html/vendor/magento/framework/App/Http.php(160): Magento\Framework\App\Http->handleGenericReport(Object(Magento\Framework\App\Bootstrap), Object(Exception))
#7 /home/ichanged/domains/i-changed.com/public_html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception))
#8 /home/ichanged/domains/i-changed.com/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#9 {main} [] []

 

 

help me please, Thank you. Smiley Wink

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hi @duangporn_hemvijitraphan,

 

It seems you had open_basedir configured.

Is it possible for you to disable it?

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hi same issue for me,

 

Here's the exception.log:

 

main.CRITICAL: Warning: Use of undefined constant MCRYPT_BLOWFISH - assumed 'MCRYPT_BLOWFISH' (this will throw an Error in a future version of PHP) in public_html/vendor/magento/framework/Encryption/Encryptor.php on line 397 {"exception":"[object] (Exception(code: 0): Warning: Use of undefined constant MCRYPT_BLOWFISH - assumed 'MCRYPT_BLOWFISH' (this will throw an Error in a future version of PHP) in /public_html/vendor/magento/framework/Encryption/Encryptor.php on line 397 at /public_html/vendor/magento/framework/App/ErrorHandler.php:61)"}
 
 
 
Any idea how to revert back to 2.2.5 or fix this update issue with 2.2.6?
 
Thank you!!

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hi @TOOFASTMOTORS,

 

Which version of PHP are you using?

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hi @Damian Culotta

it is version 7.1.22

 

I reverted to a backup and issue solved, but would eventually like to update to 2.2.6

 

Thank you!

Re: magento 2 Error "An error has happened during application run. See exception log for detail

In my case this happens when runing a command as root user which is changes the file permissions.

A simple owner corecction can solve this:

chown -R www-data:www-data /var/www/magentofolder/

 

For me this was worked.

 

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hello,

I've installed Magento 2.3 on my localhost but can't install. I get the same error message.

This is what i found in the logs:

[2019-04-06 23:47:39] main.CRITICAL: Warning: preg_match(): JIT compilation failed: no more memory in /Applications/MAMP/htdocs/MAGENTO2/pub/errors/processor.php on line 598 {"exception":"[object] (Exception(code: 0): Warning: preg_match(): JIT compilation failed: no more memory in /Applications/MAMP/htdocs/MAGENTO2/pub/errors/processor.php on line 598 at /Applications/MAMP/htdocs/MAGENTO2/vendor/magento/framework/App/ErrorHandler.php:61)"} []

 

How do i solve this?

Re: magento 2 Error "An error has happened during application run. See exception log for detail

Hi @louis_tshimanga,

 

Which version of PHP are you using?