cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove exception error log messages from browser?

How to remove exception error log messages from browser?

My web browser currently displays a long error log. How do I remove this? I'm also facing a 500 error page. Is this why or did I enable something to trigger this? At first I thought it was because of app/bootstrap.php but I commented out this line. 

#ini_set('display_errors', 1);
So I don't think that is it. 
error.PNG

 

24 REPLIES 24

Re: How to remove exception error log messages from browser?

Hello @kanchi777k3aa3 

 

The exception log comes for many reasons. please roll back your last code changes or remove the extension which you have installed last time.

 

Is the problem solved? Click Accept as Solution! & Click Kudos

Re: How to remove exception error log messages from browser?

Hi @kanchi777k3aa3 

Are you running Magento in developer mode? If yes you may switch to production mode and check the difference.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: How to remove exception error log messages from browser?

Hi @Mukesh Tiwari 

 

When I try to go into production mode, the process gets killed so I haven't been able to.

Re: How to remove exception error log messages from browser?

@kanchi777k3aa3 Can you share screenshot of error which you get on switching to production mode?

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: How to remove exception error log messages from browser?

@Mukesh Tiwari 

Usually when I try to switch to production, it would make it past compilation and then gets killed. However, this time it gets killed early off. 

error.jpg

 

 

[magento_user@sciencell-magento-production html]$ bin/magento deploy:mode:set production
Enabling maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Disabling maintenance mode
Command returned non-zero exit code:
`/usr/bin/php -f /var/www/sciencelltestsite.com/html/bin/magento setup:di:compile`[magento_user@sciencell-magento-production html]$ bin/magento setup:di:compile
Compilation was started.
App action list generation... 8/8 [=============] 100% 1 min 324.0 MiB
Generated code and dependency injection configuration successfully.
[magento_user@sciencell-magento-production html]$ bin/magento deploy:mode:set production
Enabling maintenance mode
Starting compilation
sh: line 1: 2527091 Killed                  /usr/bin/php -f /var/www/sciencelltestsite.com/html/bin/magento setup:di:compile 2>&1
Something went wrong while compiling generated code. See the error log for details.
Disabling maintenance mode
Command returned non-zero exit code:
`/usr/bin/php -f /var/www/sciencelltestsite.com/html/bin/magento setup:di:compile`

 

 

Re: How to remove exception error log messages from browser?

Hi @kanchi777k3aa3 

 

Could you copy paste the errors from the system.log and exception.log file here? So that I can check and suggest some solution.

 

Thanks

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: How to remove exception error log messages from browser?

Sure! @Mukesh Tiwari 

 

I removed some out of redundancy.

 

system.log

[2021-10-29 15:08:00] main.ERROR: There are no commands defined in the "cron" namespace.

Did you mean this?
    setup:cron
#0 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(657): Symfony\Component\Console\Application->findNamespace('cron')
#1 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(237): Symfony\Component\Console\Application->find('cron:run')
#2 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/sciencelltestsite.com/html/bin/magento(23): Symfony\Component\Console\Application->run()
#5 {main} [] []
[2021-10-29 15:07:55] main.ERROR: SQLSTATE[HY000] [2002] Connection refused
#0 /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/sciencelltestsite.com/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/sciencelltestsite.com/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(575): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect()
#3 /var/www/sciencelltestsite.com/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(613): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `queue_m...', Array)
#4 /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array)
#5 /var/www/sciencelltestsite.com/html/vendor/magento/module-mysql-mq/Model/ResourceModel/Queue.php(160): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select))
#6 /var/www/sciencelltestsite.com/html/vendor/magento/module-mysql-mq/Model/QueueManagement.php(280): Magento\MysqlMq\Model\ResourceModel\Queue->getMessages('product_action_...', 1)
#7 /var/www/sciencelltestsite.com/html/vendor/magento/module-mysql-mq/Model/Driver/Queue.php(81): Magento\MysqlMq\Model\QueueManagement->readMessages('product_action_...', 1)
#8 /var/www/sciencelltestsite.com/html/vendor/magento/framework-message-queue/CallbackInvoker.php(66): Magento\MysqlMq\Model\Driver\Queue->dequeue()
#9 /var/www/sciencelltestsite.com/html/vendor/magento/framework-message-queue/Consumer.php(115): Magento\Framework\MessageQueue\CallbackInvoker->invoke(Object(Magento\MysqlMq\Model\Driver\Queue), '10000', Object(Closure))
#10 /var/www/sciencelltestsite.com/html/vendor/magento/module-message-queue/Console/StartConsumerCommand.php(94): Magento\Framework\MessageQueue\Consumer->process('10000')
#11 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Command/Command.php(255): Magento\MessageQueue\Console\StartConsumerCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Interception/Interceptor.php(58): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->___callParent('run', Array)
#14 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->Magento\Framework\Interception\{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/sciencelltestsite.com/html/generated/code/Magento/MessageQueue/Console/StartConsumerCommand/Interceptor.php(26): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->___callPlugins('run', Array, Array)
#16 /var/www/sciencelltestsite.com/html/generated/code/Magento/MessageQueue/Console/StartConsumerCommand/Proxy.php(143): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(1009): Magento\MessageQueue\Console\StartConsumerCommand\Proxy->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Magento\MessageQueue\Console\StartConsumerCommand\Proxy), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/sciencelltestsite.com/html/bin/magento(23): Symfony\Component\Console\Application->run()
#22 {main} [] []
[2021-10-29 15:07:55] main.ERROR: SQLSTATE[HY000] [2002] Connection refused [] []
[2021-10-29 15:07:55] main.ERROR: SQLSTATE[HY000] [2002] Connection refused [] []
[2021-10-29 15:07:56] main.ERROR: SQLSTATE[HY000] [2002] Connection refused [] []
[2021-10-29 15:03:39] main.INFO: Cyclic dependency in merged layout for handle: default [] []
[2021-10-29 15:03:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_10c537fe3ac41262cf35be8bd21ce2b7d9_page_layout_merged and handles default, catalog_product_view, catalog_product_view_type_simple, catalog_product_view_id_786, catalog_product_view_sku_2406, swissup_configurable_header: Please correct the XML data and try again. Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 [] []
[2021-10-29 15:03:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_108f6b9a7a9c8d80f3898a305e1b05f1f9_page_layout_merged and handles default, catalog_product_view, catalog_product_view_type_simple, catalog_product_view_id_786, catalog_product_view_sku_2406, swissup_configurable_header, cms_noroute_index, cms_page_view, cms_noroute_index_id_no-route, themeeditor_page_one_column: Please correct the XML data and try again. Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 [] []
[2021-10-29 15:03:40] main.ERROR: Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 [] []

 

 

Exception.log

[2021-10-29 15:03:40] main.CRITICAL: Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 {"exception":"[object] (Magento\\Framework\\Config\\Dom\\ValidationException(code: 0): Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 at /var/www/sciencelltestsite.com/html/vendor/magento/framework/Config/Dom.php:461)"} []
[2021-10-29 14:31:27] main.CRITICAL: SQLSTATE[HY000] [2002] Connection refused {"exception":"[object] (Zend_Db_Adapter_Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144, PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128)"} []

 

 

 

Re: How to remove exception error log messages from browser?

Sure @Mukesh Tiwari 

 

I removed some out of redundancy

 

Here is the system.log 

 

[2021-10-29 15:08:00] main.ERROR: There are no commands defined in the "cron" namespace.

Did you mean this?
    setup:cron
#0 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(657): Symfony\Component\Console\Application->findNamespace('cron')
#1 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(237): Symfony\Component\Console\Application->find('cron:run')
#2 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/sciencelltestsite.com/html/bin/magento(23): Symfony\Component\Console\Application->run()
#5 {main} [] []

 

[2021-10-29 15:07:55] main.ERROR: SQLSTATE[HY000] [2002] Connection refused
#0 /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/sciencelltestsite.com/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/sciencelltestsite.com/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(575): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect()
#3 /var/www/sciencelltestsite.com/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(613): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `queue_m...', Array)
#4 /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array)
#5 /var/www/sciencelltestsite.com/html/vendor/magento/module-mysql-mq/Model/ResourceModel/Queue.php(160): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select))
#6 /var/www/sciencelltestsite.com/html/vendor/magento/module-mysql-mq/Model/QueueManagement.php(280): Magento\MysqlMq\Model\ResourceModel\Queue->getMessages('product_action_...', 1)
#7 /var/www/sciencelltestsite.com/html/vendor/magento/module-mysql-mq/Model/Driver/Queue.php(81): Magento\MysqlMq\Model\QueueManagement->readMessages('product_action_...', 1)
#8 /var/www/sciencelltestsite.com/html/vendor/magento/framework-message-queue/CallbackInvoker.php(66): Magento\MysqlMq\Model\Driver\Queue->dequeue()
#9 /var/www/sciencelltestsite.com/html/vendor/magento/framework-message-queue/Consumer.php(115): Magento\Framework\MessageQueue\CallbackInvoker->invoke(Object(Magento\MysqlMq\Model\Driver\Queue), '10000', Object(Closure))
#10 /var/www/sciencelltestsite.com/html/vendor/magento/module-message-queue/Console/StartConsumerCommand.php(94): Magento\Framework\MessageQueue\Consumer->process('10000')
#11 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Command/Command.php(255): Magento\MessageQueue\Console\StartConsumerCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Interception/Interceptor.php(58): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->___callParent('run', Array)
#14 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->Magento\Framework\Interception\{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/sciencelltestsite.com/html/generated/code/Magento/MessageQueue/Console/StartConsumerCommand/Interceptor.php(26): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->___callPlugins('run', Array, Array)
#16 /var/www/sciencelltestsite.com/html/generated/code/Magento/MessageQueue/Console/StartConsumerCommand/Proxy.php(143): Magento\MessageQueue\Console\StartConsumerCommand\Interceptor->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(1009): Magento\MessageQueue\Console\StartConsumerCommand\Proxy->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Magento\MessageQueue\Console\StartConsumerCommand\Proxy), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/sciencelltestsite.com/html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/sciencelltestsite.com/html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/sciencelltestsite.com/html/bin/magento(23): Symfony\Component\Console\Application->run()
#22 {main} [] []
[2021-10-29 15:07:55] main.ERROR: SQLSTATE[HY000] [2002] Connection refused [] []
[2021-10-29 15:07:55] main.ERROR: SQLSTATE[HY000] [2002] Connection refused [] []
[2021-10-29 15:07:56] main.ERROR: SQLSTATE[HY000] [2002] Connection refused [] []
[2021-10-29 15:07:58] main.ERROR: There are no commands defined in the "cron" namespace.
[2021-10-29 15:03:39] main.INFO: Cyclic dependency in merged layout for handle: default [] []
[2021-10-29 15:03:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_10c537fe3ac41262cf35be8bd21ce2b7d9_page_layout_merged and handles default, catalog_product_view, catalog_product_view_type_simple, catalog_product_view_id_786, catalog_product_view_sku_2406, swissup_configurable_header: Please correct the XML data and try again. Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 [] []
[2021-10-29 15:03:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_108f6b9a7a9c8d80f3898a305e1b05f1f9_page_layout_merged and handles default, catalog_product_view, catalog_product_view_type_simple, catalog_product_view_id_786, catalog_product_view_sku_2406, swissup_configurable_header, cms_noroute_index, cms_page_view, cms_noroute_index_id_no-route, themeeditor_page_one_column: Please correct the XML data and try again. Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 [] []
[2021-10-29 15:03:40] main.ERROR: Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 [] []

 

Exception.log:

[2021-10-29 15:03:40] main.CRITICAL: Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 {"exception":"[object] (Magento\\Framework\\Config\\Dom\\ValidationException(code: 0): Element 'link', attribute 'integrity': The attribute 'integrity' is not allowed.
Line: 1083

Element 'link', attribute 'crossorigin': The attribute 'crossorigin' is not allowed.
Line: 1083
 at /var/www/sciencelltestsite.com/html/vendor/magento/framework/Config/Dom.php:461)"} []
[2021-10-29 14:31:27] main.CRITICAL: SQLSTATE[HY000] [2002] Connection refused {"exception":"[object] (Zend_Db_Adapter_Exception(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144, PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /var/www/sciencelltestsite.com/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128)"} []

Re: How to remove exception error log messages from browser?

Hi @kanchi777k3aa3 

 

Try to increase MySQL time out and disable recently installed plugin. Then check if it works for you.

Thanks

---
Problem Solved Click Accept as Solution!:Magento Community India Forum