# Bug NEX-737 - Internal Server Error when enabling OpenProject navigation in Nextcloud 33 and 34

Project: Stream Nextcloud app "OpenProject Integration"
Status: in development
URL: https://community.openproject.org/work_packages/NEX-737

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | Nextcloud Integration 3.4.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Ashim Shrestha |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

We are using:

  - Nextcloud **33 and 34**

  - Nextcloud OpenProject Integration **3.4.0 - nightly**

We searched for existing reports but could not find an issue matching this exact behaviour.

### Steps to reproduce

Preconditions:

  - Nextcloud Stable 33 or 34 is running.

  - OpenProject is running and accessible.

  - Nextcloud is connected to an OpenProject instance.

  - The **Enable Navigation Link** option is visible on the Nextcloud OpenProject Integration page on Nextcloud

Steps:

1.  Log in to Nextcloud with a user whose OpenProject account is connected.

2.  Establish a connection between Nextcloud and OpenProject using two-way OAuth 2.0 authorization.

3.  Verify that the connection is established successfully.

4.  Enable the **Navigation Link** option.

5.  Refresh the Nextcloud page or navigate to another page using the sidebar.

6.  Observe that Nextcloud displays an Internal Server Error.

**Nextcloud versions tested:**  
\- 33.0.11 – Issue reproducible  
\- 34.0.6 – Issue reproducible  
\- 35 – Issue **not** observed

### What is the buggy behaviour?

After successfully establishing a connection between Nextcloud and OpenProject, enabling the Navigation  Link option causes Nextcloud to crash when the page is refreshed or when the user navigates to another page.

### What is the expected behaviour?

1.  The connection between Nextcloud and OpenProject should be established successfully.

2.  Enabling the Navigation Link option should display a link to the OpenProject instance in the Nextcloud header.

3.  Refreshing Nextcloud or navigating between pages should work normally.

4.  Users should be able to access the integration from both Nextcloud and OpenProject without encountering an Internal Server Error.

### Important note

*Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, new images and upload attachments though, but updating description or modifying fields will not be possible after saving. Please make sure that all necessary information and attachments are added, and the following attributes are set:*

### **Logs**

``` text
Internal Server Error
The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details
Remote Address: 172.19.0.5
Request ID: 2QdWSuno6sugAPD17Otk
Type: OCP\AppFramework\QueryException
Code: 0
Message: Could not resolve OCP\IL10N! Class can not be instantiated
File: /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php
Line: 133

Trace
#0 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(157): OC\AppFramework\Utility\SimpleContainer->resolve('OCP\\IL10N', Array)
#1 /var/www/html/lib/private/ServerContainer.php(155): OC\AppFramework\Utility\SimpleContainer->query('OCP\\IL10N', true, Array)
#2 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(46): OC\ServerContainer->query('OCP\\IL10N')
#3 /var/www/html/lib/public/Server.php(37): OC\AppFramework\Utility\SimpleContainer->get('OCP\\IL10N')
#4 /var/www/html/custom_apps/integration_openproject/lib/AppInfo/Application.php(181): OCP\Server::get('OCP\\IL10N')
#5 /var/www/html/lib/private/NavigationManager.php(223): OCA\OpenProject\AppInfo\Application->OCA\OpenProject\AppInfo\{closure}()
#6 /var/www/html/lib/private/NavigationManager.php(125): OC\NavigationManager->init()
#7 /var/www/html/lib/private/TemplateLayout.php(78): OC\NavigationManager->getAll()
#8 /var/www/html/lib/private/Template/Template.php(115): OC\TemplateLayout->getPageTemplate('user', 'dashboard')
#9 /var/www/html/lib/public/AppFramework/Http/TemplateResponse.php(195): OC\Template\Template->fetchPage(Array)
#10 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(163): OCP\AppFramework\Http\TemplateResponse->render()
#11 /var/www/html/lib/private/AppFramework/App.php(153): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Dashboard\Controller\DashboardController), 'index')
#12 /var/www/html/lib/private/Route/Router.php(321): OC\AppFramework\App::main('OCA\\Dashboard\\C...', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
#13 /var/www/html/lib/base.php(1152): OC\Route\Router->match('/apps/dashboard...')
#14 /var/www/html/index.php(25): OC::handleRequest()
#15 {main}
```

<br>

### Screenshots and other files

*If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section.*

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/927469/content">

<br>

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Cloud edition
- [ ] On-Premise
- [ ] Packaged installation
- [ ] Docker All-in-one container
- [x] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

*Openproject Product Version:  v17.9.8*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux (please specify distro) - (Ubuntu 24.04)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

- [x] English
- [ ] German
- [ ] Other:
