Call to undefined method Mage_Admin_Model_Observer::actionPostDispatchAdmin()
I upgraded Magento to 1.4.0.0 to 1.4.0.1 and got the following error: Call to undefined method Mage_Admin_Model_Observer::actionPostDispatchAdmin() Everything inside /var/sessions/ and /var/cache and (if it exists) /app/code/core/Zend/Cache/ must be deleted.
var _gaq undefined – Magento
I came across this javascript error when updating a instance of Magento to version 1.4 and Google Analytics “var _gaq is undefined” In the ga.php file located under /app/code/core/Mage/GoogleAnalytics/Block add the following line of code before _gaq.push javascript “var _gaq = _gaq || [];” – about line 179 This will remove the error. I still [...]
Enabling Sales Order Notification in Magento
Very helpful post there that enables sales order notifications to the shop admin email address. Dont’s use the Bcc option System Configuration -> Sales menu, you have to send a copy of the email to another email address. References: http://nik.chankov.net/2009/10/28/adding-notification-when-new-order-arrives-magento/
Bluehost wont allow gmail SMTP connections
According to bluehost, you cannot send emails through SMTP connections from web applications hosted on bluehost. They only allow sending through their own SMTP servers. The problem I had was trying to send emails in Magento using GMAIL (Google Apps) using the code from this forum: http://www.magentocommerce.com/boards/viewthread/1073/ The work around is that I setup a [...]
JFactory::getDate() doesn’t automatically add offset
By default, calling JFactory::getDate() doesn’t automatically apply the timezone offset. The default date/time is GMT. By using the following code, you can set the offset from the global joomla configuration file <?php $thisJApp = &JFactory::getApplication(); $thisJDate = JFactory::getDate(); $thisJDate ->setOffset($thisJApp ->getCfg(‘offset’)); echo $thisJDate->toFormat(“%A %d %b %Y”); ?> If you want to set the date from [...]
SimplePie Joomla Proxy Issue
The issue I had with a particular joomla site is that I could not load external RSS feeds. The error was “Could not connect to {server}”. RSS Feed load failed. This was caused in the SimplePie.php class around line 6601. Steps to resolve: I enabled the cUrl extension in php.ini (running on a IIS platform) [...]
Should we build software from the ground up?
The Open Source development community has become stronger over the last several years with some successfull products being developed including Joomla, Moodle, Open Office, DotNetNuke etc. This raises the question of why develop a new software product from the group up? why not just build applications/extensions on top of existing open source frameworks? For example, [...]
Finding PHP Executable without contacting Host Provider
Came across a interesting issue with running a script via a CRON job. I needed to find out what the path is to the PHP executable. I could make a educated guess and attempt to try /usr/bin/php, but I find a few ways this could be done. Use the System function and execute the ls [...]


