Magento Forum

   
Index.php redirect
 
Alexmac
Sr. Member
 
Total Posts:  221
Joined:  2011-05-08
 

У меня иногда при посещение страницы происходит редирект на главную страницу. Magento 1.5 никаких изменения в корне не вводились.
Вот такой код у меня в логах:

SQLSELECT `cataloginventory_stock_status`.`product_id`, `cataloginventory_stock_status`.`stock_statusFROM `cataloginventory_stock_statusWHERE (product_id IN(\\\\\\\'4765\\\\\\\'\\\\\\\'2778\\\\\\\')) AND (stock_id=1) AND (website_id=\\\\\\\'1\\\\\\\')
AFF2
TIME
0.0004
TRACE
#1 Varien_Db_Adapter_Pdo_Mysql#000000002eeda2db0000000039c688ca#->_debugStat(2, \\\\\\\'SELECT `ca...\\\\\\\', array(), &Zend;_Db_Statement_Pdo#000000002eeda3fa0000000039c688ca#) called at [lib/Varien/Db/Adapter/Pdo/Mysql.php:343]
#2 Varien_Db_Adapter_Pdo_Mysql#000000002eeda2db0000000039c688ca#->query(&Varien;_Db_Select#000000002eeda3950000000039c688ca#, array()) called at [lib/Zend/Db/Adapter/Abstract.php:808]
#3 Varien_Db_Adapter_Pdo_Mysql[Zend_Db_Adapter_Abstract]#000000002eeda2db0000000039c688ca#->fetchPairs(&Varien;_Db_Select#000000002eeda3950000000039c688ca#) called at [app/code/core/Mage/CatalogInventory/Model/Mysql4/Stock/Status.php:115]
#4 Mage_CatalogInventory_Model_Mysql4_Stock_Status#000000002eeda22e0000000039c688ca#->getProductStatus(array(4765, 2778), 1, 1) called at [app/code/core/Mage/CatalogInventory/Model/Stock/Status.php:474]
#5 Mage_CatalogInventory_Model_Stock_Status#000000002eeda3fb0000000039c688ca#->addStockStatusToProducts(&Mage;_Reports_Model_Mysql4_Product_Index_Viewed_Collection#000000002eeda3f30000000039c688ca#) called at [app/code/core/Mage/CatalogInventory/Model/Observer.php:112]
#6 Mage_CatalogInventory_Model_Observer#000000002eeda2280000000039c688ca#->addStockStatusToCollection(&Varien;_Event_Observer#000000002eeda3f70000000039c688ca#) called at [app/code/core/Mage/Core/Model/App.php:1272]
#7 Mage_Core_Model_App#000000002eeda2d20000000039c688ca#->_callObserverMethod(&Mage;_CatalogInventory_Model_Observer#000000002eeda2280000000039c688ca#, \\\\\\\'addStockSt...\\\\\\\', &Varien;_Event_Observer#000000002eeda3f70000000039c688ca#) called at [app/code/core/Mage/Core/Model/App.php:1253]
#8 Mage_Core_Model_App#000000002eeda2d20000000039c688ca#->dispatchEvent(\\\\\\\'catalog_pr...\\\\\\\', array(\\\\\\\'collection\\\\\\\' => &Mage;_Reports_Model_Mysql4_Product_Index_Viewed_Collection#000000002eeda3f30000000039c688ca#)) called at [app/Mage.php:416]
#9 Mage::dispatchEvent(\\\\\\\'catalog_pr...\\\\\\\', array(\\\\\\\'collection\\\\\\\' => &Mage;_Reports_Model_Mysql4_Product_Index_Viewed_Collection#000000002eeda3f30000000039c688ca#)) called at [app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php:387]
#10 Mage_Reports_Model_Mysql4_Product_Index_Viewed_Collection[Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection]#000000002eeda3f30000000039c688ca#->_afterLoad() called at [app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php:816]
#11 Mage_Reports_Model_Mysql4_Product_Index_Viewed_Collection[Mage_Eav_Model_Entity_Collection_Abstract]#000000002eeda3f30000000039c688ca#->load() called at [lib/Varien/Data/Collection.php:740]
#12 Mage_Reports_Model_Mysql4_Product_Index_Viewed_Collection[Varien_Data_Collection]#000000002eeda3f30000000039c688ca#->count() called at [app/code/core/Mage/Reports/Block/Product/Abstract.php:145]
#13 Mage_Reports_Block_Product_Viewed[Mage_Reports_Block_Product_Abstract]#000000002eeda3ea0000000039c688ca#->getCount() called at [app/code/core/Mage/Reports/Block/Product/Viewed.php:67]
#14 Mage_Reports_Block_Product_Viewed#000000002eeda3ea0000000039c688ca#->getCount() called at [app/code/core/Mage/Reports/Block/Product/Viewed.php:78]
#15 Mage_Reports_Block_Product_Viewed#000000002eeda3ea0000000039c688ca#->_toHtml() called at [app/code/core/Mage/Core/Block/Abstract.php:758]

 
Magento Community Magento Community
Magento Community
Magento Community
 
Alexmac
Sr. Member
 
Total Posts:  221
Joined:  2011-05-08
 

#16 Mage_Reports_Block_Product_Viewed[Mage_Core_Block_Abstract]#000000002eeda3ea0000000039c688ca#->toHtml() called at [app/code/community/Lesti/Fpc/Model/Observer.php:35]
#17 Lesti_Fpc_Model_Observer#000000002eeda2f40000000039c688ca#->customerSessionInit(&Varien;_Event_Observer#000000002eeda3df0000000039c688ca#) called at [app/code/core/Mage/Core/Model/App.php:1272]
#18 Mage_Core_Model_App#000000002eeda2d20000000039c688ca#->_callObserverMethod(&Lesti;_Fpc_Model_Observer#000000002eeda2f40000000039c688ca#, \\\\\\\'customerSe...\\\\\\\', &Varien;_Event_Observer#000000002eeda3df0000000039c688ca#) called at [app/code/core/Mage/Core/Model/App.php:1253]
#19 Mage_Core_Model_App#000000002eeda2d20000000039c688ca#->dispatchEvent(\\\\\\\'customer_s...\\\\\\\', array(\\\\\\\'customer_s...\\\\\\\' => &Mage;_Customer_Model_Session#000000002eeda3d30000000039c688ca#)) called at [app/Mage.php:416]
#20 Mage::dispatchEvent(\\\\\\\'customer_s...\\\\\\\', array(\\\\\\\'customer_s...\\\\\\\' => &Mage;_Customer_Model_Session#000000002eeda3d30000000039c688ca#)) called at [app/code/core/Mage/Customer/Model/Session.php:68]
#21 Mage_Customer_Model_Session#000000002eeda3d30000000039c688ca#->__construct(array()) called at [app/code/core/Mage/Core/Model/Config.php:1254]
#22 Mage_Core_Model_Config#000000002eeda2d50000000039c688ca#->getModelInstance(\\\\\\\'customer/s...\\\\\\\', array()) called at [app/Mage.php:432]
#23 Mage::getModel(\\\\\\\'customer/s...\\\\\\\', array()) called at [app/Mage.php:446]
#24 Mage::getSingleton(\\\\\\\'customer/s...\\\\\\\') called at [app/code/core/Mage/Reports/Model/Product/Index/Abstract.php:96]
#25 Mage_Reports_Model_Product_Index_Viewed[Mage_Reports_Model_Product_Index_Abstract]#000000002eeda3d50000000039c688ca#->getCustomerId() called at [app/code/core/Mage/Reports/Model/Product/Index/Abstract.php:57]
#26 Mage_Reports_Model_Product_Index_Viewed[Mage_Reports_Model_Product_Index_Abstract]#000000002eeda3d50000000039c688ca#->_beforeSave() called at [app/code/core/Mage/Core/Model/Abstract.php:316]
#27 Mage_Reports_Model_Product_Index_Viewed[Mage_Core_Model_Abstract]#000000002eeda3d50000000039c688ca#->save() called at [app/code/core/Mage/Reports/Model/Event/Observer.php:130]
#28 Mage_Reports_Model_Event_Observer#000000002eeda3d40000000039c688ca#->catalogProductView(&Varien;_Even

 
Magento Community Magento Community
Magento Community
Magento Community
 
Alexmac
Sr. Member
 
Total Posts:  221
Joined:  2011-05-08
 

Народ хэлп где копать…

 
Magento Community Magento Community
Magento Community
Magento Community
 
niro
Mentor
 
Avatar
Total Posts:  1592
Joined:  2009-03-04
Latvia, Riga
 

Что-то странное с логом. Копать в сторону выявления причины:
1. искать, какие действия вызывают ошибку
2. по коду смотреть что именно происходит и решать по факту.

 
Magento Community Magento Community
Magento Community
Magento Community
 
akoval
Member
 
Total Posts:  50
Joined:  2011-03-19
 

Может начать с этого модуля?
app/code/community/Lesti/Fpc/Model/Observer.php:35

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