Notice: Trying to get property 'category_id' of non-object in /home/winxzshop.com/public_html/core/app/action/addtocart-action.php on line 23

Fatal error: Uncaught Error: Call to a member function fetch_array() on bool in /home/winxzshop.com/public_html/core/controller/Model.php:44 Stack trace: #0 /home/winxzshop.com/public_html/admin/core/app/model/CategoryData.php(50): Model::one() #1 /home/winxzshop.com/public_html/core/app/action/addtocart-action.php(23): CategoryData::getById() #2 /home/winxzshop.com/public_html/core/controller/Action.php(22): include('/home/winxzshop...') #3 /home/winxzshop.com/public_html/core/app/init.php(15): Action::load() #4 /home/winxzshop.com/public_html/core/controller/Lb.php(15): include('/home/winxzshop...') #5 /home/winxzshop.com/public_html/index.php(27): Lb->start() #6 {main} thrown in /home/winxzshop.com/public_html/core/controller/Model.php on line 44