Posts

Showing posts from February, 2020

Prestashop Admin Controller get Access Denied Error

Image
Prestahop AdminController get Access Denied Error Error: Access Denied Prestashop How To Access Denied error comes when you will create Controller manually inside Prestashop Controller Folder because you controller cannot assign with A ccess and A uthorization Role Table. If you want to view new controller data then put this function in your controller. public function viewAccess($disable = false) { return true; } If you want to perform Create, Read, Update, Delete default operations defined by Prestashop So You need to assigned the Controller in the prestashop database table's name "access" and in "authorization_role" is necessary .

Prestashop PDF Download Error

Prestashop PDF Download Error If you got error while downloading pdf file in Prestashop Error : TCPDF ERROR: Some data has already been output to browser, can't send PDF file First of all check the below line of code in classes/pdf/PDF.php in your Prestashop ob_clean(); or ob_end_clean(); is there if ($render) { if (ob_get_level() && ob_get_length() > 0) { ob_clean(); } return $this->pdf_renderer->render($this->filename, $display); } and try to Download pdf file. If it's not working just add below highlighted line of code inside the constructor top in classes/pdf/PDF.php __constructor() function . ob_start(); save file and download your pdf again.