Skip to content

[Bug]: Call to undefined function OCA\\DAV\\Avatars\\imagepng() #57125

@cgzones

Description

@cgzones

⚠️ This issue respects the following points: ⚠️

Bug description

Caused by Nextcloud desktop app the server logs the following error message regularly:

Dec 16 12:44:26 host Nextcloud[1096]: {"reqId":"aUFGGhkH6DWNuxPEU_B8TwAAAFY","level":3,"time":"2025-12-16T11:44:26+00:00","remoteAddr":"<<REMOTE_IP>>","user":"christian","app":"webdav","method":"GET","url":"/remote.php/dav/avatars/christian/128.png","message":"{\"Exception\":\"Error\",\"Message\":\"Call to undefined function OCA\\\\DAV\\\\Avatars\\\\imagepng()\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/sites/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php\",\"line\":85,\"function\":\"get\",\"class\":\"OCA\\\\DAV\\\\Avatars\\\\AvatarNode\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php\",\"line\":89,\"function\":\"httpGet\",\"class\":\"Sabre\\\\DAV\\\\CorePlugin\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":472,\"function\":\"emit\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/apps/dav/lib/Connector/Sabre/Server.php\",\"line\":211,\"function\":\"invokeMethod\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/apps/dav/lib/Server.php\",\"line\":424,\"function\":\"start\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/apps/dav/appinfo/v2/remote.php\",\"line\":22,\"function\":\"exec\",\"class\":\"OCA\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/remote.php\",\"line\":151,\"args\":[\"/var/www/sites/nextcloud/apps/dav/appinfo/v2/remote.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/sites/nextcloud/apps/dav/lib/Avatars/AvatarNode.php\",\"Line\":45,\"message\":\"Call to undefined function OCA\\\\DAV\\\\Avatars\\\\imagepng()\",\"exception\":{},\"CustomMessage\":\"Call to undefined function OCA\\\\DAV\\\\Avatars\\\\imagepng()\"}","userAgent":"Mozilla/5.0 (Linux) mirall/4.0.4daily (Nextcloud, org.kde.Platform-6.17.11-300.fc43.x86_64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.3.2","clientReqId":"693042ee-0d4c-483c-9a90-ddfab71bceff"}

Dec 16 12:44:26 host Nextcloud[1096]: {"reqId":"aUFGGhkH6DWNuxPEU_B8TwAAAFY","level":3,"time":"2025-12-16T11:44:26+00:00","remoteAddr":"<<REMOTE_IP>>","user":"christian","app":"no app in context","method":"GET","url":"/remote.php/dav/avatars/christian/128.png","message":"{\"Exception\":\"Error\",\"Message\":\"Call to undefined function OCA\\\\DAV\\\\Avatars\\\\imagepng()\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/sites/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php\",\"line\":85,\"function\":\"get\",\"class\":\"OCA\\\\DAV\\\\Avatars\\\\AvatarNode\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php\",\"line\":89,\"function\":\"httpGet\",\"class\":\"Sabre\\\\DAV\\\\CorePlugin\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":472,\"function\":\"emit\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/apps/dav/lib/Connector/Sabre/Server.php\",\"line\":211,\"function\":\"invokeMethod\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/apps/dav/lib/Server.php\",\"line\":424,\"function\":\"start\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/apps/dav/appinfo/v2/remote.php\",\"line\":22,\"function\":\"exec\",\"class\":\"OCA\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/var/www/sites/nextcloud/remote.php\",\"line\":151,\"args\":[\"/var/www/sites/nextcloud/apps/dav/appinfo/v2/remote.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/sites/nextcloud/apps/dav/lib/Avatars/AvatarNode.php\",\"Line\":45,\"message\":\"Uncaught exception\",\"exception\":{},\"CustomMessage\":\"Uncaught exception\"}","userAgent":"Mozilla/5.0 (Linux) mirall/4.0.4daily (Nextcloud, org.kde.Platform-6.17.11-300.fc43.x86_64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.3.2","clientReqId":"693042ee-0d4c-483c-9a90-ddfab71bceff"}

Steps to reproduce

  1. just starting the Nexcloud Desktop app

Expected behavior

No error message.

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions