Linux Mint 14 / Ubuntu 12.10 Slow Wifi with Ath9k Drivers + Solution

I upgrade my laptop to the latest release of Linux Mint 14 MATE edition. Everything is working beautifully apart from the wireless which, whilst functional, was cripplingly slow. After a load of searching and testing, the solution that worked for me was: sudo -s iwconfig wlan0 rate 54M echo "options ath9k nohwcrypt=1" > /etc/modprobe.d/ath9k.conf reboot If you copy and paste the above into a terminal it will force the wifi speed to 54M and will make sure hardware crypt is disabled and finally reboot your machine. Read On →

Establishing a New Database Connection in Magento

Connecting to a new database in Magento is not the most straight forward of tasks yet it is better structured in other systems that give you no other options. In some systems (such as osCommerce) you would have no choice but to manually create a new PDO object and give it the necessary details. In Magneto all database connections are defined in the configuration. The connection that you will always have available is ‘default_setup’ which, by convention, is always defined in app/etc/local.xml. Read On →

PHPMD and Special Circumstances for Surprising Issues

PHPMD is useful as it helps keep coding problems to a minimum. There are some esoteric circumstances where it will flag up issues that while they are issues there is no good way to avoid them. Consider the following code block which is overriding a method from a parent class: <?php class ExportSpecial extends Export { public function getOrderItemValues($item, $order, $itemInc=1) { return array(); } } With this PHPMD will flag the three unused parameters as an issue. Read On →

Google Drops Google Apps Free Tier

In a move that will hurt a lot of small businesses and especially startups, Google have withdrawn their free Google Apps for Domains which has been slowly reducing in number of users from 50, to 10 to now 0 (almost). They are keeping the existing accounts open so if you have Google Apps already, don’t panic yet, your data is still there. For one-man-band startups apparently there is the option of creating a single-user apps account still apparently, according to Greg D’Alesandre of Google.

Solution: Magento Catalog URL Rewrites Never Finishes (processing)

In Magento 1.4.2 and possibly other versions, you can often find that the Catalog URL Rewrite process will sit at Processing forever. One of the problems that can cause this is if you have products in multiple categories and the solution is not pretty, but it works. Copy the file /app/code/core/Mage/Catalog/Model/Url.php to /app/code/local/Mage/Catalog/Model/Url.php (You never edit core files right?!) and around line 770 there is the following code block :- // generate id_path if ('id' === $type) { if (!$product) { return 'category/' . Read On →

Solution - Can't Log in to Magento Admin - No Error

If you pull down a Magento site to a local machine, and change the database core_config table to point to the local machine, and it appears to work fine until you try to login to the site admin, there can be many issues. One of the most common ones though is not having a period (dot) in the host name - e.g. localhost/admin or martyn-desktop/admin - if you don’t have the period, the cookies don’t work properly and you end up in a login loop. Read On →