Magento 2 Migration Extensions Sale

troubleshooting

  1. 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:

    app/code/MGS/ClaueTheme/view/frontend/web/js/configurable.js
    Read more »
  2. 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 »
  3. 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 »
  4. 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:

    /lib/internal/Magefan/Lib/WebPConvert/Convert/Converters/Cwebp.php

    or

    vendor/rosell-dk/webp-convert/src/Convert/Converters/Cwebp.php

    Find

    Read more »
  5. 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:

    app/code/Amasty/Shopby/etc/adminhtml/di.xml

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

    Judging from the code in the following file:

    app/code/Amasty/Shopby/Plugin/Catalog/Model/ImageUploaderPlugin.php

    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 »
  6. 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 »
  7. 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 »
  8. 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):

    /app/design/frontend/[ThemeVendor]/[themename]/Magefan_Blog/templates/post/list/item.phtml

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

    https://github.com/magefan/module-blog/blob/master/view/frontend/templates/post/list/item.phtml
    https://prnt.sc/tcl3sj

    3. If this code is missing, add it

    Read more »
  9. 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:

    blog_index_index
    blog_post_view
    blog_category_view
    blog_archive_view
    blog_author_view
    blog_tag_view

    Magento 2 Double Blog Canonical Issue

    Once you add them, the second canonical URLs

    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/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 .action.showcart.desktop
    Read more »
  11. 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 »
  12. 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:

    app/design/frontend/ThemeVendor/themename/Magefan_Blog/layout/blog_post_view.xml

    Read more »
  13. 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

    Read more »
  14. 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 experius.nl there was found the security issue.

    Note that, no

    Read more »
  15. 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:

    app/design/frontend/ThemeVendor/ThemeName/Magento_Theme/layout/default.xml

    2. Add this code into it:

    <?xml version="1.0"?>
    <page
    Read more »
  16. 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:

    app/design/frontend/ThemeVendor/ThemeName/Magento_Theme/layout/default.xml

    2. Add this code into it:

    <?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    Read more »
  17. 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 »
  18. 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 »
  19. 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 »
  20. Why Is It Better to use Magento 2 Blog Extension Than Integration With WordPress, Joomla, Drupal

    In Magento 1 merchants commonly used Magento for an online store and some other CMS, e.g. WordPress, Joomla or Drupal for blogging, then installed different tools to make the integration between these systems.

    For Magento 2 there is the Blog extension that allows you to have a store and a blog in one place. Here are the advantages of using Magento 2 Blog Module over other blogging platforms or integration modules:

    1. Security

    Magento is one of the safest frameworks. Safety is the top priority for any successful business. And it's known that  WordPress and other blogging CMS are not famous for their security, especially when being installed with additional modules. That's why using Magento extension which expands Magento itself is better. M2 Blog extension has passed over all verifications on Magento Marketplace, including security and it is safe to use. 

    Read more »
Posts loader
^Top
Chat