Content
View differences
Updated by Oliver Günther about 3 years ago
### Steps to reproduce
1. Navigate to a project wiki with existing wiki pages (showing up in the left-hand-side navigation)
2. Click on any wiki page
### What is the buggy behavior?
Following text is displayed:
_\[Error 500\] An error occurred on the page you were trying to access. If you continue to experience problems please contact your IBU Projects administrator for assistance._
### What is the expected behavior?
The wiki page should be displayed.
### **Logs**
In the logs appears:
```text
I, [2023-03-07T16:09:29.791761 #45456] INFO -- : Started GET "/projects/xxxxxx-wiki/wiki/network" for xxxxxx at 2023-03-07 16:09:29 +0100
I, [2023-03-07T16:09:29.794674 #45456] INFO -- : Processing by WikiController#show as HTML
I, [2023-03-07T16:09:29.794915 #45456] INFO -- : Parameters: {"project_id"=>"xxxxxx-wiki", "id"=>"network"}
I, [2023-03-07T16:09:29.808452 #45456] INFO -- : Rendered wiki/show.html.erb within layouts/base (Duration: 1.0ms | Allocations: 766)
I, [2023-03-07T16:09:29.808724 #45456] INFO -- : Rendered layout layouts/base.html.erb (Duration: 1.3ms | Allocations: 800)
E, [2023-03-07T16:09:29.817088 #45456] ERROR -- : user=42 undefined method `version' for nil:NilClass: undefined method `version' for nil:NilClass
I, [2023-03-07T16:09:29.817957 #45456] INFO -- : Rendered common/error.html.erb within layouts/no_menu (Duration: 0.3ms | Allocations: 105)
I, [2023-03-07T16:09:29.865814 #45456] INFO -- : Rendered layouts/base.html.erb (Duration: 47.6ms | Allocations: 41536)
I, [2023-03-07T16:09:29.866217 #45456] INFO -- : Rendered layout layouts/no_menu.html.erb (Duration: 48.6ms | Allocations: 41725)
I, [2023-03-07T16:09:29.866615 #45456] INFO -- : Completed 500 Internal Server Error in 71ms (Views: 42.6ms | ActiveRecord: 10.4ms | Allocations: 59635)
```
###
Browser logs:
```text
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: nonce-source or hash-source specified network
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. network
Content Security Policy: The page’s settings blocked the loading of a resource at data: (“media-src”). network
DEPRECATED: DI is instantiating a token "" that inherits its @Injectable decorator but does not provide one itself.
This will become an error in a future version of Angular. Please add @Injectable() to the "" class. 4 core.js:426
```
### 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._
### 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**
* [ ] Hosted cloud edition
* [x] Packaged installation
* Ubuntu 22.04
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
**OpenProject 12.4.5** 12.4.5**
PostgreSQL version 14.7
**Browser**
* [ ] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_browser language: English (US)_ (US)_
_language of the OpenProject user: English_
1. Navigate to a project wiki with existing wiki pages (showing up in the left-hand-side navigation)
2. Click on any wiki page
### What is the buggy behavior?
Following text is displayed:
_\[Error 500\] An error occurred on the page you were trying to access. If you continue to experience problems please contact your IBU Projects administrator for assistance._
### What is the expected behavior?
The wiki page should be displayed.
### **Logs**
In the logs appears:
I, [2023-03-07T16:09:29.791761 #45456] INFO -- : Started GET "/projects/xxxxxx-wiki/wiki/network" for xxxxxx at 2023-03-07 16:09:29 +0100
I, [2023-03-07T16:09:29.794674 #45456] INFO -- : Processing by WikiController#show as HTML
I, [2023-03-07T16:09:29.794915 #45456] INFO -- : Parameters: {"project_id"=>"xxxxxx-wiki", "id"=>"network"}
I, [2023-03-07T16:09:29.808452 #45456] INFO -- : Rendered wiki/show.html.erb within layouts/base (Duration: 1.0ms | Allocations: 766)
I, [2023-03-07T16:09:29.808724 #45456] INFO -- : Rendered layout layouts/base.html.erb (Duration: 1.3ms | Allocations: 800)
E, [2023-03-07T16:09:29.817088 #45456] ERROR -- : user=42 undefined method `version' for nil:NilClass: undefined method `version' for nil:NilClass
I, [2023-03-07T16:09:29.817957 #45456] INFO -- : Rendered common/error.html.erb within layouts/no_menu (Duration: 0.3ms | Allocations: 105)
I, [2023-03-07T16:09:29.865814 #45456] INFO -- : Rendered layouts/base.html.erb (Duration: 47.6ms | Allocations: 41536)
I, [2023-03-07T16:09:29.866217 #45456] INFO -- : Rendered layout layouts/no_menu.html.erb (Duration: 48.6ms | Allocations: 41725)
I, [2023-03-07T16:09:29.866615 #45456] INFO -- : Completed 500 Internal Server Error in 71ms (Views: 42.6ms | ActiveRecord: 10.4ms | Allocations: 59635)
```
###
Browser logs:
```text
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: nonce-source or hash-source specified network
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. network
Content Security Policy: The page’s settings blocked the loading of a resource at data: (“media-src”). network
DEPRECATED: DI is instantiating a token "" that inherits its @Injectable decorator but does not provide one itself.
This will become an error in a future version of Angular. Please add @Injectable() to the "" class. 4 core.js:426
```
### 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._
### 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**
* [ ] Hosted cloud edition
* [x] Packaged installation
* Ubuntu 22.04
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
**OpenProject 12.4.5**
PostgreSQL version 14.7
**Browser**
* [ ] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_browser language: English (US)_
_language of the OpenProject user: English_