nextcloud / files_antivirus

👾 Antivirus app for Nextcloud Files
https://apps.nextcloud.com/apps/files_antivirus
GNU Affero General Public License v3.0
81 stars 33 forks source link

Cannot Change config on NC 25.0.6, Debian 11 (stable) #275

Closed Tequenikality closed 1 year ago

Tequenikality commented 1 year ago

Steps to reproduce

  1. Follow instructions here to install
  2. Go to settings and try to change settings

Expected behaviour

Changes are save and we can move on

Actual behaviour

Nothing, server stays on "saving" - log output:

[index] Error: ParseError: syntax error, unexpected ')', expecting variable (T_VARIABLE) at <<closure>>

 0. /var/www/nextcloud/lib/composer/composer/ClassLoader.php line 428
    Composer\Autoload\includeFile()
 1. <<closure>>
    Composer\Autoload\ClassLoader->loadClass()
 2. <<closure>>
    spl_autoload_call()
 3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 114
    ReflectionClass->__construct()
 4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 133
    OC\AppFramework\Utility\SimpleContainer->resolve()
 5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 466
    OC\AppFramework\Utility\SimpleContainer->query()
 6. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 438
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
 7. /var/www/nextcloud/lib/private/AppFramework/App.php line 159
    OC\AppFramework\DependencyInjection\DIContainer->query()
 8. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
 9. /var/www/nextcloud/lib/base.php line 1048
    OC\Route\Router->match()
10. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

POST /apps/files_antivirus/settings/save
from 192.168.1.102 by brandon at 2023-05-14T08:38:56+00:00

Server configuration

Debian 11:

Apache/2.4.56 (Debian)

MariaDB 10.5.19

PHP 7.4

Nextcloud 25.0.6 (highest supported for php 7.4)

Installed from community install script

Nextcloud configuration:

Server configuration detail

Operating system: Linux 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64

Webserver: Apache/2.4.56 (Debian) (apache2handler)

Database: mysql 10.5.19

PHP version: 7.4.33

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, intl, json, exif, mysqli, pdo_mysql, pdo_sqlite, apc, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Phar, Zend OPcache

Nextcloud version: 25.0.6 - 25.0.6.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

<details><summary>Signing status</summary>

[]
</details>

<details><summary>List of activated apps</summary>

Enabled:
 - activity: 2.17.0
 - admin_audit: 1.15.0
 - bruteforcesettings: 2.5.0
 - calendar: 4.3.3
 - circles: 25.0.0
 - cloud_federation_api: 1.8.0
 - cms_pico: 1.0.21
 - comments: 1.15.0
 - contacts: 5.2.0
 - contactsinteraction: 1.6.0
 - dashboard: 7.5.0
 - dav: 1.24.0
 - deck: 1.8.5
 - external: 5.0.2
 - externalportal: 1.1.0
 - federatedfilesharing: 1.15.0
 - files: 1.20.1
 - files_pdfviewer: 2.6.0
 - files_sharing: 1.17.0
 - files_trashbin: 1.15.0
 - files_versions: 1.18.0
 - forms: 3.2.0
 - integration_homeassistant: 0.0.2
 - logreader: 2.10.0
 - lookup_server_connector: 1.13.0
 - music: 1.8.3
 - nextcloud_announcements: 1.14.0
 - notes: 4.7.2
 - notifications: 2.13.1
 - oauth2: 1.13.0
 - password_policy: 1.15.0
 - privacy: 1.9.0
 - provisioning_api: 1.15.0
 - quota_warning: 1.16.0
 - richdocuments: 7.1.3
 - richdocumentscode: 22.5.1301
 - serverinfo: 1.15.0
 - settings: 1.7.0
 - support: 1.8.0
 - systemtags: 1.15.0
 - text: 3.6.0
 - theming: 2.0.1
 - twofactor_backupcodes: 1.14.0
 - twofactor_totp: 7.0.0
 - twofactor_webauthn: 1.1.2
 - updatenotification: 1.15.0
 - user_status: 1.5.0
 - viewer: 1.9.0
 - weather_status: 1.5.0
 - workflowengine: 2.7.0
Disabled:
 - encryption
 - federation: 1.15.0
 - files_external
 - files_rightclick: 1.4.0
 - firstrunwizard: 2.14.0
 - photos: 2.0.1
 - recommendations: 1.4.0
 - related_resources: 1.0.4
 - sharebymail: 1.15.0
 - survey_client: 1.13.0
 - suspicious_login
 - user_ldap

</details>

<details><summary>Configuration (config/config.php)</summary>

{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "bpowell.net",
        "dellserver.bpowell.net"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "25.0.6.1",
    "overwrite.cli.url": "https:\/\/bpowell.net",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "htaccess.RewriteBase": "\/",
    "default_phone_region": "gb",
    "allow_local_remote_servers": true,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\Movie",
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\MP4"
    ],
    "maintenance": false,
    "default_language": "en_GB"
}

</details>

Cron Configuration: Array
(
[backgroundjobs_mode] => cron
[lastcron] => 1684054802
)

External storages: files_external is disabled

Encryption: no

User-backends:

OC\User\Database

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

Logs

Nextcloud log (data/owncloud.log)

[index] Error: ParseError: syntax error, unexpected ')', expecting variable (T_VARIABLE) at <<closure>>

 0. /var/www/nextcloud/lib/composer/composer/ClassLoader.php line 428
    Composer\Autoload\includeFile()
 1. <<closure>>
    Composer\Autoload\ClassLoader->loadClass()
 2. <<closure>>
    spl_autoload_call()
 3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 114
    ReflectionClass->__construct()
 4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 133
    OC\AppFramework\Utility\SimpleContainer->resolve()
 5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 466
    OC\AppFramework\Utility\SimpleContainer->query()
 6. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 438
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
 7. /var/www/nextcloud/lib/private/AppFramework/App.php line 159
    OC\AppFramework\DependencyInjection\DIContainer->query()
 8. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
 9. /var/www/nextcloud/lib/base.php line 1048
    OC\Route\Router->match()
10. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

POST /apps/files_antivirus/settings/save
from 192.168.1.102 by brandon at 2023-05-14T08:38:56+00:00