Magento 2 Migration Extensions webpconverted Sale

Blog

  1. Debugging PHP Infinite loop in Magento 2

    There are situations in Magento 2 when page keeps loading and then you get 500 fatal error, memory limit, or timeout error. This is an infinite loop in the PHP code, when the same code is executed over and over again. It is related to some core Magento issues or, most likely, third party extension.

    To debug an infinite loop and find the loop entrance, please follow the steps below:

    1. Open the app/bootstrap.php file and add this code right after PHP open tag <?php in the next line

    $_SERVER['MAGE_PROFILER'] = 'html';

    2. Open the vendor/magento/framework/Profiler.php file and add this code to the beginning of "public static function start($timerName, array $tags = null)" function, e.g.

    Read more »
  2. Debug Backtrace in Magento 2

    In case you work with a lot of different Magento instances as a temporary project you might want to have a nice method to check debug backtrace of some function execution in Magento 2 quickly without installing or enabling additional software on the server, e.g. Xdebug.

    In this case, you can use the native Magento backtrace function from \Magento\Framework\Debug class and call it whenever you need:

    \Magento\Framework\Debug::backtrace(false, true, false);

    As a result, you will get this nice HTML debug-backtrace:

    Magento 2 Debug Backtrace

    Read more »
  3. Magefan News and Updates - August 2020

    Hello there, Magento fans!

    Summer is hot this year the same as the extension updates we've prepared for you. Are you ready?

    Read more »
  4. Serve Images In Next-Gen Formats on Magento Website

    Page Speed is taken very seriously by a lot of Magento stores since it directly influences your general website performance. That's why everyone constantly tries to improve it and looks for the best ways to do so. 

    In case you're checking your website speed in Google PageSpeed you can face the Serve images in next-gen formats issue. According to it, Google recommends you to save images in JPEG 2000, JREG XR and WEBP formats instead of old PNG and JPG. 

    Serve Images in Next Gen Formats in Magento

    Read more »
  5. Magefan Login as Customer Extension Now Is a Part of Magento 2.4.0 Core

    Hello, Magento fans!

    Since Magento is our favorite eCommerce platform and we all eagerly waited for Magento 2.4.0 we are happy to bring you the great news.

    In the fall of 2019, we received a request from Adobe Systems Incorporated, which owns the Magento platform, to include our Login as Customer module for Magento 2 in the core of their system. Of course, we couldn't refuse, because Magefan is Magento fans.

    Login as Customer functional is a valuable contribution to any Magento 2 store. It did a great impact on Magento Community and that was why Magento got interested in adding it to the Magento 2.4.0 functional. 

    Instead of writing new code from scratch Magento contacted us and asked about the integration which we definitely supported.

    We transferred copyright for the "Login as Customer" extension to Adobe, and in the early 2020 we worked with the Magento Community Engineering Team on integrating our module into the Magento core. There were made code improvements and added some new features.

    Read more »
  6. Top 3 Tips for Magento 2 Image Optimization

    While everyone so desperately tries to make their way up to the top of SERP and improve SEO they pay little or no attention to one of the main things page speed could be improved with - Image Optimization. In order to get more traffic, you need to take care of plenty of things including website performance influenced by images.

    Many websites use outdated unoptimized images which definitely are not contributing to the website speed improvement since they take some time to load. It's been said that if the page takes longer than 3 seconds to load the majority of people are going to leave. In case you really want to attract more customers with the fast performing website you need to optimize your images.

    We've prepared the top 3 tips for your Magento 2 Image Optimization.

    Read more »
  7. Fix "There has been an error processing your request" issue in Magento 2

    "There has been an error processing your request" is the message you can receive when working with Magento 2.  Here is the example of this message:

    There has been an error processing your request

    Read more »
  8. How to Not Move Some JS Code to the Bottom of the Page in Magento 2?

    Magento 2 Rocket JavaScript extension allows you to enable deferred JavaScript loading and Move JS code to the bottom of the page automatically. That way you increase the website loading speed and eliminate render-blocking.

    However, sometimes you don't need to move all JavaScripts to the bottom since there are some that aren't recommended to be moved there.

    So, in case you use the deferred JavaScripts on your Magento 2 store page and don't want to move some JavaScript to the bottom you just need to add the attribute data-rocketjavascript="false" to the <script> tag:

    Read more »
  9. How to Simply Throw Your Competitor Out Of the 1st Place on Google SERP?

    The 1st place in Google SERP is a dream place every website is working hard on getting to. As plenty of studies show you'd probably click on the first 3 results Google gives for your query with little or no regard to the rest. Being at the top 3 is great, but still, the 1st place gives you far more authority and credibility. You have to be really good so that Google has the reason to put you there, right?

    Your website or webpage success on Google is based on SEO, so everyone desperately wants to learn how to improve it. Consequently, those who've ever learned about SEO know how many things it is influencing and how many things you have to take care of in order to improve it on your website.

    So, in order to outrun the competitors to improve your website SEO you have to:

    1. Work hard on creating unique and useful products.
    2. Do your research to target top-ranking and long-tail keywords.
    Read more »
  10. Using WebP Images in CSS Background

    If you already use WebP images for your HTML <img> tags and want to enable WebP for the CSS background as well, the proper way is to use multiple backgrounds is the CSS styling.

    For example, you have an element with .png CSS background:

    .minicart-wrapper .action.showcart.desktop .fa-shopping-cart:before {
        background: url(../images/icon-cart.png) no-repeat;
    }

    To switch it to the WebP, you need to convert PNG/JPG image to WebP image manualy using one of the free tools in the Internet. Save it in the same folder and use CSS like this:

    .minicart-wrapper .action.showcart.desktop .fa-shopping-cart:before {
        background:
    Read more »
Posts loader
^Top
Chat