Skip to content

Unsupported operand types: int * string in /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelIfd.php:447 #652

Description

@GHJester

Hi all,

Nextcloud is running in a docker container on my host. Recently I updated to version 22.1.1. Maps is running with version 0.1.9. Today I checked for another update and have seen that the last cron job execution was 6 days ago, even though I configured to run every 5 minutes.
When I execute the cron job manually by executing docker exec -u www-data nextcloud php cron.php, I get the following error output:

TypeError: Unsupported operand types: int * string in /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelIfd.php:447
Stack trace:
#0 /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelCanonMakerNotes.php(215): lsolesen\pel\PelIfd->loadSingleValue(Object(lsolesen\pel\PelDataWindow), 4776, 0, 256)
#1 /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelIfd.php(406): lsolesen\pel\PelCanonMakerNotes->load()
#2 /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelTiff.php(159): lsolesen\pel\PelIfd->load(Object(lsolesen\pel\PelDataWindow), 10)
#3 /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelExif.php(108): lsolesen\pel\PelTiff->load(Object(lsolesen\pel\PelDataWindow))
#4 /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelJpeg.php(216): lsolesen\pel\PelExif->load(Object(lsolesen\pel\PelDataWindow))
#5 /var/www/html/custom_apps/maps/vendor/lsolesen/pel/src/PelJpeg.php(126): lsolesen\pel\PelJpeg->load(Object(lsolesen\pel\PelDataWindow))
#6 /var/www/html/custom_apps/maps/lib/Service/PhotofilesService.php(442): lsolesen\pel\PelJpeg->__construct(Object(lsolesen\pel\PelDataWindow))
#7 /var/www/html/custom_apps/maps/lib/Service/PhotofilesService.php(384): OCA\Maps\Service\PhotofilesService->getExifPelBackup(Object(OC\Files\Node\File))
#8 /var/www/html/custom_apps/maps/lib/Service/PhotofilesService.php(264): OCA\Maps\Service\PhotofilesService->getExif(Object(OC\Files\Node\File))
#9 /var/www/html/custom_apps/maps/lib/BackgroundJob/AddPhotoJob.php(56): OCA\Maps\Service\PhotofilesService->addPhotoNow(Object(OC\Files\Node\File), 'XXXXX')
#10 /var/www/html/lib/public/BackgroundJob/Job.php(79): OCA\Maps\BackgroundJob\AddPhotoJob->run(Array)
#11 /var/www/html/lib/public/BackgroundJob/QueuedJob.php(47): OCP\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#12 /var/www/html/cron.php(127): OCP\BackgroundJob\QueuedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#13 {main}
  1. This seems for me to be related to A non-numeric value encountered at /var/www/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelIfd.php#447 pel/pel#156. But this issue is already fixed.
  2. As far as I understood Nexcloud 22.1.1 has been upgraded to use PHP 8. This explains the different message Unsupported operand types: int * string
  3. I think I need to mention that I uploaded a bulk of very old photos to my Nextcloud instance a few days ago. It is very likely that one of them caused that issue. But I don't have any clue how to figure out. But as 1. has been fixed in 2020 I assume that Maps is still using an old version of pel!?

Do you have an idea how to fix or is there something I can change?

Cheers
Jester

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions