MAGENTO

Magento Login: Short HOW-TO for Store Owners

Magento Login Guide

Introduction

Magento is so complex that minor and major issues can come your way as to store administrator, as well as bother your customers. These problems are difficult to track and analyze if you are not a Magento specialist. In this short article, we will take the basics you need to know about error logging in Magento to pieces, including examining the right files and tracking problems efficiently.

What is Magento Log & Why You Need It

Magento Login tipsWhen there is something is wrong with your store, but you are not able to determine the reason on your own from the first sight, Magento error log is your number one troubleshooting tool to understand the roots of the problems and then solving them. What is more, not keeping an eye on the log files of your store can also lead to actual performance issues in your store. For example, huge log files can influence loading speed. Log files are always getting bigger every time something happens in your store, and if you don’t clean them up from time to time, gigabytes of error log files are getting piled up on your server.  There might be certain problems that Magento is guilty of, and you have probably encountered or will encounter at least one of them. You can face:
  • Blank pages;
  • Pages that load partially;
  • Error screens;
  • Blocks missing from the pages;
  • Any other unexpected page behavior.
Basically, you can monitor errors in your Magento, learn where they are coming from, and then take measures to fix them. When an error occurs, the responsible application writes its information into a log file and stores it for some time. If a page or something on it is missing, it is presumably the lack of memory and it is a web server log you should refer to. Magento system errors are noted accordingly in Magento logs.The types of errors may vary and occur only in specific circumstances. It is one thing when the minor occurs on the backend, and totally another when only very few of your customers face troubles with their shopping experience with a specific product or order size. In this case, customers do not always report their issues to you and just leave, while you are left completely unaware of it. Without log tracking, you can miss information, that is vitally important for your store’s wellbeing.

How to Enable Logging for My Magento Store?

Magento GuidesIn Magento 2 logging is enabled by default. To enable logging in Magento 1, the setting you need is located under System > Configuration > Advanced > Developer > Log Settings. The files system.log and exception.log will be created under MAGENTO/var/log/ once any error occurs.  PHP warnings and errors related to XML-files are stored in system.log. All other errors, which happened because Magento fails to find the right data to display a feature or load a page, are stored in exception.log. These files can be renamed for your convenience in the configuration settings.Log for all third-party extensions installed in your store is also kept in the var/log folder.

Dealing With Blank Pages

If a blank page happens, it probably has nothing to deal with Magento itself and the error took place in other applications, most likely by Apache/PHP. The blank page is usually a PHP fatal error. Therefore, you should check Apache logs for some clues. There is no permanent location for the ErrorLog file, but if it is there, you can always find it via command line by running phpinfo(). To make sure Apache creates logs, have log_errors enabled in the PHP settings, and error_reporting should be set to the corresponding error level.

Magento Error Reports

magento extension developmentSometimes Magento works as it is supposed to even if an error took place. In this instance, this error is most likely to be logged anyway. The possible location for this is the report folder. You can find it under MAGENTO/var/report.Is there are issues, this folder will contain files named by numbers. Each file includes the error message and a PHP trace. To know what happened, you need only the first line of the error message, while the rest of it might be useful for developers to detect the problem and fix it.

Conclusion

Important points to remember:
  1. Check Magento reports once in a while to make sure everything is doing great. If manual monitoring seems exhausting and gets forgotten among other administrative duties, you can use an automated solution, like the Log Monitoring extension by NEKLO. It will handle log checking for you and ensure timely email notifications about new log errors.
  2. For Magento 1 and Magento 2 exceptions are stored differently in logs and report folders. If you need to view other  Magento errors, they are in logs.
  3. Magento logs do not handle fatal errors, so don’t forget to pay attention to Apache logs.

Related posts

MAGENTO
Magento in 2021 and Beyond: Magento Experts Share Predictions
Two experts from the NEKLO ecommerce team, contributing to our expertise as a Magento development company, share their thoughts on the potential of their favorite and one of the most popular ecommerce platforms on the market today. Find below expert quotes about Magento development, Magento services, and Magento partners from our Senior Magento Developer Michail…
author's avatar
Nadya Bakhur
Researcher, Content Writer
TECHNICAL
App Development Cost Breakdown: How Much Does It Cost to Design an App
There is a wide price range within custom software development and mobile app development today. This article focuses on the factors that affect the final average app development cost of a project. It will help you negotiate the price with any application development specialist googled through the “app developers near me” query and understand how…
author's avatar
Dasha Korsik
Content Team Lead
TECHNICAL
Build vs Buy Software: Pros & Cons of Custom Software Development
In today’s digital world, almost every business, regardless of its size or niche, needs a software solution to manage data, improve customer experience and update internal processes. A dizzying array of business software programs is already available on the market and there is always a prospect to build a custom software solution. “Buy vs build…
author's avatar
Nadya Bakhur
Researcher, Content Writer
INSIGHTS
NEKLO DIGEST #5: Is Dropshipping Worth It? Ecommerce Strategy Tips
Starting an ecommerce activity seems the right choice for many business owners today. However, many of them are puzzled about existing ecommerce business ideas and aren’t sure which one to follow.  When the choice is difficult, they come to our ecommerce development company for a custom software solution or professional consultancy. Additionally, we provide the…
author's avatar
Dasha Korsik
Content Team Lead
MAGENTO
Magento Big Data Solutions: How Big Data Projects Change eCommerce?
If you rely on data and analytics, the chance you will be disappointed is minimized. In this article, we’re going to overview why and how companies use big data within their ecommerce initiatives. What’s more, NEKLO team wants to make it certain for you that one of the key benefits of merging Magento web development…
author's avatar
Nadya Bakhur
Researcher, Content Writer