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.
Updated by SP on 23/11/2022