How to Make Your Magento Database Smaller

Here’s a quick fix for a bloated magento database. In the Admin panel, click on System > Configuration On the left near the bottom, choose System and look for ‘Log Cleaning’. Typically you only need to keep a few weeks worth of data. I recommend enabling the Log Cleaning and setting it to around 15 […]

Fatal error: Class ‘Varien_Data_Form_Element_Weight’ not found

Had this error with a client and here’s how it’s fixed: First, log into phpMyAdmin and make a backup of the eav_attribute table (use the Export option) Then, click the SQL button and paste this into the box: SELECT * FROM eav_attribute WHERE frontend_input=”weight” Hit Go The result should be one row, probably with an […]

Magento Upgrade – Fatal error: Call to a member function getUsername() on a non-object in

Today I upgraded a client to the latest version of Magento (1.7.0.2).  Upon finishing the FTP of the new version, I could see the front end of the website with no problem.  The backend, however, would not work becuase of this error: Fatal error: Call to a member function getUsername() on a non-object in /app/design/adminhtml/default/default/template/page/header.phtml […]