Skip to content

PHP Deprecated: fgetcsv() #3359

@janusn

Description

@janusn

Describe the bug
The command occ files:scan --all --generate-metadata generated logs of warnings.

# occ files:scan --all --generate-metadata
Starting scan for user 1 out of 3 (janus)
PHP Deprecated:  fgetcsv(): the $escape parameter must be provided as its default value will change in /config/www/nextcloud/apps/photos/lib/Service/ReverseGeoCoderService.php on line 124
PHP Deprecated:  fgetcsv(): the $escape parameter must be provided as its default value will change in /config/www/nextcloud/apps/photos/lib/Service/ReverseGeoCoderService.php on line 124
PHP Deprecated:  fgetcsv(): the $escape parameter must be provided as its default value will change in /config/www/nextcloud/apps/photos/lib/Service/ReverseGeoCoderService.php on line 124
PHP Deprecated:  fgetcsv(): the $escape parameter must be provided as its default value will change in /config/www/nextcloud/apps/photos/lib/Service/ReverseGeoCoderService.php on line 124
PHP Deprecated:  fgetcsv(): the $escape parameter must be provided as its default value will change in /config/www/nextcloud/apps/photos/lib/Service/ReverseGeoCoderService.php on line 124

... after thousands of lines

PHP Deprecated:  fgetcsv(): the $escape parameter must be provided as its default value will change in /config/www/nextcloud/apps/photos/lib/Service/ReverseGeoCoderService.php on line 124
PHP Deprecated:  fgetcsv(): the $escape parameter must be provided as its default value will change in /config/www/nextcloud/apps/photos/lib/Service/ReverseGeoCoderService.php on line 124
Error during scan: exif_read_data(): File not supported
Error during scan: exif_read_data(): File not supported
Error during scan: exif_read_data(): File not supported

... The process is still running.

To Reproduce
Steps to reproduce the behavior:

  1. docker exec -it nextcloud bash
  2. occ files:scan --all --generate-metadata

Expected behavior
No PHP warnings.

Screenshots
If applicable, add screenshots to help explain your problem.
Not applicable.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Not applicable.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Not applicable.

Browser log

Open your console, reload your page and/or do the action leading to this issue and copy/paste the log in this thread.

Not appliable.

Additional context
Photos version: v5.0.0-dev.1
Nextcloud version: Nextcloud Hub 25 Autumn (32.0.3)
OS: Alpine Linux v3.22
PHP version: 8.4.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    2. developingWork in progressbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions