I keep on getting an invalid callback error for my homemade Magento module. I'm using Magento on an Ubuntu web server. My module is stored in: app/code/community/Foggyline/HappyHour/. The specific script is stored in: app/code/community/FoggyLine/HappyHour/Model/Observer.php


<?xml version="1.0" encoding="UTF-8"?>


          <schedule><cron_expr>* * * * *</cron_expr></schedule>


Model/Oberserver.php :

 * Checks for invalidated caches and refreshes them
class Foggyline_HappyHour_Model_Observer {
    public static function refresh() {
      try {
        $allTypes = Mage::app()->useCache();
        foreach($allTypes as $type => $blah) {
      } catch (Exception $e) {
        // do something

Any thoughts on how to fix this?


Try adding a module tag to tell magento where to find the observer


or change



|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.