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.
When creating a simple views pdf, i always get a memory issue when trying to edit the view.
It seems that the following line is the culprit:
#1042 in views_pdf_template.php
so basicly on line 969 the following happens
foreach ($fonts as $font) {
$name = self::getFontNameByFileName($font->uri);
if(isset($name)) {
$font_mapping[$font->name] = $name;
}
}
getFontNameByFileName is being called, and that's causing the error, so when i comment out the $name = self::getFontNameByFileName($font->uri) part, the memory issue disappears.
my memory limit is set to 128mb
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedI suppose it isn't better with the last version, so changing it during triage.
Comment #2
killua99 CreditAttribution: killua99 commentedThis issue is delicate .... because it's PHP setup.
Comment #3
killua99 CreditAttribution: killua99 commentedRe-open if you have a PHP setup with more than 256M and this still happen.