Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: After update to NC 28: onlyoffice cant connect. Exception: array_merge(): Argument #2 must be of type array #43001

Closed
5 of 8 tasks
tgaertner opened this issue Jan 21, 2024 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug

Comments

@tgaertner
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

After Upgrading Nextcloud (docker) to version 28 (currently 28.0.1) onlyoffice stopped working. Setting do look okay and show me all the options for onlyoffice. On v 27 it was working fine. When I try to open a file it shown me "Onlyoffice is currently not available. Please contact a system administrator."

I use the integrated "ONLYOFFE" App v9.0.0
and App "Community Document Server" v0.1.13

Log error see below.

Steps to reproduce

  1. Setup with NC 28, ONLYOFFICE APP and Document Communitiy Server App
  2. Try to open a file that opens in onlyoffe
  3. Error message is displayed and I see the reported error in the log.

Expected behavior

It should work :-)

Installation method

Community Docker image

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

"system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.2.108",
            "cloud.#########.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.1.1",
        "overwrite.cli.url": "http:\/\/192.168.2.108",
        "overwritehost": "cloud.######.de",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "maintenance": false,
        "theme": "",
        "default_phone_region": "DE",
        "app_install_overwrite": [
            "documentserver_community"
        ],
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [
            "No2FA"
        ],
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl"
    }

List of activated Apps

Enabled:
  - bruteforcesettings: 2.8.0
  - calendar: 4.6.4
  - cloud_federation_api: 1.11.0
  - contacts: 5.5.1
  - contactsinteraction: 1.9.0
  - dashboard: 7.8.0
  - dav: 1.29.1
  - deck: 1.12.1
  - documentserver_community: 0.1.13
  - federatedfilesharing: 1.18.0
  - files: 2.0.0
  - files_pdfviewer: 2.9.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - firstrunwizard: 2.17.0
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - nextcloud_announcements: 1.17.0
  - notes: 4.9.2
  - notifications: 2.16.0
  - oauth2: 1.16.3
  - onlyoffice: 9.0.0
  - password_policy: 1.18.0
  - polls: 6.0.1
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - side_menu: 3.11.3
  - support: 1.11.0
  - survey_client: 1.16.0
  - tasks: 0.15.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - twofactor_totp: 10.0.0-beta.2
  - updatenotification: 1.18.0
  - viewer: 2.2.0
  - workflowengine: 2.10.0
Disabled:
  - activity: 2.20.0 (installed 2.19.0)
  - admin_audit: 1.18.0
  - circles: 28.0.0-dev (installed 23.0.0)
  - comments: 1.18.0 (installed 1.17.0)
  - encryption: 2.16.0
  - federation: 1.18.0 (installed 1.17.0)
  - files_external: 1.20.0
  - files_reminders: 1.1.0 (installed 1.0.0)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - files_versions: 1.21.0 (installed 1.21.0)
  - photos: 2.4.0 (installed 1.3.0)
  - recommendations: 2.0.0 (installed 1.6.0)
  - related_resources: 1.3.0 (installed 1.2.0)
  - suspicious_login: 6.0.0
  - systemtags: 1.18.0 (installed 1.17.0)
  - user_ldap: 1.19.0
  - user_status: 1.8.1 (installed 1.7.0)
  - weather_status: 1.8.0 (installed 1.3.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Exception: array_merge(): Argument #2 must be of type array, null given
                              in file '/var/www/html/lib/public/AppFramework/Http/Response.php' line                             
                              273 at lib/private/AppFramework/Http/Dispatcher.php line 169                                       
                                                                                                                                 
                              0. .../App.php line 184                                                                            
                                 OC\AppFramework\Http\Dispatcher->dispatch(                                                      
                                   ["OCA\\DocumentSe ... "],                                                                     
                                   "webApps"                                                                                     
                                 )                                                                                               
                              1. lib/private/Route/Router.php line 315                                                           
                                 OC\AppFramework\App::main(                                                                      
                                   "OCA\\DocumentServer\\Controller\ ... r",                                                     
                                   "webApps",                                                                                    
                                   ["OC\\AppFramework\\DependencyInj ... "],                                                     
                                   ["apps\/api\/documents\/api.js"," ... "]                                                      
                                 )                                                                                               
                              2. lib/base.php line 1069                                                                          
                                 OC\Route\Router->match("\/apps\/documentserver_community\/w ... s")                             
                              3. index.php line 39                                                                               
                                 OC::handleRequest(                                                                              
                                                                                                                                 
                                 )                                                                                               
                                                                                                                                 
                              Caused by TypeError: array_merge(): Argument #2 must be of type array, null given                           
                              at lib/public/AppFramework/Http/Response.php line 273                                              
                                                                                                                                 
                               0. lib/public/AppFramework/Http/Response.php line 273                                             
                                  array_merge(                                                                                   
                                    ["hBDai7ssQYvILWos2WIP","no-cache, no-store, m ... "],                                       
                                    null                                                                                         
                                  )                                                                                              
                               1. .../FileResponse.php line 40                                                                   
                                  OCP\AppFramework\Http\Response->getHeaders(                                                    
                                                                                                                                 
                                  )                                                                                              
                               2. .../StaticController.php line 126                                                              
                                  OCA\DocumentServer\FileResponse->__construct(                                                  
                                    "*** sensitiv ... *",                                                                        
                                    46562,                                                                                       
                                    1703277656,                                                                                  
                                    "application\ ... t",                                                                        
                                    "api.js"                                                                                     
                                  )                                                                                              
                               3. .../StaticController.php line 112                                                              
                                  OCA\DocumentServer\Controller\StaticController->createFileResponseWithContent(                           
                                    "*** sensitive para ... *"                                                                   
                                  )                                                                                              
                               4. .../StaticController.php line 104                                                              
                                  OCA\DocumentServer\Controller\StaticController->createFileResponse(                            
                                    "*** sensitive parameters repl ... *"                                                        
                                  )                                                                                              
                               5. .../Dispatcher.php line 230                                                                    
                                  OCA\DocumentServer\Controller\StaticController->webApps("a ... s")                             
                               6. .../Dispatcher.php line 137                                                                    
                                  OC\AppFramework\Http\Dispatcher->executeController(                                            
                                    ["OCA\\ ... "],                                                                              
                                    "webApps"                                                                                    
                                  )                                                                                              
                               7. .../App.php line 184                                                                           
                                  OC\AppFramework\Http\Dispatcher->dispatch(                                                     
                                    ["OCA\\DocumentS ... "],                                                                     
                                    "webApps"                                                                                    
                                  )                                                                                              
                               8. .../private/Route/Router.php line 315                                                          
                                  OC\AppFramework\App::main(                                                                     
                                    "OCA\\DocumentServer\\Controller ... r",                                                     
                                    "webApps",                                                                                   
                                    ["OC\\AppFramework\\DependencyIn ... "],                                                     
                                    ["apps\/api\/documents\/api.js", ... "]                                                      
                                  )                                                                                              
                               9. lib/base.php line 1069                                                                         
                                  OC\Route\Router->match("\/apps\/documentserver_community\/ ... s")                             
                              10. index.php line 39                                                                              
                                  OC::handleRequest(                                                                             
                                                                                                                                 
                                  )

Additional info

No response

@tgaertner tgaertner added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 21, 2024
@joshtrichards
Copy link
Member

From the looks of it, you force enabled documentserver_community which doesn't have a release available for NC28 at this time.

https://github.com/nextcloud/documentserver_community

This is not a bug in Server.

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants