Skip to content

[Bug]: PHP Deprecated: fgetcsv() #57309

@janusn

Description

@janusn

⚠️ This issue respects the following points: ⚠️

Bug description

I ran the following command in the docker container and it spawned the following 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.

Steps to reproduce

  1. go into the docker container by $ docker exec -it nextcloud bash
  2. run the comment occ files:scan --all --generate-metadata
  3. watch the output

Expected behavior

Few to no errors.

Nextcloud Server version

32

Operating system

Other

PHP engine version

PHP 8.4

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "version": "32.0.3.2",
        "overwriteprotocol": "https",
        "installed": true,
        "default_phone_region": "GB",
        "maintenance": false,
        "loglevel": 0,
        "theme": "",
        "filelocking.enabled": true,
        "upgrade.disable-web": true,
        "filesystem_check_changes": 0,
        "maintenance_window_start": 1,
        "remember_login_cookie_lifetime": 2592000,
        "session_lifetime": 604800,
        "memories.exiftool": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.gis_type": 1,
        "memories.db.triggers.fcu": true,
        "dbtype": "mysql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nc.chubbie.duckdns.org",
            "nextcloud.chubbie.duckdns.org",
            "nc.ng.internal",
            "nextcloud.ng.home"
        ],
        "overwrite.cli.url": "https:\/\/nc.chubbie.duckdns.org",
        "overwritehost": "nc.chubbie.duckdns.org",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": true,
        "preview_concurrency_all": 72,
        "preview_concurrency_new": 36,
        "preview_max_x": 4096,
        "preview_max_y": 4096,
        "jpeg_quality": 80,
        "preview_max_scale_factor": 1,
        "preview_max_filesize_image": 50,
        "preview_max_memory": 256,
        "enabledPreviewProviders": [
            "OC\\Preview\\Krita",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\TXT",
            "OC\\Preview\\Movie",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\Imaginary"
        ],
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "app_install_overwrite": {
            "1": "memories",
            "2": "imageconverter",
            "3": "maps"
        }
    }
}

List of activated Apps

Enabled:
  - activity: 5.0.0-dev.0
  - bruteforcesettings: 5.0.0-dev.0
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contactsinteraction: 1.13.1
  - dashboard: 7.12.0
  - dav: 1.34.2
  - external: 7.0.0
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_downloadlimit: 5.0.0-dev.0
  - files_external: 1.24.0
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - firstrunwizard: 5.0.0-dev.0
  - imageconverter: 2.1.0
  - logreader: 5.0.0-dev.0
  - lookup_server_connector: 1.20.0
  - memories: 7.7.0
  - nextcloud_announcements: 4.0.0-dev.0
  - notifications: 5.0.0-dev.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0-dev.0
  - photos: 5.0.0-dev.1
  - previewgenerator: 5.11.0
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recognize: 10.0.7
  - recommendations: 5.0.0-dev.0
  - related_resources: 3.0.0-dev.0
  - serverinfo: 4.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - support: 4.0.0-dev.0
  - survey_client: 4.0.0-dev.0
  - systemtags: 1.22.0
  - text: 6.0.1
  - theming: 2.7.0
  - twofactor_backupcodes: 1.21.0
  - twofactor_totp: 14.0.0
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0-dev.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - workflowengine: 2.14.0
Disabled:
  - admin_audit: 1.22.0
  - app_api: 32.0.0 (installed 32.0.0)
  - encryption: 2.20.0
  - maps: 1.6.0 (installed 1.6.0)
  - suspicious_login: 10.0.0-dev.0 (installed 10.0.0-dev.0)
  - twofactor_nextcloud_notification: 6.0.0-dev.0
  - user_ldap: 1.23.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

I have trouble identifying the related messages from the log.

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions