Jump to content

PDF Generation Failed - Smarty Cache - Clearing Cache corrupts class_index


winkl0r

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...