Showing results for 
Search instead for 
Did you mean: 

SKU column filtering causes non-static error

SKU column filtering causes non-static error

Hello Community,


I have followed the guide here by Volodymyr Vygovskyi, everything is working well, apart from when you filter by a sku, it causes the issue:


> Strict Notice: call_user_func() expects parameter 1 to be a valid callback, non-static method
> Atwix_ExtendedGrid_Model_Observer::filterSkus() should not be called
> statically in
> /Applications/XAMPP/xamppfiles/htdocs/mag19/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php
> on line 468

Investigating this I can see that he has the following as his filter_condition_callback:


 'filter_condition_callback' => array('Atwix_ExtendedGrid_Model_Observer', 'filterSkus'),




Is being called statically, I have attempted to correct this  by changing it to $this but it causes filterSkus to not be found. Moving the the filter function to helper solves this bit, but then the filter part breaks.


I was hoping someone could kindly help myself solve this.