cancel
Showing results for 
Search instead for 
Did you mean: 

There has been an error processing your request

There has been an error processing your request

Hello guys

After successfully install magento I got following error

Can you please help me to solve this problem

 

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 8b7db3ef210f0e24e2a2d0a13968f7573b00caa0959c94a01fd5edf5027336b4

 

I used XAMPP and Megento 2,3

6 REPLIES 6

Re: There has been an error processing your request

Hi @maheshamenaac8 

Please check logs under log files like "system.log" and "exception.log". 

Go to path : <Mageto root folder>/var/log


Problem solved? Click Accept as Solution!

Re: There has been an error processing your request

Hi @Bhanu Periwal  

Thank you for reply 

again i have folloving errorhow can i fix it 

 

The page you requested was not found, and we have a fine guess why.

  • If you typed the URL directly, please make sure the spelling is correct.
  • If you clicked on a link to get here, the link is outdated.

What can you do? Have no fear, help is near! There are many ways you can get back on track with Magento Store.

  • Go Back to the previous page.
  • Use the search bar at the top of the page to search for your products.
  • Follow these links to get you back on track!                                                                         Store Home |My Account

Re: There has been an error processing your request

Hi @maheshamenaac8 

I did not shared URL path with you.
To check exception Magento2 has var folders where exception logs creates if there are issue with website.
So go root folder like path: 

/var/www/html/<magento_folder>/var/log

and check exception files "exception.log" and "system.log" , which store actual exception. 

Problem solved? Click Accept as Solution!

Re: There has been an error processing your request

hi @Bhanu Periwal 

i dont have an idea how to correct following errors

can you help me ?

 

there is my system.log

 

[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' in module: '' block's name: 'require.js' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/container.phtml' in module: '' block's name: 'head.additional' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-catalog/view/base/templates/js/components.phtml' in module: '' block's name: 'head.components' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/js/cookie.phtml' in module: '' block's name: 'js_cookies' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/notices.phtml' in module: 'Magento_Theme' block's name: 'global_notices' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-cookie/view/frontend/templates/html/notices.phtml' in module: 'Magento_Cookie' block's name: 'cookie_notices' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-cookie/view/base/templates/html/cookie.phtml' in module: '' block's name: 'cookie_config' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-ui/view/base/templates/logger.phtml' in module: 'Magento_Ui' block's name: 'logger' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-ui/view/base/templates/wysiwyg/active_editor.phtml' in module: 'Magento_Ui' block's name: 'theme.active.editor' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/google-shopping-ads/view/frontend/templates/gtag_cart.phtml' in module: '' block's name: 'google.gtag.cart' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/dotmailer/dotmailer-magento2-extension/view/frontend/templates/email/tracking_code.phtml' in module: 'Dotdigitalgroup_Email' block's name: 'ddg.checkout.tag' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/skip.phtml' in module: '' block's name: 'skip_to_content' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-directory/view/frontend/templates/currency.phtml' in module: 'Magento_Directory' block's name: 'currency' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-store/view/frontend/templates/switch/languages.phtml' in module: 'Magento_Store' block's name: 'store_language' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/header.phtml' in module: 'Magento_Theme' block's name: 'header' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-customer/view/frontend/templates/account/customer.phtml' in module: 'Magento_Customer' block's name: 'customer' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml' in module: 'Magento_Customer' block's name: 'authorization-link-login' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/header/logo.phtml' in module: 'Magento_Theme' block's name: 'logo' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml' in module: 'Magento_Checkout' block's name: 'minicart' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-search/view/frontend/templates/form.mini.phtml' in module: '' block's name: 'top.search' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-catalog/view/frontend/templates/product/compare/link.phtml' in module: '' block's name: 'catalog.compare.link' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/sections.phtml' in module: '' block's name: 'navigation.sections' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/breadcrumbs.phtml' in module: 'Magento_Theme' block's name: 'breadcrumbs' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/skiptarget.phtml' in module: '' block's name: 'skip_to_content.target' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/title.phtml' in module: 'Magento_Theme' block's name: 'page.main.title' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/messages.phtml' in module: '' block's name: 'ajax.message.placeholder' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/messages.phtml' in module: '' block's name: 'messages' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-customer/view/frontend/templates/account/authentication-popup.phtml' in module: 'Magento_Customer' block's name: 'authentication-popup' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-customer/view/frontend/templates/js/section-config.phtml' in module: 'Magento_Customer' block's name: 'customer.section.config' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-customer/view/frontend/templates/js/customer-data.phtml' in module: 'Magento_Customer' block's name: 'customer.customer.data' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-customer/view/frontend/templates/js/customer-data/invalidation-rules.phtml' in module: 'Magento_Customer' block's name: 'customer.data.invalidation.rules' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-page-cache/view/frontend/templates/javascript.phtml' in module: 'Magento_PageCache' block's name: 'pageCache' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/amzn/amazon-pay-and-login-with-amazon-core-module/view/frontend/templates/config.phtml' in module: 'Amazon_Core' block's name: 'amazon_config' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-catalog/view/frontend/templates/product/compare/sidebar.phtml' in module: '' block's name: 'catalog.compare.sidebar' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-wishlist/view/frontend/templates/sidebar.phtml' in module: 'Magento_Wishlist' block's name: 'wishlist_sidebar' [] []
[2020-06-12 12:18:03] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-newsletter/view/frontend/templates/subscribe.phtml' in module: 'Magento_Newsletter' block's name: 'form.subscribe' [] []
[2020-06-12 12:18:04] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-cms/view/frontend/templates/widget/static_block/default.phtml' in module: 'Magento_Cms' block's name: 'TKnZmEVq8Pq88qGQB0fAHY6cFH4yjCfi' [] []
[2020-06-12 12:18:04] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-store/view/frontend/templates/switch/stores.phtml' in module: 'Magento_Store' block's name: 'store_switcher' [] []
[2020-06-12 12:18:04] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-catalog/view/frontend/templates/frontend_storage_manager.phtml' in module: 'Magento_Catalog' block's name: 'frontend-storage-manager' [] []
[2020-06-12 12:18:04] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/absolute_footer.phtml' in module: 'Magento_Theme' block's name: 'absolute_footer' [] []
[2020-06-12 12:18:04] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/dotmailer/dotmailer-magento2-extension/view/frontend/templates/email/email_capture_newsletter.phtml' in module: 'Dotdigitalgroup_Email' block's name: 'emailCapture' [] []
[2020-06-12 12:18:04] main.CRITICAL: Invalid template file: 'D:/xampp/htdocs/demo/vendor/magento/module-theme/view/frontend/templates/html/copyright.phtml' in module: 'Magento_Theme' block's name: 'copyright' [] []

Re: There has been an error processing your request

Hi @maheshamenaac8 

Yes, This is the problem with windows. Windows uses "\" as separator, the array "directories" contains entries with "/" as separator, so the check will always fail. So you need to fix this by replacing the separator in core file:

Go to File path :

<Magento root folder >\Vendor\Magento\Framework\View\Element\Template\File\Validator

function isPathInDirectories replace below code in isPathInDirectories function

$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));


It may resolve your issue.

If issue resolve, please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: There has been an error processing your request

@Bhanu Periwal  thank you 

I changed code 

but still no load the admin page and home page 

 

protected function isPathInDirectories($path, $directories)
{
if (!is_array($directories)) {
$directories = (array)$directories;
}
$realPath = str_replace('\\', '/',$this->fileDriver->getRealPath($path));
foreach ($directories as $directory) {
/*$realDirectory = $this->fileDriver->getRealPath($directory);*/
if (0 === strpos($realPath, $directory)) {
return true;
}
}
return false;
}