Magento Forum

   
ERR (3): Strict Notice: Only variables - Please help
 
coogee
Jr. Member
 
Total Posts:  1
Joined:  2011-10-03
 

Hi,
I’ve noticed that my system.log is full of this error:

ERR (3): Strict Notice: Only variables should be passed by reference in /home/rammain/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 2602

This is refering to

$key key(array_intersect_key($condition$conditionKeyMap));
in the block
$query '';
        if (
is_array($condition)) {
            
if (isset($condition['field_expr'])) {
                $fieldName 
str_replace('#?'$this->quoteIdentifier($fieldName), $condition['field_expr']);
                unset(
$condition['field_expr']);
            
}
            $key 
key(array_intersect_key($condition$conditionKeyMap));

Would be great if somebody could give me a hint on how to resolve this error.

Cheers,

Tim

 
Magento Community Magento Community
Magento Community
Magento Community
 
kladata
Jr. Member
 
Total Posts:  4
Joined:  2010-01-12
 

same problem here :(:(

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

hello
Try replacing

$key key(array_intersect_key($condition$conditionKeyMap));
with
$tmp array_intersect_key($condition$conditionKeyMap);
$key key($tmp);

Not sure if it works but it easy to test. smile

Marius.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kladata
Jr. Member
 
Total Posts:  4
Joined:  2010-01-12
 

After that, error is:

ERR (3): Notice: Undefined variable: ulIdHtml in app/code/community/EM/Megamenu/Block/Catalogmenu.php on line 56

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

The error you get now comes from an extension you have installed.
Sorry but I don’t know what you can do from here on.
You can try to debug the extension step by step. (I think)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top