riccardopannocchia Posted June 26, 2019 Share Posted June 26, 2019 (edited) To sort the categories in product associations in BO, I modified a query in the classes/Category.php file (I changed ORDER_BY), when I replaced the modified file on the server I received error 500, so I put the original file back but still error 500, I put prestashop in debug mode now I can see the site again both in front and in BO but when I insert a new product I get an error Notice: Undefined property: Product :: $ no_discount. I have read to delete the app / cache / dev / class_index.php and var / cache / prod / class_index.php files, can this solve the problem? Error : [26-Jun-2019 14:53:12 Europe/Malta] PHP Fatal error: Uncaught Error: Class 'Category' not found in /public_html/classes/Product.php:4653 Stack trace: 0 /public_html/classes/Cart.php(804): ProductCore::getProductProperties(2, Array) 1 /public_html/src/Adapter/Cart/CartPresenter.php(278): CartCore->getProducts(true) 2 /public_html/classes/controller/FrontController.php(495): PrestaShop\PrestaShop\Adapter\Cart\CartPresenter->present(Object(Cart)) 3 /public_html/classes/controller/FrontController.php(544): FrontControllerCore->assignGeneralPurposeVariables() 4 /public_html/controllers/front/PageNotFoundController.php(42): FrontControllerCore->initContent() 5 /public_html/classes/controller/Controller.php(255): PageNotFoundControllerCore->initContent() 6 /public_html/classes/Dispatcher.php(428): ControllerCore->run() 7 /public_html/index.php(28): DispatcherCore->dispatch() 8 {main} thrown in /public_html/classes/Product.php on line 4653 Edited June 27, 2019 by riccardopannocchia (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now