05-28-2024, 08:06 PM
Hi Tim,
I think this is as far as I can get with my poor knowledge of PHP.
I have added this code to /var/www/util/thumb-gen.php near line 319;
The last lines in moode.log read (when opening with vi to see the unprintable characters):
After that, the thumbnail generator seems to crash in file_get_contents() at line 168:
Moode.log continues:
But never prints 'thumb-gen: 12'.
I'm hoping for a solution as I really like MoOde Audio! It might be that the Zend Framework needs to be updated with PHP8?
With best regards,
-Frank
I think this is as far as I can get with my poor knowledge of PHP.
I have added this code to /var/www/util/thumb-gen.php near line 319;
Code:
workerLog('thumb-gen: getImage(): 5');
if (isset($id3v2->apic)) {
//workerLog('thmcache; mp3: id3v2: apic->imageData: length: ' . strlen($id3v2->apic->imageData));
workerLog('thumb-gen: getImage(): 10, imageData = |' . $id3v2->apic->imageData . '|' );
$image = outImage($id3v2->apic->mimeType, $id3v2->apic->imageData);
workerLog('thumb-gen: getImage(): 11, image = |' . $image . '|');
// $image = false;
}
}
The last lines in moode.log read (when opening with vi to see the unprintable characters):
Code:
20240528 215710 thumb-gen: getImage(): 5
20240528 215710 thumb-gen: getImage(): 10, imageData = |^@^@^@^@|
20240528 215710 thumb-gen: outImage(): image/jpg, 4 bytes
20240528 215710 thumb-gen: getImage(): 11, image = |^@^@^@^@|
After that, the thumbnail generator seems to crash in file_get_contents() at line 168:
Code:
if (strlen($imgStr) < 512) {
workerLog('thumb-gen: 11, imgStr = ' .$imgStr);
//workerLog('thumb-gen: Image file: ' . $imgStr);
$imgStr = file_get_contents($imgStr);
workerLog('thumb-gen: 12');
}
Moode.log continues:
Code:
20240528 215710 thumb-gen: 10
20240528 215710 thumb-gen: 11, imgStr = ^@^@^@^@
But never prints 'thumb-gen: 12'.
I'm hoping for a solution as I really like MoOde Audio! It might be that the Zend Framework needs to be updated with PHP8?
With best regards,
-Frank