Fehler: Undefined array key ... at /var/www/nextcloud/apps/admin_audit/lib/Actions/Files.php#76

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x): 30.0.5.1

  • Operating system and version (e.g., Ubuntu 24.04):

    • 24.04.1
  • Web server and version (e.g, Apache 2.4.25):

    • NGinx 1.27
  • Reverse proxy and version _(e.g. nginx 1.27.2)

    • NGinx 1.26.2
  • PHP version (e.g, 8.3):

    • 8.3.11
  • Is this the first time you’ve seen this error? (Yes / No):

    • Yes
  • When did this problem seem to first start?

    • after upgrade from 30.0.4 to 30.0.5.1
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • VM on proxmox
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • No

Summary of the issue you are facing:

While writing to NC (creating folders, writing files, copy, moving, etc.) i get some errors in the log

Undefined array key 30179722 at /var/www/nextcloud/apps/admin_audit/lib/Actions/Files.php#76

and

Error
Call to a member function getInternalPath() on null

Steps to replicate it (hint: details matter!):

  1. upload a folder containing files (does not matter what - docs, executables, pictures, etc.
  2. folder / files seems to be created (uploaded) correctly so far
  3. in the logs i can see the error messages above

Log entries

/var/www/nextcloud/apps/admin_audit/lib/AppInfo/Application.php
Zeile 201
OCA\AdminAudit\Actions\Files->afterRename()
/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php
Zeile 220
OCA\AdminAudit\AppInfo\Application->OCA\AdminAudit\AppInfo\{closure}(
  "*** sensitive parameters replaced ***"
)
/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php
Zeile 56
Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php
Zeile 67
Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php
Zeile 79
OC\EventDispatcher\EventDispatcher->dispatch()
/var/www/nextcloud/lib/private/Files/Node/HookConnector.php
Zeile 169
OC\EventDispatcher\EventDispatcher->dispatchTyped()
/var/www/nextcloud/lib/private/legacy/OC_Hook.php
Zeile 82
OC\Files\Node\HookConnector->postRename()
/var/www/nextcloud/lib/private/Files/View.php
Zeile 812
OC_Hook::emit()
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php
Zeile 416
OC\Files\View->rename()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php
Zeile 178
OCA\DAV\Connector\Sabre\Directory->moveInto()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php
Zeile 612
Sabre\DAV\Tree->move()
/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php
Zeile 89
Sabre\DAV\CorePlugin->httpMove()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php
Zeile 472
Sabre\DAV\Server->emit()
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php
Zeile 43
Sabre\DAV\Server->invokeMethod()
/var/www/nextcloud/apps/dav/lib/Server.php
Zeile 371
OCA\DAV\Connector\Sabre\Server->start()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php
Zeile 19
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php
Zeile 146
undefinedundefinedrequire_once(
  "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"
)

and the other error messages is

[PHP] Fehler: Undefined array key 30179722 at /var/www/nextcloud/apps/admin_audit/lib/Actions/Files.php#76
	MOVE /remote.php/dav/files/christian/Folder_A/Subfolder_B/file_xy
	von 192.168.55.121 von user um 02.02.2025, 13:30:25

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

see above

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

no errors during file movement or creation

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

nothing as far as i can see

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

I am not very sure about the following post on github

But perhaps someone can confirm that this behaviour is part of that issue posted on github?
I have changed the file as far as seen in the “files_changed” part of that issue post.

Thanks in advance