Error when viewing PDF file – “documentType parameter for the config object is invalid”

I am facing an issue when trying to open/view a PDF file in OnlyOffice within Nextcloud.

Instead of opening the file, I get the following error in an alert box:
The “documentType” parameter for the config object is invalid. Please correct it.
Steps to Reproduce:

  1. Log in to Nextcloud.
  2. Navigate to any folder with a PDF file.
  3. Attempt to open the PDF file with OnlyOffice.
  4. Error alert is displayed.

Expected Result:
The PDF file should open in the OnlyOffice viewer/editor without any error.

Actual Result:
An alert appears with the error:
The “documentType” parameter for the config object is invalid.

Environment Details:

  • Nextcloud version: Nextcloud Hub 10 (32.0.0 dev)
  • OnlyOffice app version: Version 9.10.0
  • PHP version: 8.0
  • Browser: Chrome

Additional Notes:

  • This issue occurs only with PDF files. Other formats (DOCX, XLSX, PPTX) seem to work fine.

Please check your browser console as described in the support template.

Note this may simply be happening because you appear to be testing on an early beta of v32.

Hi,

Thank you for your response.

I re-tested as you asked: the browser console shows no errors, just the alert:

The “documentType” parameter for the config object is invalid. Please correct it.

Confirming: I am currently running Nextcloud Hub 10 (32.0.0 dev).
ONLYOFFICE connector: Version 9.10.0
DocumentServer: Version 0.2.0

This only happens for PDFs. DOCX/XLSX/PPTX open fine.

Thank you.

The OO Connector is not yet released for Nextcloud Server v32 (which itself is not yet released outside of early betas). I presume you force enabled it.

The OnlyOffice folks know about some of the issues based on what I see in GitHub. Based on a quick look I would expect problems trying to use it with the early betas of v32 for now.

There are likely errors in your server-side log (which can be checked by following the instructions in the support template).