Blog

This entry was posted in Blog on by .

<div class=”back-to-category”>
<?php $_category = Mage::registry(‘current_category’) ?>
<a href=”<?php echo $_category->getUrl() ?>”>
<?php echo $this->__(‘Go Back to’) ?> <?php echo $_category->getName() ?>
</a>
</div>

This entry was posted in Blog on by .

In order to run Magento your server needs to meet some basic software requirements. For a complete list of system requirements please reference the System Requirements page.

You can test your server for compatibility by following these simple steps:

  1. Download the magento-check file to your computer and unzip it.
  2. Upload the extracted magento-check.php file to the Magento directory on your server
  3. In your browser navigate to this page:
     magento/magento-check.php
This entry was posted in Blog on by .

Unknown error (8192): Function split() is deprecated in /app/code/core/Mage/Admin/Model/User.php on line 374 Trace: #0 [internal function]: mageCoreErrorHandler(8192, ‘Function split(…’, ‘ /app/code/core/Mage/…’, 374, Array) #1 /app/code/core/Mage/Admin/Model/User.php(374): split() #2 /app/code/core/Mage/Adminhtml/controllers/IndexController.php(42): Mage_Admin_Model_User->getStartupPageUrl() #3 /app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Adminhtml_IndexController->indexAction() #4 /app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch(’index’) #5 /app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #6 /app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch() #7 /index.php(65): Mage::run() #8 {main}

Solve:

Finally, open the file: app\code\core\Mage\Admin\Model\User.php and change:

Look for the line:

$nodePath = ‘adminhtml/menu/’ . join(‘/children/’, split(‘/’, $startupPage)) . ‘/action’;

Replace With:

$nodePath = ‘adminhtml/menu/’ . join(‘/children/’, explode(‘/’, $startupPage)) . ‘/action’;

 

This entry was posted in Blog on by .

For those who have noticed this error
Fatal error: Method Varien_Object::__tostring() cannot take arguments in /magento/lib/Varien/Object.php
when trying to install Magento on PHP 5.3, do not fear, here is the fix:
File: /lib/Varien/Object.php (Line 484)
Change from
public function ___toString(array $arrAttributes = array(), $valueSeparator=’,’)
To this
public function __invoke(array $arrAttributes = array(), $valueSeparator=’,’)
File /app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)
Change from
$host = split(‘:’, $_SERVER[‘HTTP_HOST’]);
To this
$host = explode(‘:’, $_SERVER[‘HTTP_HOST’]);
Credits to naujasdizainas.lt on http://www.magentocommerce.com/boards/viewthread/18080/