php - Strict Standards: Non-static method (joomla and roksprocket) -
strict standards: non-static method k2modelitemlist::getcategorytree() should not called statically, assuming $this incompatible context in c:\xampp\htdocs\virgin\components\com_roksprocket\lib\roksprocket\provider\k2\filter.php on line 151
all
i have error...i using roksprocket, joomla , received above error... seems have originated
protected function category($data) { if(file_exists(jpath_site.'/components/com_k2/models/itemlist.php')) require_once (jpath_site.'/components/com_k2/models/itemlist.php'); $wheres = array(); foreach($data $match){ $categories = k2modelitemlist::getcategorytree($match);
any idea how fix this.
making joomla compatible strict requirements still work in progress. core has come long way on road, many extension developers still not aware of current best practices.
development environment
stay maximum error_level
, repair broken code prepending function
keyword public static
. you'll loose on updates, vcs re-fix quickly.
production environment
on productive systems, error_reporting
can lowered not include strict warnings. configure server log errors instead of displaying them.
Comments
Post a Comment