Category Navigation Links in Magento

Sometimes new Megento users keep wondering how to add Category Navigation Links/Tree on the homepage. For this you have to add atleast one subcategory in “default root category” Select Catalog->Manage Categories Click on "default category" Select Add Subcategory button on top Make sure to select "Yes" for isActive and "Include in Navigation Menu"

Php: Fatal error: Allowed memory size of 134217728 bytes exhausted

You might notice these errors often if you are working with large size objects:- Fatal error: Allowed memory size of 33554432 bytes exhausted Fatal error: Allowed memory size of 134217728 bytes exhausted You can try to increase the memory_limit by adding this statement in your php.ini file:- ini_set("memory_limit", "256M"); However you can still get the ...

Php: Fatal error: Call to undefined function mb_detect_encoding() 1

To Fix this error you most probably have to install mbstring extension for php. From your server command line as root: yum install php-mbstring And restart apache: service httpd restart Things should be fine then, if it still does not work then you might need to enable mbstring extension in your php.ini file(generally found in ...

PHP Warning: preg_match_all(): Compilation failed: unrecognized character after (?< at offset

While using preg_match_all function in php, i came across this issue of Compilation Failed. On executing preg_match_all('/<div>(?<product>.*)</li>/sU', $body, $matches) I got the following error: PHP Warning:  preg_match_all(): Compilation failed: unrecognized character after (?< at offset 32 in … This is probably you are having old version of pcre (for me it was 6.6-6) which needs ...

PHP: Double quotes vs Single quotes

A famous interview question for php:- What to use to initialize a string in php ? Single quotes(‘) or Double quotes(“) ? You should know the difference between these two, for e.g. $website = "http://www.ankurgupta.com/blog"; $doubleQuoteStr = "I love $website"; $singleQuoteStr = 'I love $website'; echo $doubleQuoteStr; echo $singleQuoteStr; Output to above php script will ...

[How To] Work using screens in Linux – Screen Commands

If you work on external linux machines (production servers, staging servers), then this post is for you. Suppose there is server, on which an application is running, Now each time you login to the server you need to go to the application path, at the same time you may also want to look at the ...

Poker Hands Ranking Order

This post is just for reference while playing poker.                                               1) Royal Flush - A straight from a ten to an ace with all five cards of the same suit. In poker all suits ...

Nice FreeMarker (FTL) Editor for Eclipse

If you are working on a java project, and are using freemarker template language (FTL) for front end, you would have noticed the default editor doesn’t show any ftl tags in different colors, or autocomplete them. If you are looking for a good editor for eclipse with FTL support, JBoss Tools may be of some ...

Using FreeMarker (FTL) – JspTaglib not working with struts?

I was trying to use free marker template language with struts. I was using struts 2.2.3 version, FTL was working fine when i was not using any assignment directive to use struts tags lib. But when i added the following line to my FTL file <#assign s=JspTaglibs["/WEB-INF/struts-tags.tld"]> i got the exception ClassNotFoundException: org.apache.struts2.views.jsp.ui.AutocompleterTag When i ...
Managed by