Monthly Archives: May 2019

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

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

    If while saving Magefan extension on Magento Community edition you get the error "Product Key is empty or invalid. The extension has been automatically disabled." and you 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

    To configure image lazy loading in Magento 2 you can install Magento 2 Image Lazy Load Extension by Magefan. Then navigate to Magento 2 Admin Panel > Stores > Configuration > Magefan Extensions > Lazy Load.

    Magento 2 Image Lazy Load Configuration

    Read more »
^Top