1. Solved: Package exists in composer repo 1 and composer repo 2 which has a higher repository priority

    When you install some new extension package in Magento 2 via the composer you can get an error:

    Package vendor/module-name exists in composer repo ( and composer repo ( which has a higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See for details and assistance.

    This error message is self-explaining and contains a link to the composer documentation.

    The problem is that a module you try to install has an old version in the Magento composer repository and a new version in the free public repository. However, the Magento repository has a higher priority and that is why composer cannot install the latest version and throws this error.

    What you need to do to solve the issue is to:

    Read more »
  2. MGS_ClaueTheme Main Product Image Missing When Enabling WebP

    If you use Magento 2 WebP Images extension and have the MGS_ClaueTheme you can face the issue with the product gallery on the configurable product page, the main product image can be missing/brocken.

    To fix this issue add the following code:

    item['zoom'] = $(this).attr('data-zoom');
    if ($(this).find('[srcset].img-responsive').length) {
    item['full'] = $(this).find('[srcset].img-responsive').attr('srcset');
    item['thumb'] = $(this).find('[srcset].img-responsive').attr('srcset');
    item['caption'] = $(this).find('[srcset].img-responsive').attr('alt');
    } else {
    item['full'] = $(this).find('.img-responsive').attr('src');
    item['thumb'] = $(this).find('.img-responsive').attr('src');
    item['caption'] = $(this).find('.img-responsive').attr('alt');

    to the file:

    Read more »
  3. Magefan Login as Customer & Magento 2.4.x

    As you may know Magento 2 Login as Customer extension by Magefan was integrated into the Magento 2.4.0 core, and we transferred the copyright for "Login as Customer" extension to Adobe. More about it you can read here.

    So if you use Magento 2.4.x or greater you have 2 options:

    1. Remove Magefan Login as Customer extension and use core Magento Login As Customer

    2. Disable core Login As Customer and continue using original Magefan Login as Customer.

    To disable

    Read more »
  4. Porto Theme Homepage: resent blog posts

    To insert Magefan Blog recent blog posts on the Porto Theme, please include this code into your Homepage CMS page

    Read more »
  5. Magento WebP Image Conversion Takes To Long

    If you use Magento 2 WebP Images Extension and the CLI conversion by the bin/magento magefan:webp:convert command is run very long, the issue may be in cwebp library on your server. WebP extension works in a way to check if the proper software is installed on the server first and then use its own binary files if there is no software installed. So if you already have the cwebp lib on the server, then the extension will use it.

    Cwebp on the server can be outdated, please try to update or reinstall the cwebp.

    If for some reason you are not able to update it, try to modify the following file:




    Find method

    Read more »
  6. Amasty Shopby breaks the Magefan Blog Featured Images Uploading

    In case you use one of the Amasty extensions, e.g. Amasty Layered navigation, you may face the issue of the broken blog featured images after the upload.

    We have found the issue in Amasty_Shopby extensions, that breaks some other extensions using image upload functionality, including our Magento 2 Blog Extension.

    Amasty_Shopby in this file:


    adds the plugin to Magento\Catalog\Model\ImageUploader model.

    Judging from the code in the following file:


    it looks like some fix Amasty added for Magento 2.3.4. and the issue lies in the plugin beforeMoveFileFromTmp.

    The original Magento MoveFileFromTmp declaration looks like this:

    public function moveFileFromTmp($imageName,
    Read more »
  7. Issue: Redirect to Admin Dashboard after Saving the Blog Post [Fixed]

    If you save a post in Magento 2 Blog, your post is not saved and you are redirected to the Magento dashboard, most likely it happens when the post has a lot of related products or posts. This issue is connected with your server PHP configurations. 

    The max_input_vars PHP setting parameter defines the number of requests (posts) data PHP can receive. When a blog post has many related posts or products a lot of data goes with the request to PHP and it just doesn't receive part of this data.

    In order to fix the issues with post saving:

    1. Change the value of the max_input_vars parameter from 1000 to 5000 in the main php.ini file on your server.

    2. Restart the Apache/Nginx or PHP-FPM if it is used.

    Note: you need to have the superuser server permissions to be able to change this

    Read more »
  8. 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. Best of all - WebP.

    Never heard of it?

    Find out more about what is WebP, why should you use it in your Magento 2 store and how is it different from PNG and JPG in this article about WebP images in Magento 2.

    Serve Images in Next Gen Formats in Magento

    Read more »
  9. Featured Images Are Not Displayed In Magento 2 Blog

    If you use Magento 2 Blog extension with attached featured images to a blog post but these images are not displayed on the storefront, then most likely the issue is in your theme. A lot of themes provide custom blog layouts and template files that override the original view and can miss some blog functionality like featured images. To check and fix this, please follow steps below:

    1. Open this file if exists (if does not exists skip steps 2-3):


    2. Check if the file has the code like "getFeaturedImage". You can find the original code here

    3. If this code is missing, add it to

    Read more »
  10. Double Canonical Tags in Magento 2 Blog

    In case you use Magento Blog extension and face the issues of double canonical tags on blog pages know that it most commonly happens because you use some third-party SEO extension. And that SEO extension adds the additional canonical URL for your blog pages.

    If the SEO module you use is Mageworx SEO extension you need to go to Stores > Configuration > Mageworx > SEO Base > Canonical URL Settings and set the following items in the Canonical URL won't be added for those pages:


    Magento 2 Double Blog Canonical Issue

    Once you add them, the second canonical URLs won't

    Read more »
  11. 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 in 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/GIF image to WebP image manually using one of the free tools on the Internet. Save it in the same folder and use CSS like this:

    body.webp-supported .minicart-wrapper
    Read more »
  12. Testing Magento 2 Auto Language Switcher

    If you have installed Magefan Auto Language Switcher Extension for Magento 2 and don't know how to test it properly, please follow these simple steps: 

    1. Enable all Magento 2 caches.

    All live sites use enabled caches, so make sure that you have enabled all one when testing.

    2. Use Developer (Simulate Geolocation).

    There is an option in Magento 2 Auto Language Switcher that allows you to test the extension performance.  

    Read more »
  13. Fixed: Related Products Template Does Not Looks Good

    In Magento 2 Blog v2.9.3 we added the feature that many customers requested about, it is "use the default catalog related products template" instead of custom blog related product template. This helps to display related products on the blog post page in the theme design automatically. The commit related to this change can be found at GitHub.

    Unfortunately, there are thousands of themes for Magento 2, and some of them have specific JS and CSS (e.g. Porto Theme). That is why if you use Blog extension v2.9.3 or greater and the related products block does not look good, please try to do next:

    1. Create a new file in your theme directory:


    Read more »
  14. How to Clear Facebook Open Graph Cache on Demand?

    Social media is a powerful platform that generates tons of information throughout the world every day. That is why such networks as Facebook and Twitter are commonly used for marketing purposes by a lot of stores. It allows them to attract more attention to their content and correspondingly drive more traffic to their websites with the help of Open Graph tags.

    However, sometimes it happens that Facebook OG tags aren't working as they are supposed to. Instead of a great featured image and newly written title and description, you see the outdated information or don't see anything at all.

    If you're wondering what could possibly cause Facebook to pull out the wrong OG data instead of the up-to-date one the answer is pretty simple. Facebook Open Graph Cache. So, in order to make sure Facebook shows the proper Open Graph Information you just need to clear the Facebook cache.

    Follow these steps to clear Facebook Open Graph

    Read more »
  15. Login As Customer extension v2.0.0 - v2.2.2 Important Security Issue Fix

    Today (Feb 12, 2020) we have been notified about a potential security issue in our Magento 2 Login as Customer Extension thanks to Daniel Sloof's tweet.

    Reviewing the code and communicating with Derrick HeesbeenLewis Voncken from there was found the security issue.

    Note that, no confirmed

    Read more »
  16. How to Remove Currency Switcher in Magento 2?

    There are different reasons you would want to remove the currency switcher dropdown from Magento 2 storefront.

    Magento 2 Currency Switcher Remove

    For example, you may want to remove it because you use Magento 2 Automatic Currency Switcher and don't want to allow customers to manually change a currency.

    In order to remove the currency switcher dropdown follow these steps:

    1. Create a new file inside your storefront theme folder:


    2. Add this code into it:

    <?xml version="1.0"?>
    Read more »
  17. How to Remove Language Switcher in Magento 2?

    There are cases when you want to remove the language switcher dropdown from the storefront.

    Magento 2 Language Switcher Remove

    For example, you may want to remove it because you use Magento 2 Automatic Language Switcher and don't want to allow customers to manually change a store view.

    It is an easy task to do. Please follow these simple steps:

    1. Create a new file inside your storefront theme folder:


    2. Add this code into it:

    <?xml version="1.0"?>
    <page xmlns:xsi=""
    Read more »
  18. Magento sidebar is missing fix

    There are cases when the Magento sidebar is missing and not showing. Most likely this is because of the "sidebar" or "sidebar.additional" container has been removed from your theme layout.

    Magento sidebar is missing

    Read more »
  19. The following required properties are missing: fb:app_id

    When you test your page using Facebook Sharing Debugger and get the warning "The following required properties are missing: fb:app_id",

    Magento 2 Required Properties Facebook

    you need to add fb:app_id meta tag to the <head> tag of your page:

    <meta property="fb:app_id" content="ХХХХХХХХХХХХХХХ" />

    Replace ХХХХХХХХХХХХХХХ with your Facebook App ID.

    Read more »
  20. Why sharing link does not show image on Facebook?

    There are times when you share the link on Facebook and thumbnail image doesn't show up or it does appear, but it is not the picture you've expected to be shown. In order to fix these steps should be taken:

    1. Verify if there are OG tags on your website. 

    Search for a code <meta property=og: , pressing the Ctrl+U shortcut to open the page source code, example:

    <meta property="fb:app_id" content="102143277123049" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="Development team for your Magento 2 store | Magefan" />
    <meta property="og:description" content="Magefan is development team, gathered together in October 2015 shortly before Magento 2 release. We&#039;ve all been waiting for Magento 2 and this is it. Now we can surprise you with our solutions." />
    <meta property="og:
    Read more »
Posts loader