Posts Tagged ‘error’

    howto Solve Magento with php eAcellerator 0.9.6.1 issue

    Friday, August 20th, 2010

    Running magento commerce 1.3.x in combination with eAccelerator 0.9.6.x gives Strict Notices error Report

    Have you seen this Magento Error Report:

    Magento Frontend symptoms:

    Strict Notice: Only variables should be passed by reference  in /var/www/vhosts/khodtech.com/public/app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php

    It is most likely related directly to running the php opcode caching mechanism implemented by eAccelerator 0.9.6.1.

    Magento Frontend Quick fix is to:

    in app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php on line 373:

    return current(array_keys($this->_availableMode));

    replace to:

    $arrayKeys = array_keys($this->_availableMode);
    return current($arrayKeys);

    Magento Backend Quick fix is to:

    In lib/Zend/Db/Select.php on line 216 find:

    $correlationName = current(array_keys($this->_parts[self::FROM]));

    replace to:

    $arrayKeys = array_keys($this->_parts[self::FROM]);
    $correlationName = current($arrayKeys);

    The solution is provided by the fantastic Magento Community

    SSL Certificate Provider