Monthly Archives: May 2019

  1. Error: Product Key is empty or invalid. The extension has been automatically disabled.


    Note: if you have purchased the extension on Magento Marketplace (have a paid order) and can not find the product key, please contact us and provide your order number.


    Solution for Magento 2 Community Edition (CE / Open Source)

    If you get the error "Product Key is empty or invalid. The extension has been automatically disabled." while saving Magefan extension on Magento Community edition and  don't see any Product Key field, as on the screenshot:

    Product Key is empty or invalid. The extension has been automatically disabled.

    Read more »
  2. Magento 2 Showing Wrong Customer IP

    Sometimes instead of the real customer IP address, you can see 127.0.0.1 or some other wrong customer IP in your Magento 2 Admin panel. It can be due to proxies, like Varnish, Cloudflare, that may be enabled for your Magento 2 store.

    To solve the wrong IP address issue you need to:

    1. Create a new file in M2 directory:

    app/etc/XIP/di.xml

    2. Paste the code:

    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Framework\HTTP\PhpEnvironment\RemoteAddress">
    <arguments>
    <argument name="alternativeHeaders" xsi:type="array">
    <item name="x-client-ip" xsi:type="string">HTTP_X_REAL_IP</item>
                    <item name="x-cf-connecting-ip" xsi:type="string">HTTP_CF_CONNECTING_IP</item>
         
    Read more »
  3. Configure Image Lazy Load In Magento 2

    Configuring Image Lazy Load is one of the great tips for Magento 2 image optimization that allows you to improve your website loading speed and reduce the page size by loading images gradually.

    Once your Images are lazy-loaded you are sure there won't be any delay in loading the page caused by images so that your customers receive the best user experience.

    Take the following steps to configure Image Lazy Load in Magento 2:

    1. Install Magento 2 Image Lazy Load Extension by Magefan.
    2. Navigate to  Stores > Configuration > Magefan Extensions > Lazy Load.
    3. Enable the extension by choosing "Yes" in Enabled select box and define blocks (Lazy Load Blocks text area) for which images should be loaded via lazyload.

    Magento 2 Image Lazy Load Configuration

    Read more »
^Top
Chat