Tag Archives: Magento2 tutorial

Magento2 Turn On Error Messages


Magento2 Turn On Error Messages : Error messages in any framework plays an important role when the project is in development mode. Magento2 provides the three mode default, developer and production mode. Here in this tutorial we are going to explain how you can enable error messages in magento2.


Magento2 Turn On Error Messages

Magento2 Provides the following modes –

  • Default- By Default this mode is set when we install magento2. Error messages will not be visible on frontend site. Error can be seen in log files.
  • Developer – Set developer mode if you are working with magento2.

    Magento2 Set Developer Mode-

    Run the below script to set developer mode in magento2 –

    php bin/magento deploy:mode:set developer

    if you run this it will set developer mode and error messages will be visible on site.

  • Production- No error messages & warnings will be displayed on frontend site.

Other Solution

Let’s have look over other solutions.


You can also add the following lines in index.php(located at root) at the top of file to enable errors.

Magento2 Turn On Error Messages:

error_reporting(E_ALL);
ini_set('display_errors', 1);

Magento 2 Admin Panel 404 Error page not found


Magento 2 Admin Panel 404 Error page not found : Sometimes we face the issue with magento admin panel. There can be many reason for admin panel 404 error in magento2. Here in this tutorial we are going to explain the possible reason and how to fix it.


Magento 2 Admin Panel 404 Error page not found

You can fix this issue by enabling mod_rewrite.

  • 1. Enable mod_rewrite module and set AllowOverride to the /var/www/html in apache conf.
  • 2. Delete Cache and Access Admin panel

We hope this should work and solve your problem.

Magento2 CSS not Loading


Magento2 Css Not Loading : There are many reasons for css not loading. Here in this tutorial we are going to to explain how you can fix this issue.


Magento2 Css Not Loading Properly Fix It

You can fix the css not loading issue following the below steps –

  • 1. Check permission of /var and /pub folders and set it to 777.
  • 2. Now run the below command –
    php bin/magento2 setup:static-content:deploy
  • 3. Flush cache and check.