• How to display Product Variation Price inside Variation drop down list in WooCommerce?

    By default, WooCommerce plugin will display product variations as a drop down menu in the single product page. For example, a T-shirt would be available in various sizes/variations (say M, L, XL etc…) and those options will be displayed via select drop down list…Upon selection, the product’s price will change accordingly (you…

  • Unable to yum install mod_security – No package mod_security available [Solved]

    Question: I was trying to install mod_security for Apache web server via yum. I googled and found the below command to install mod_security. # yum install mod_security Unfortunately, the above command did not work and ended up with the below message. # yum install mod_security No package mod_security available. Error: Nothing…

  • MediaWiki Image Upload – Fatal exception of type mwexception [Solved]

    Question: Hi techglimpse, I have recently installed MediaWiki version 1.25.2 successfully. But I’m not able to upload an image file (say JPEG) via ‘Upload file‘ link present at the sidebar. The MediaWiki fails with an error message as “fatal exception of type mwexception mediawiki” – Shankar Answer: Shankar, by default MediaWiki…

  • APC Installation Error – sh: phpize: command not found [Solved]

    Question: Hi techglimpse, I was trying to install APC for Mediawiki using yum on CentOS virtual machine. To install APC package, I ran pecl command as ‘pecl install apc‘. But the command failed with an error as “sh: phpize: command not found. ERROR: `phpize’ failed“. I also found that ‘phpize‘ did not exist…

  • MPI Compilation Error : undefined reference to `sqrt’ – Solved

    Question: Dear Techglimpse,  I’m trying to compile an MPI program (a simple example program which calculates PI value) using MPICH version 1.2.6. Below is the command that I used for compilation: mpicc -o a.out pi.c However, the command failed with an error message as “undefined reference to `sqrt’“. I verified…

  • How to Delete all files older than X number of Days in Linux?

    Question: I would like to know if there is a single command in Linux that allows me to delete all files that are older than say 10 days? – Ravi Solution: Yes, you can use ‘find‘ command with few arguments – such as to search all files or files with…

  • How to Proofread your WordPress Post using a Plugin or a Browser Extension

    Google Chrome was my favorite browser until last night, because the browser’s performance has gone bad over the months and that forced me to use Mozilla Firefox (the next best alternative to Chrome). Well, this article is not about the browsers, but the difference in using WordPress editor on Chrome…

  • How to Remove All Commented Lines or Lines with a Specific Pattern in vim?

    Recently I was doing lot of text editing on one of my server (for maintenance activity) – where I need to optimize the size of a file by removing all that have specific pattern, sometimes all lines commented lines and sometimes all lines that do not contain a specific pattern. For…

  • Two Browser Extensions For Refreshing Twitter Feed Automatically!

    Do you hate clicking “View # new Tweets” popup banner to refresh your Twitter feed? At least, I find that task little annoying and boring! Wouldn’t it be nice if the Twitter feed gets refreshed automatically at regular intervals? Fortunately, there is an extension for both Chrome and Firefox browsers that can…

  • How to Hide or Remove Unwanted Apache Headers to Protect your WordPress Site?

    It all starts from here – whenever the client requests for a page, the server sends out response data (the actual content) and some response headers as well. The header contains information such as HTTP response status, Content-Type, Content-Length, Location of the requested page, response date and time, server information and…

  • How to Customize States displayed in WooCommerce Checkout Form?

    I was working on an ecommerce theme based on WooCommerce plugin, where I need to remove certain Indian states from checkout form. The reason, few courier services do not ship products to certain states. So it’s better to prevent users from selecting those states during the checkout. If you are looking to customize the…

  • PHP Warning: require_once(): Unable to allocate memory for pool [Resolved]

    Question: For the past two weeks, I started seeing Apache logging PHP warnings as “Unable to allocate memory for pool“. The error is logged for every page refresh and occurs for almost every page in my website. Moreover the error was triggered by various PHP functions such as require_once, include_once, require,…

  • How to Add WooCommerce Product Categories to WordPress Menu?

    Question: I have purchased an e-commerce theme from Envato Market, which is based on WooCommerce plugin. I have created few categories under ‘Product menu‘ and have added few products into it as well. But I’m just not sure how to add those product categories to the main menu, as I…