Skip to content

occ Not compatible with LoggerInterfaceΒ #1401

@berlin2123

Description

@berlin2123

Which version of recognize are you using?

9.0.7

Enabled Modes

Object recognition

TensorFlow mode

Normal mode

Downstream App

Files App

Which Nextcloud version do you have installed?

31.0.9

Which Operating system do you have installed?

Rocky Linux 9

Which database are you running Nextcloud on?

MariaDB 10.11

Which Docker container are you using to run Nextcloud? (if applicable)

No response

How much RAM does your server have?

32GiB

What processor Architecture does your CPU have?

x86_64

Describe the Bug

The same as #1269 , It should have be solved by #1270 . However, it still the same, when running occ, which make the occ not run.

Expected Behavior

can run occ recognize:download-models in shell

To Reproduce

just update to NC 31, with recognize enabled, and then run any occ, will see the "PHP Fatal error".
If diable recognize app, occ can run.
If I change the apps/recognize/lib/Service/Logger.php file like #1272, i.e., remove "string|\Stringable" in all function definitions in Logger.php, the occ will works again.

Debug log

PHP Fatal error: Declaration of OCA\Recognize\Service\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::emergency($message, array $context = []) in /var/www/html/nextcloud/apps/recognize/lib/Service/Logger.php on line 34

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions