diff --git a/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php b/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php index 2f43e28b..10eb7c9e 100644 --- a/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php +++ b/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php @@ -204,7 +204,7 @@ public static function getPagesNeedingToMove($limit = 50) { $file = \Drupal\file\Entity\File::load($fid); $page = \Drupal::entityTypeManager() ->getStorage('digital_serial_page') - ->loadByProperties(['page_image' => $file->getFileUri()]); + ->loadByProperties(['page_image' => $file->id()]); if ($page != NULL) { $pages[] = $page; }