winkl0r Posted November 3, 2016 Share Posted November 3, 2016 HI, we are facing a Problem with our Presta Shop installation (1.6.1.7) whenever we clear the smarty cache in the GUI following entrys dissapear from the /www/cache/class_index file: 'PDFGenerator' => array ( 'path' => '', 'type' => 'class', 'override' => false, ), 'PDFGeneratorCore' => array ( 'path' => 'override/classes/pdf/PDFGenerator.php', 'type' => 'class', 'override' => false, ), after that only an "empty page" is displayed when clicking on an invoice or any other PDF. Strange thing is, this file is automatically generated, and to fix the issue, we have to delete the class_index from the cache directory. When the file is then automatically generated again all the entries are there and PDF generation works like a charm.I dont understand, why this is happening. Any ideas what could be the problem? Currently I've set the "never clear cache" option, to prevent the shop from corrupting itself after every change, because the default option is to clear cache after every change.Thanks in advance! Link to comment Share on other sites More sharing options...
tuk66 Posted November 3, 2016 Share Posted November 3, 2016 Can you post the /override/classes/pdf/PDFGenerator.php file? Link to comment Share on other sites More sharing options...
winkl0r Posted November 3, 2016 Author Share Posted November 3, 2016 I have attached the requested file. /www/override/classes/pdf/PDFGenerator.php Thanks in advance! PDFGenerator.php Link to comment Share on other sites More sharing options...
tuk66 Posted November 3, 2016 Share Posted November 3, 2016 Classes in the override directory can have only this form: class PDFGenerator extends PDFGeneratorCore { } Link to comment Share on other sites More sharing options...
winkl0r Posted November 3, 2016 Author Share Posted November 3, 2016 Ok, I will have a look at that.but do you have any idea how this happened? was working until we upgraded from 1.6.1.3 to 1.6.3.7 a few weeks ago with "1 Click upgrade", we did not copy anything manually to that location. 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