Common Magento Errors That You Might Face

You are probably here because your E-commerce business is growing! Business expansion in turn hints at more traffic to your website, more customers visiting your online store, expansion of your customer base, and so on. Magento is a known name in the growing e-commerce niche today. The reasons are many; like, easy-to-use, a greater number of features for both customers and store owners, and newer options that give an edge to the concerned e-commerce establishment.

You must be thrilled with the huge collection of themes, extensions, and functionalities that will aid your business. However, although it is user-friendly, it sometimes poses certain issues for the developer’s end. These are common ones and you may have faced them already.

The Magento issues that this article deals in are discussed henceforth…

1. Changing to a new domain –

To put it lucidly, let us assume that your current domain is www.mywhitescreen.com and you want to change to www.myblackscreen.com. Since your online store is built on Magento, changing the domain implies configuring the Magento store to the new domain. There are 2 ways of doing this:

  • Editing the Magento Database – Go to cPanel -> phpMyAdmin -> click on ‘core_config_data’. Now 2 fields of the table need to be edited. The two entries that need to be edited are – web/unsecure/base_url and web/secure/base_url. It’s easy for you to go ahead now. Make the necessary changes, click on the ‘GO’ button, and there you go, the changes are done!
  • Clearing the Magento Cache – Many of Magento’s issues can be solved this way. Deleting or clearing the cache involves locating the cache folder from the root directory /var/cache. Clearing involves simply deleting the cache folder. Go to Magento admin System -> Cache Management and remove all the cache. You are done!

2. When you need to speed up Magento –

Your Magento store can be sped up to 50% of the current page loading speed. And the process is quite simple. First, you need to log in to the admin panel.

When you need to speed up Magento

From here you will find System -> Tools -> Compilation. Simply click on the Run Compilation process and your page loading sped may go up by 25 to 50%!

However, loading speeds often depend upon the hosting server too. You must have certainly chosen a provider that is optimized to run a Magento store with a seamless performance.

For instance, Cloudways is designed to withstand even the toughest hosting problems and also tackle situations when the traffic shoots up suddenly! It allows you to scale up your server if the need arises and hence, can be designated as one of the reliable solution providers for Magento stores.

Speeding up your page loading function helps in generating quality leads and may contribute to their conversion rate as well. So, keeping the speed under scrutiny is crucial.

3. When you want web users to access your store via www –

This is another important aspect. As an online store owner, you must direct your website users to access your site through www only. (For example, http://www.myblackscreen.com). You get visibility on Google as well as other search engines by doing this. Go to the .htaccess file that is located in your Magento root itself. Here, you can locate the RewriteEngine and the following code needs to be added –

RewriteCond %{HTTP_HOST} ^myblackscreen.com$ [NC]

RewriteRule ^(.*)$ http://www.myblackscreen.com/$1 [R=301,L]

Once you are done save the .htaccess file. Go to the Magento Admin page -> System -> Config menu -> web button (on the left panel). The web button click gives you the ‘unsecure’ tab (to its right, on the main panel). The base URL option needs to be tweaked, for instance, “http://myblackscreen.com” to http://www.myblackscreen.com and save the configuration. It’s that simple and your customers now get to access the store through www.

4. In case you need to reset the Admin password –

Magento’s newbies mostly encounter this problem. In the middle of the site development or maintenance job, they forget their admin password! All of a sudden accessing the backend becomes difficult! However, you needn’t panic. Magento allows changing your password and accessing the backend with a new one.

The process for this purpose is as follows –

Go to the phpMyAdmin panel, select the database. Click on the SQL tab and then move on to paste this query:

UPDATE admin_user SET password = CONCAT(SHA2(“XXXXXYourNewPassword”, 256),”:XXXXX:1″) WHERE username = “YourAdminUser”

The new password is to be written in place of “YourNewPassword”. The sequence XXXXX can be replaced with any random character of your choice and the AdminUser should have the username of your Magento Admin panel access in its place.

Click on the Go button and re-setting your password is done that easily!

5. To enable Search Engine friendly URLs in Magento –

Magento users often find it difficult to generate search engine friendly URLs. The process to go about fetching search engine friendly URLs for your Magento store is rather simple too. The steps are as follows –

  • log in to the Admin Panel area with your backend access
  • Go to ‘Configuration’ -> click on ‘Web’ on the left panel -> click on Search Engine Optimization tab
  • Turn on the ‘Use Web Server Rewrites’ by marking YES
  • Click on ‘Save Configuration’

These simple steps would enable search-engine-friendly URLs in your online Magento store.

6. When you want to incorporate a “Contact Us” form on your website –

When you want to incorporate a “Contact Us” form on your website

By default, a link of the Contact Us form will be displayed near the footer of your store’s home page. But you might want to install it on any other page, or for that matter, all the other pages of your website as well! to do this, the following steps need to be executed –

  • Log into Admin area -> CMS -> Pages
  • Click on the ‘New Page’ button and in its content field type the following:

<!– CONTACT FORM CODE BEGIN–>

{{block type=’core/template’ name=’contactForm’ template=’contacts/form.phtml’}}

<!– CONTACT FORM CODE END–>

Save your changes and your ‘contact us’ form gets a look somewhat like this:

Save your changes and your ‘contact us’ form gets a look somewhat like this

7. When you face an “access denied” issue –

Developers at the backend are often faced with this problem. All of a sudden, an “Access Denied” pops up and the developer is unable to access the backend anymore. The easiest option is to log out from the admin area and log in again.

However, if this does not work, go to the Magento Admin area -> System -> Permissions -> Roles -> Administrators. Now from the left panel go to Roles Resources and set the ‘Resource Access’ to ALL. Click the ‘Save Role’ button and your issue is resolved.

When you face an “access denied” issue

8. To set a custom user’s group –

Adding a custom user group is another issue that developers are often encountered with. But adding one is non-hazardous one must say! To add a custom user’s group the following steps, need to be followed:

  • Login to Magento Admin area
  • Go to Customers -> Customer Groups -> Add new Customer Group

After addition, the group can be edited too. To go about the process, go to Magento Customer -> Manage Customers and you can change from the edit link to the customer. The group change is to be done from Account Information -> Customer Group. Change the group and press Save Customer.

Finally,

The bottom line is that ‘nothing in this universe is perfect’. You can resolve them with extensive research and experimenting with the platform. However, think twice before making changes in the core code. Although an open-source platform, one needs to be extra compatible with Magento’s coding environment first!

0 Comments

Leave a Reply