Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I used a command line from poppler which is only available in Linux in hook _file_update
I use this way to flush file in my module fileviewer, and if I run it in windows, the database lost most tables.
foreach (db_select('file_managed', 'fid')->fields('fid', array('fid'))->execute()->fetchCol() as $fid){
$file = file_load($fid);
fileviewer_file_update($file);
}
Comments
Comment #1
shenzhuxi CreditAttribution: shenzhuxi commentedHere is my module
http://drupal.org/project/fileviewer
Comment #2
lyricnz CreditAttribution: lyricnz commentedLooks like an issue with your module. Come back if you can reproduce, and believe that core is misbehaving.