You have no items in your shopping cart.

Most Common nopCommerce Issues You Should Fix

Thursday, June 1, 2017

nopCommerce is one of the popular platform for amazingly cohesive user experience. The platform is most welcomed by the beginner retailers, merchants and large online shop owners. However, most of the business owners, starting a new journey through the online presence, go through the difficulties of choosing a perfect development platform. In order to provide convenience among the customers and developers, the owners look for the best possibilities. NopCommerce is accepted as a highly interactive online store by the most of the business owners, retailers, merchants and developers at the same time. Credibility goes to its huge collection of trendy and user-oriented features, nopCommerce plugins, themes, templates and easy-integrative custom plugins. Alongside, for any nopCommerce issues the community forums are amazingly supportive for the developers.       

An advantage of developing your online store using nopCommerce is the developer support. Any problem faced through the nopCommerce development journey or even while in maintenance, both retailers and developers can troubleshoot the problem with a few surfing throughout the web. Although you can easily solve these issues, but setting up a global notification area, registering a new module there are some complicated procedures requires expert knowledge of using tools for nopCommerce. Let’s talk about some of the most faced user problems with the easiest solutions.

Focusing the newbies, we tried to list of a few most commonly faced nopCommerce issues in this blog. The containing solutions shared are mostly followed by our developers in the real time nopCommerce website development to create the most professional look.

#1 Solving nopCommerce issue for not-working Index  

Reasons behind a nonworking index can be many. If you confront this issue go through the following to solve this in no time.

1. Check nopCommerce Warning page, there should not be any issue with configuration. You can open      Warning page in administrator panel by going to System > Warnings.

2. Check Specified store URL matches this store URL in warning page of nopCommerce under System menu.

3. Verify that you have configured Solr Core URL correctly.

4. Make sure that your application can access the Solr Core. Open the required port if you’re using a remotely hosted Solr Core.

5. Verify that you’re using correct Solr Configuration and Schema File.

6. If you are still getting 404 Page Not Found / Page Not Exists in Log. It means that Solr Core you’re trying to access is not there. Make sure you’re able to access it manually.

7. If You may not Restarted Application after configuring Solr Core URL and you’ve hosted Solr Core on same server, i.e. localhost and while trying to index you are getting error message as “System.Net.WebException: Unable to connect to the remote server.” or “System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.GetResponse()”

8. You have all your other configuration correct with working Solr core that you can access on your browser. Then the issue might be with the mapping of your domain in your server. Consider adding your domain name entry to the windows hosts file to resolve it to 127.0.0.1 to fix it. Please check this and this for more details.

#2 Fixing Plugin access difficulties on Configuration page

If after new installation or performing an update to the plugin, are not able to access plugin’s configuration page and get similar error to the following:

1. Go to the controller for path '/Admin/Plugins/SolrCore/SolrAdmin/Configure' was not found or does not implement IController.

2. Check that the Plugin folder has correct permissions assigned.

3. Go to Systems > Warnings in nopCommerce Admin Panel.

4. You should not have any warning. If you are seeing a warning here, please fix all of them and try again.

5. Restart application after you make changes.

Coming to an end of this steps, check the website page and filter properties again to make sure your changes are active.

# 3 Solve Home Page Redirecting Issue

After some investigation, we assigned necessary permissions to web user of this website and NETWORK SERVICE. Additionally, we enabled 32-bit application option for the application pool of nopCommerce website. Following are the steps:

1.       Open IIS manager.

2.       Locate the application Pool used by the website/application in question.

3.       Right click on the application pool name, advanced settings.

4.       Enable 32 Bit applications option to TRUE.

# 4 Fix Image Resize Issue in nopCommerce

You may wish to resize your product images based on your content and categories. Resizing is a default privilege in nopCommerce. However, you face issues in compressing or resizing the image in nopCommerce.

The issue appears when the original image size does not divide evenly into the destination size and the remainder is > 0.5. For example, when a final floating-point width of 47.8 is determined, the remainder is dropped (not rounded) and the image is resized to only 47 pixels instead of 48 leaving a white border on the right side of the image.

1.       Go to: ../Libraries/Nop.Services/Media/PictureService.cs

2.       Open "PictureService.cs" file

3.       Edit the section:

case ResizeType.LongestSide:

               if (originalSize.Height > originalSize.Width)

               {

                   // portrait

                   newSize.Width = (int)(originalSize.Width * (float)(targetSize / (float)originalSize.Height));

                   newSize.Height = targetSize;

               }

               else

               {

                   // landscape or square

                   newSize.Height = (int)(originalSize.Height * (float)(targetSize / (float)originalSize.Width));

                   newSize.Width = targetSize;

               }

               break;

           case ResizeType.Width:

               newSize.Height = (int)(originalSize.Height * (float)(targetSize / (float)originalSize.Width));

               newSize.Width = targetSize;

               break;

           case ResizeType.Height:

               newSize.Width = (int)(originalSize.Width * (float)(targetSize / (float)originalSize.Height));

               newSize.Height = targetSize;

               break;

With this:

case ResizeType.LongestSide:

               if (originalSize.Height > originalSize.Width)

               {

                   // portrait

                   newSize.Width = (int)Math.Round(originalSize.Width * (float)(targetSize / (float)originalSize.Height));

                   newSize.Height = targetSize;

               }

               else

               {

                   // landscape or square

                   newSize.Height = (int)Math.Round(originalSize.Height * (float)(targetSize / (float)originalSize.Width));

                   newSize.Width = targetSize;

               }

               break;

           case ResizeType.Width:

               newSize.Height = (int)Math.Round(originalSize.Height * (float)(targetSize / (float)originalSize.Width));

               newSize.Width = targetSize;

               break;

           case ResizeType.Height:

               newSize.Width = (int)Math.Round(originalSize.Width * (float)(targetSize / (float)originalSize.Height));

               newSize.Height = targetSize;

               break;

# 5 Get back the filters in nopCommerce website

There may be following issue:

1. Ensure that you’ve enabled Filters from configurations.

2. You may not have enabled filters widgets. For that you need to log in your nopCommerce Admin panel > Content Management > Widgets.

3. Enable all widgets for nopCommerce plugins.

4. Refresh your Catalog & Search page to see change.

Fixing the technical issues, you face with your nopCommerce website has never been so easy, as soon the community forum is launched. The companies, providing developer services, are trying to support the beginners to get along with the troubleshooting with their technical content. We are Brain Station 23, a team of certified nopCommerce developers are at your service for any further assistance building the best online shop for you. In addition, we bring your shop to the customer’s mobile screen with our all-in-one nopStation mobile app for your nopCommerce website. Don’t forget to read about the amazing features of our nopCommerce mobile app supporting all mobile devices.

Leave your comment