files_fulltextsearch
files_fulltextsearch copied to clipboard
PHP Fatal error: Trait method get has not been applied, because there are collisions with other trait methods
Hello, i just upgraded files_fulltextsearch to 20.0.3 on NC 20.0.9
I got a 500 error, this one:
{"reqId":"5D4H9KN7q7RS3tKTW8kV","level":3,"time":"2021-05-15T23:34:48+02:00","remoteAddr":"X.X.X.X","user":"B59EB1C5-1D23-4753-8551-D724DCA077E0","app":"PHP","method":"GET","url":"/apps/files/","message":"Trait method get has not been applied, because there are collisions with other trait methods on OCA\\Files_FullTextSearch\\Service\\ExternalFilesService at /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/ExternalFilesService.php#63","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36","version":"20.0.9.1"}
Disabling plugin make NC 20.0.9 working again
Regards
EDIT: I forgot php version:
PHP 7.2.24-0ubuntu0.18.04.7 (cli) (built: Oct 7 2020 15:24:25) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.24-0ubuntu0.18.04.7, Copyright (c) 1999-2018, by Zend Technologies
Same issue. Maybe php version is relevant:
PHP 7.2.24-0ubuntu0.18.04.7 (cli) (built: Oct 7 2020 15:24:25) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.24-0ubuntu0.18.04.7, Copyright (c) 1999-2018, by Zend Technologies
With NC 20.0.10 and PHP 7.2.34 having the same issue with this app. Disabled and then removed the app to cure the problem. The offending app is thankfully logged in the Method path OCA\ Files_FullTextSearch \Service\ExternalFilesService
Had exactly the same error message with all file uploads and deletions in NGINX error.log:
Upload:
2021/06/06 16:39:08 [error] 1828#1828: *710 FastCGI sent in stderr: "PHP message: PHP Fatal error: Trait method get has not been applied, because there are collisions with other trait methods on OCA\Files_FullTextSearch\Service\ExternalFilesService in /usr/local/lib/owncloud/apps/files_fulltextsearch/lib/Service/ExternalFilesService.php on line 63" while reading response header from upstream, client: 1.1.1.1, server: domain.tld, request: "PUT /cloud/remote.php/webdav/Test/FG_lcd_rear_cover_right.stl HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "domain.tld"
Deletion:
2021/06/06 16:39:21 [error] 1828#1828: *710 FastCGI sent in stderr: "PHP message: PHP Fatal error: Trait method get has not been applied, because there are collisions with other trait methods on OCA\Files_FullTextSearch\Service\ExternalFilesService in /usr/local/lib/owncloud/apps/files_fulltextsearch/lib/Service/ExternalFilesService.php on line 63" while reading response header from upstream, client: 1.1.1.1, server: domain.tld, request: "DELETE /cloud/remote.php/dav/files/[email protected]/Test/FG_lcd_rear_cover_right.stl HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "domain.tld"