This issue has been carried along with Magento versions 1.40 upwards. If you are receiving this error, you can try some of the following changes to fix it:

Strict Notice: Only variables should be passed by reference in /home/timetoru/public_html/lib/Zend/Db/Select.php on line 246?;i:1;s:5895:”#0 /home/timetoru/public_html/lib/Zend/Db/Select.php(246): mageCoreErrorHandler(2048, ‘Only variables …’, ‘/home/timetoru/…’, 246, Array)

Find and open the file /lib/Zend/Db/Select.php

Search for the following line:

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

Replace it with the following lines:

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

Please make sure to back up the above file and verify if your Magento shop works correctly after applying this change.

DISCLAIMER: The scripts provided in our knowledgebase are for informational purposes only. We do not provide any warranty or support. It is essential to review and modify the scripts to fit your site's specific needs. There may be unforeseen outcomes when adding new script code to an existing website. You should discuss it with your website manager and seek advice from an experienced website developer if you are unsure.

Updated by SP on 23/11/2022

Was this answer helpful? 277 Users Found This Useful (615 Votes)