Category: Linux
-
How to replace string in parentheses using regex
PHP, Java and other languages provide replace all functionality to replace any character by any specific character. But REGEX is best method to replace or remove any specific value using pattern. Suppose, we have input string is $xyz = “This is my best (friend)”; and we want to remove words from “()”. So it so…
-
Fatal error: Call to a member function addFieldToFilter() on a non-object in magento
Have you upgraded your magento version OR installed any module/extension manually? If you getting this error: “Fatal error: Call to a member function addFieldToFilter() on a non-object ……” after doing any step above then you have to following steps to solve: Step 1: Re-index the all tables. a) To re-index Go to your site admin…
-
Magento: Fatal error: Call to a member function getModelInstance() on a non-object in appMage.php on line
Today we are working on cron file that will call all model methods of my custom module. But we are getting error: “Magento: Fatal error: Call to a member function getModelInstance() on a non-object in appMage.php on line 141”. when we are using: require_once ‘app/Mage.php’; $customobj = Mage::getModel(‘custommodule/custommodule’); It was amazing for us that we…
-
What is Memcached?
Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. Memcached is simple yet…
-
Linux: How to use serach command in Linux?
In windows we can easily find the any file in the folder and it doesn’t matter that how many folders inside that folder.. and it is possible by pressing F3 key on the keyboard. But in the linux we have to use command prompt to find such type of searching. In ubuntu we can do…