Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Urgent - error following upgrade of Mobile Module
 
FD CITY
Member
 
Total Posts:  38
Joined:  2012-09-25
 

Hi,

I’m running Magento 1.7.0.2 and just went to check for updated module via Connection Manager.  As there was an update to the magento_Mobile module I allowed it to run the update.  It has thrown an exception and I can no longer show the page or get into admin.

As I left the Connection Manager window open (from previous bad experiences!) I tried to uninstall the module, seeing as there is no way to roll back.  This doesn’t resolve the error.  I really hope someone can help!!!

Method “actionFrontPreDispatchXmlAdmin” is not defined in “Mage_XmlConnect_Model_Observer”

#0 /public_html/includes/src/__default.php(21047): Mage::throwException(’Method “actionF...’)
#1 /public_html/includes/src/__default.php(21024): Mage_Core_Model_App->_callObserverMethod(Object(Mage_XmlConnect_Model_Observer), ‘actionFrontPreD...’, Object(Varien_Event_Observer))
#2 /public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent(’controller_acti...’, Array)
#3 /public_html/includes/src/__default.php(13691): Mage::dispatchEvent(’controller_acti...’, Array)
#4 /public_html/includes/src/__default.php(14324): Mage_Core_Controller_Varien_Action->preDispatch()
#5 /public_html/includes/src/__default.php(13571): Mage_Core_Controller_Front_Action->preDispatch()
#6 /public_html/includes/src/__default.php(17927): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#7 /public_html/includes/src/__default.php(17484): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /public_html/includes/src/__default.php(20061): Mage_Core_Controller_Varien_Front->dispatch()
#9 /public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#10 /public_html/index.php(87): Mage::run(’’, ‘store’)
#11 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
FD CITY
Member
 
Total Posts:  38
Joined:  2012-09-25
 

Checking dependencies of packages
Installing package community/Magento_Mobile 1.7.0.1.23.1
Package community/Magento_Mobile 1.7.0.1.23.1 installed successfully
Package installed:
community Magento_Mobile 1.7.0.1.23.1

Cleaning cache
..
Cache cleaned successfully

So Connection Manager tells me this is installed correctly but Magento obviously doesnt like it.  Is there any way I can roll back to a previous version or get help to fix this please?

 
Magento Community Magento Community
Magento Community
Magento Community
 
FD CITY
Member
 
Total Posts:  38
Joined:  2012-09-25
 

Some more info:

Extension dependencies

Channel Package Name Version Status
community Magento_Mobile 1.7.0.1.23.1 (stable) Already installed
community Mage_Core_Modules 1.7.0.2 (stable) Already installed
community Lib_Varien 1.7.0.0 (stable) Already installed
community Lib_Google_Checkout 1.5.0.0 (stable) Already installed
community Lib_Js_Calendar 1.51.1.1 (stable) Already installed
community Lib_Js_Mage 1.7.0.1 (stable) Already installed
community Lib_Phpseclib 1.5.0.0 (stable) Already installed
community Mage_Locale_en_US 1.7.0.1 (stable) Already installed
community Lib_Mage 1.7.0.1 (stable) Already installed
community Lib_ZF 1.11.1.0 (stable) Already installed
community Lib_Js_Prototype 1.7.0.0.3 (stable) Already installed
community Lib_ZF_Locale 1.11.1.0 (stable) Already installed

 
Magento Community Magento Community
Magento Community
Magento Community
 
FD CITY
Member
 
Total Posts:  38
Joined:  2012-09-25
 

Related code from the _default.php

/**
* Response setter
*
* @param Mage_Core_Controller_Response_Http $response
* @return Mage_Core_Model_App
*/
public function setResponse(Mage_Core_Controller_Response_Http $response)
{
$this->_response = $response;
return $this;
}

public function addEventArea($area)
{
if (!isset($this->_events[$area])) {
$this->_events[$area] = array();
}
return $this;
}

public function dispatchEvent($eventName, $args)
{
foreach ($this->_events as $area=>$events) {
if (!isset($events[$eventName])) {
$eventConfig = $this->getConfig()->getEventConfig($area, $eventName);
if (!$eventConfig) {
$this->_events[$area][$eventName] = false;
continue;
}
$observers = array();
foreach ($eventConfig->observers->children() as $obsName=>$obsConfig) {
$observers[$obsName] = array(
‘type’ => (string)$obsConfig->type,
‘model’ => $obsConfig->class ? (string)$obsConfig->class : $obsConfig->getClassName(),
‘method’=> (string)$obsConfig->method,
‘args’ => (array)$obsConfig->args,
);
}
$events[$eventName][’observers’] = $observers;
$this->_events[$area][$eventName][’observers’] = $observers;
}
if (false===$events[$eventName]) {
continue;
} else {
$event = new Varien_Event($args);
$event->setName($eventName);
$observer = new Varien_Event_Observer();
}

foreach ($events[$eventName][’observers’] as $obsName=>$obs) {
$observer->setData(array(’event’=>$event));
Varien_Profiler::start(’OBSERVER: ‘.$obsName);
switch ($obs[’type’]) {
case ‘disabled’:
break;
case ‘object’:
case ‘model’:
$method = $obs[’method’];
$observer->addData($args);
$object = Mage::getModel($obs[’model’]);
$this->_callObserverMethod($object, $method, $observer);
break;
default:
$method = $obs[’method’];
$observer->addData($args);
$object = Mage::getSingleton($obs[’model’]);
$this->_callObserverMethod($object, $method, $observer);
break;
}
Varien_Profiler::stop(’OBSERVER: ‘.$obsName);
}
}
return $this;
}

/**
* Performs non-existent observer method calls protection
*
* @param object $object
* @param string $method
* @param Varien_Event_Observer $observer
* @return Mage_Core_Model_App
* @throws Mage_Core_Exception
*/
protected function _callObserverMethod($object, $method, $observer)
{
if (method_exists($object, $method)) {
$object->$method($observer);
} elseif (Mage::getIsDeveloperMode()) {
Mage::throwException(’Method “‘.$method.’” is not defined in “‘.get_class($object).’“‘);
}
return $this;
}

 
Magento Community Magento Community
Magento Community
Magento Community
 
FD CITY
Member
 
Total Posts:  38
Joined:  2012-09-25
 

RESOLVED!!

Turns out it was developer mode turned on for some stupid reason.  FIX: Comment out the following in .htaccess

#SetEnv MAGE_IS_DEVELOPER_MODE “true”

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top