-
Notifications
You must be signed in to change notification settings - Fork 321
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
{"reqId":"VjZeWhW1a6UDlniaJeaW","level":3,"time":"2023-07-31T02:44:11+00:00","remoteAddr":"192.168.11.25","user":"root","app":"PHP","method":"GET","url":"/index.php/apps/deck/","message":"Declaration of OCA\Deck\Db\RelationalEntity::markFieldUpdated($attribute) must be compatible with OCP\AppFramework\Db\Entity::markFieldUpdated(string $attribute): void at /www/sites/cloud/index/apps/deck/lib/Db/RelationalEntity.php#56","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"27.0.1.2","data":{"app":"PHP"}}
/www/sites/cloud/index $ php occ app:remove deck
PHP Fatal error: Declaration of OCA\Deck\Db\RelationalEntity::markFieldUpdated($attribute) must be compatible with OCP\AppFramework\Db\Entity::markFieldUpdated(string $attribute): void in /www/sites/cloud/index/apps/deck/lib/Db/RelationalEntity.php on line 56
/www/sites/cloud/index $
The error message states that there is a compatibility issue with the method declaration markFieldUpdated in the OCA\Deck\Db\RelationalEntity class. The error is related to its base class OCP\AppFramework\Db\Entity, where the method declaration must be compatible with markFieldUpdated(string $attribute): void at line 56 in the file /www/sites/cloud/index/apps/deck/lib/Db/RelationalEntity.php.
This error is usually encountered when a subclass overrides or implements a method from its parent class, but the method's declaration in the subclass is not compatible with the parent class.
To resolve this issue, you need to manually check the markFieldUpdated method's declaration in the OCA\Deck\Db\RelationalEntity class and ensure that it matches the declaration in its base class OCP\AppFramework\Db\Entity.
The correct declaration for the markFieldUpdated method should be:
php
Copy code
public function markFieldUpdated(string $attribute): void
{
// Method implementation code
}
Once you've fixed the method declaration, you can try running the command to remove the Deck app again:
arduino
Copy code
php occ app:remove deck
If you are not familiar with PHP code or unsure how to fix this issue, you can try uninstalling and reinstalling the Deck app, or reach out to the Deck app's developers or support team for further assistance.
Steps to reproduce
1.install deck app for nextcloud
2.
3.
Expected behavior
null
Installation method
Community Manual installation with Archive
Nextcloud Server version
25
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MySQL
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
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response