[Bug]: PHP 8.1.9: class "logger" does not exist #858
Labels
bug
good first issue
Small tasks with clear documentation about how and in which place you need to fix things in.
Bug description
in reference to #33531: : using PHP 7.4, maps floods the log with the following message:
`[no app in context] Fehler: OCP\AppFramework\QueryException: Could not resolve logger! Class "logger" does not exist at <>
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}("*** sensitive parameters replaced ***")
array_map(Closure {}, [ReflectionParam ... "])
OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass ... "})
OC\AppFramework\Utility\SimpleContainer->resolve("OCA\Maps\List ... r")
OC\AppFramework\Utility\SimpleContainer->query("OCA\Maps\List ... r", true)
OC\ServerContainer->query("OCA\Maps\List ... r")
OC\EventDispatcher\ServiceEventListener->__invoke(OCA\DAV\Events\CardUpdatedEvent {}, "OCA\DAV\Events\CardUpdatedEvent", Symfony\Componen ... {})
Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {},Closure {}], "OCA\DAV\Events\CardUpdatedEvent", OCA\DAV\Events\CardUpdatedEvent {})
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCA\DAV\Events\CardUpdatedEvent {}, "OCA\DAV\Events\CardUpdatedEvent")
OC\EventDispatcher\EventDispatcher->dispatch("OCA\DAV\Events\CardUpdatedEvent", OCA\DAV\Events\CardUpdatedEvent {})
OC\EventDispatcher\EventDispatcher->dispatchTyped(OCA\DAV\Events\CardUpdatedEvent {})
OCA\DAV\CardDAV\CardDavBackend->updateCard("*** sensitive parameters replaced ***")
Sabre\CardDAV\Card->put("*** sensitive parameters replaced ***")
Sabre\DAV\Server->updateFile("*** sensitive parameters replaced ***")
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
Sabre\DAV\Server->emit("method:PUT", [Sabre\HTTP\Requ ... }])
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
Sabre\DAV\Server->start()
Sabre\DAV\Server->exec()
OCA\DAV\Server->exec()
require_once("/www/nextcloud/ ... p")
PUT /remote.php/dav/addressbooks/users/joerg.schulz/default/29adc0b0-c7b9-45d0-92b6-483ff052ccdf.vcf
from 172.21.0.1 by joerg.schulz at 2022-09-27T08:08:10+02:00`
Steps to reproduce
1.install maps
2.activate maps
3.log is created
4. on deactivation of maps, this log isn't created any longer
Expected behavior
this message should not appear.
Installation method
Other
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install of the server?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Is this bug present after an update or on a fresh install of the app?
No response
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Browser Console
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: