Development
List All Magento cronjobs (from local, community and core)
I have recently run into this Magento script who lists all the cronjobs on the site (coming from core, community or local). Easy to use and with a good result view!
I have recently run into this Magento script who lists all the cronjobs on the site (coming from core, community or local). Easy to use and with a good result view!
At my company we’ve been using tools like Munin to monitor the server. Munin is a great tool that shows all type of graphs of what’s going on in the server: Apache processes, Varnish memory, Database performance, Server load, Disk usage, Memcache performance… and a lot more. Basically, you can Read more…
The «Class “Mage” not found» issue has been recently a headache in most of our projects. I could say that there was a specific change eventually (either a package update, package installation, configuration change…) that make this error appear. The problem is not the error itself, the problem is that Read more…
We have recently had an issue with a weird 404 page in Magento. Basically, when accessing to some stores, we got a 404 page: but not the 404 page when a page doesn’t exist. It was a 404 Magento page, different than the ordinary ones. After investigating we have finally Read more…
Today one of my colleagues shared a really nice extension with me: Magento Cron Scheduler. This extension lets you easily list and manage all the scheduled tasks in Magento, it also shows the the processes that will run in the following hours and the ones that were already executed. Available Read more…
When having many different servers I have faced more than once issues related to module installation/upgrades. Here you have a quick script that upgrades all modules from terminal: <?php require_once "../app/Mage.php"; Mage::app(‘admin’); $begin = microtime(true); Mage::log("Upgrade Begin-".$begin); Mage_Core_Model_Resource_Setup::applyAllUpdates(); Mage_Core_Model_Resource_Setup::applyAllDataUpdates(); $end = microtime(true); Mage::log("Upgrade End-".$end); Mage::log("Duree : ".($end – $begin));
Recently I had to use ssh2 through php in order to send files from one server to another. I don’t know why, I was getting a error that was not actually very common on the Internet. My code was: $connection = ssh2_connect($host, $port); ssh2_scp_send($connection, $path_origin, $path_target, 0644); The connection was Read more…
During the past week I’ve dealed with a very weird and stressing thing with my colleagues: filtering a product collection by multiple categories in Magento. Filter by only 1 category Magento offers a type of filter that can be used directly from the collection: $_category = Mage::getModel(‘catalog/category’)->load($category_id); $collection->addCategoryFilter($_category); Filter by Read more…
Region select is not perfect in Magento. For example, for UK, there are missing counties, probably due how official they are or maybe just because Magento didn’t take the correct database. One way or another, region field is not considered one of the required fields for most sellers when integrating Read more…
Using Magento Api to create shell scripts seems to be easy, but there are too many things to take into account to get the most of it. In this case, I want to explain how to pass an argument from the command line when executing a magento shell script. You Read more…