VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: aron1996 on September 16, 2021, 14:30:47 PM

Title: Strange error message when i enter the webshop as super user
Post by: aron1996 on September 16, 2021, 14:30:47 PM
Hello!

I have a webshop. When I log in as a superuser I get a strange error.

Warning: Declaration of VirtuemartModelProductFilter::setPaginationLimits() should be compatible with VirtueMartModelProduct::setPaginationLimits($force = false) in /home/munkaru1/public_html/modules/mod_sj_vm_filter/core/helper.php on line 434.

I use SJ Filter for VirtueMart module i think this is a mistake.







Title: Re: Strange error message when i enter the webshop as super user
Post by: GJC Web Design on September 16, 2021, 15:58:19 PM
its just a notice.. 

u can fix it by adding the parameter to the function call   in the sj filter  on the line mentioned

something like

setPaginationLimits(false)
Title: Re: Strange error message when i enter the webshop as super user
Post by: Milbo on October 05, 2021, 14:32:38 PM
no the function in VirtueMartModelProductFilter is not compatible with the original one, so he must add the param
setPaginationLimits($force = false)
so the $force = false is missing