0

Fatal error: Call to a member function start() on boolean in /media/Work/Server/konzeptual.local/app/code/core/Mage/Core/Controller/Varien/Action.php on line 493

Line 493:

$session = Mage::getSingleton('core/session', array('name' => $this->_sessionNamespace))->start();

Screenshot: https://i.stack.imgur.com/3wkwk.png

1 Answer 1

0

Mage::getSingleton('core/session', ....) === false !

Try this in a separate file... (Like a PhpUnit Test)

include('app/Mage.php');
Mage::app();
var_export(['Object?' => is_object(Mage::getSingleton('core/session'))]);

Now look if you get a object. Then, if it's a NO just look what name Magento is trying to load, like: "Amasty_CrappyModule/session". Then your problem is a re-write that can't be found. If it's looking for: Mage_Core_Model_Session then check the file for existence.

3
  • Also: Flush cache and turn off compilation. Dec 12, 2017 at 16:04
  • array ( 'Object?' => false, ) - in test Cache off, Compilation off
    – Pavel
    Dec 13, 2017 at 7:17
  • Perfect this is what we expected. Thus we understand the message of the exception clearly. Now the next test will reveal witch classname Magento actually tries to load given the name 'core/session'. Now add the next line to the var_export in the test: 'classname?' => Mage::getConfig()->getModelClassName('core/session'). If it's Mage_Core_Model_Session check if the file exists and can be loaded. Dec 14, 2017 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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