# Impossible d'accéder à l'une de nos catégories

**URL:** https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314
**Category:** Support
**Created:** [Novembre 17, 2020, 12:54 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314 "2020-11-17T00:54:07Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [Novembre 17, 2020, 12:54 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/1 "2020-11-17T00:54:07Z")

</div>

`https://meta.discourse.org/t/discourse-2-6-0-beta5-release-notes/168756`

Je me demande pourquoi je ne peux plus accéder à l’une de nos catégories depuis la mise à jour vers la bêta5. Faites-moi savoir si vous avez besoin de journaux. Je suis administrateur, mais lorsque j’essaie de cliquer et [de sélectionner cette catégorie spécifique par son nom](https://discuss.noisebridge.info/c/Unofficial-events/36), je vois :

 ![cannot-edit](https://global.discourse-cdn.com/meta/original/3X/2/5/25bf92980c7bbb4035c741ddf4657785f3c54e3e.png)

Toutes les autres catégories s’ouvrent sans problème, à ma connaissance.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Novembre 19, 2020, 12:44 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/2 "2020-11-19T00:44:15Z")

</div>

Cette catégorie contient-elle des caractères inhabituels dans son nom ?

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [Novembre 19, 2020, 2:54 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/3 "2020-11-19T02:54:27Z")

</div>

“Calendrier de la communauté”

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [Décembre 24, 2020, 6:36 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/4 "2020-12-24T06:36:05Z")

</div>

Je reviens vers vous pour savoir si quelqu’un a des conseils pour fusionner cette catégorie, « Calendrier de la communauté », avec une autre. Je ne peux toujours pas y accéder en sélectionnant la catégorie ; les publications individuelles sont toujours disponibles et je ne vois aucun message d’erreur apparaître.

_Oups ! Cette page n’existe pas ou est privée._ 🤔

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [Janvier 1, 2021, 6:53 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/5 "2021-01-01T18:53:44Z")

</div>

Voici la sortie Rails pour cette catégorie.

> **Résumé**
>
> #\<Category:0x000055cde93db078  
> id: 36,  
> name: “Community Calendar”,  
> color: “ED207B”,  
> topic\_id: 419,  
> topic\_count: 15,  
> created\_at: Sun, 24 Mar 2019 18:10:42 UTC +00:00,  
> updated\_at: Sun, 20 Dec 2020 08:27:45 UTC +00:00,  
> user\_id: 2,  
> topics\_year: 5,  
> topics\_month: 0,  
> topics\_week: 0,  
> slug: “Unofficial-events”,  
> description: “Ce \<a href="[https://discuss.noisebridge.info/calendar\](https://discuss.noisebridge.info/calendar%5C)”\>calendrier communautaire non officiel est destiné à tout événement que vous souhaitez partager ! La vie en dehors de Noisebridge.",  
> text\_color: “FFFFFF”,  
> read\_restricted: false,  
> auto\_close\_hours: nil,  
> post\_count: 26,  
> latest\_post\_id: 8837,  
> latest\_topic\_id: 2105,  
> position: 20,  
> parent\_category\_id: nil,  
> posts\_year: 9,  
> posts\_month: 0,  
> posts\_week: 0,  
> email\_in: nil,  
> email\_in\_allow\_strangers: false,  
> topics\_day: 0,  
> posts\_day: 0,  
> allow\_badges: true,  
> name\_lower: “community calendar”,  
> auto\_close\_based\_on\_last\_post: false,  
> topic\_template: “Ce calendrier est destiné à tout événement que vous souhaitez partager !\nLes événements n’ont pas besoin d’impliquer Noisebridge !\n”,  
> contains\_messages: nil,  
> sort\_order: “”,  
> sort\_ascending: nil,  
> uploaded\_logo\_id: 504,  
> uploaded\_background\_id: nil,  
> topic\_featured\_link\_allowed: true,  
> all\_topics\_wiki: false,  
> show\_subcategory\_list: false,  
> num\_featured\_topics: 3,  
> default\_view: “calendar”,  
> subcategory\_list\_style: “rows\_with\_featured\_topics”,  
> default\_top\_period: “all”,  
> mailinglist\_mirror: false,  
> minimum\_required\_tags: 0,  
> navigate\_to\_first\_post\_after\_read: false,  
> search\_priority: 0,  
> allow\_global\_tags: false,  
> reviewable\_by\_group\_id: nil,  
> required\_tag\_group\_id: nil,  
> min\_tags\_from\_required\_group: 1,  
> read\_only\_banner: nil,  
> default\_list\_filter: “all”\>

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [Janvier 1, 2021, 7:04 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/6 "2021-01-01T19:04:57Z")

</div>

Cela pourrait avoir un lien avec ceci :  
[https://meta.discourse.org/t/discourse-event/149964/135](https://meta.discourse.org/t/discourse-event/149964/135)

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [Janvier 1, 2021, 7:58 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/7 "2021-01-01T19:58:32Z")

</div>

Merci, il semble que je doive appliquer la correction de default\_view depuis la console Rails. Je ne suis pas sûr de savoir comment faire en sorte que la catégorie « Unofficial-events » (id 36) utilise la vue « latest ».

> [@Changing a category default view from the command line](https://meta.discourse.org/t/changing-a-category-default-view-from-the-command-line/163428):
>
> I need to change the default\_view setting for a category from the command line due to a plugin conflict. I have tried this but it’s not working, can anyone help a rails noob? Thanks! myCategory = Category.find\_by(id: 8) myCategory.default\_view = "latest"

J’ai essayé de suivre ces instructions. Je ne sais pas si je dois remplacer `myCategory` par `Unofficial-events` tout en conservant l’identifiant 36.

> **Toujours débutant avec la console Rails. Résumé de ma tentative**
>
> $ ./launcher enter app
> 
> # rails c
> 
> [1] pry(main)\> Unofficial-events = Category.find\_by(id: 36)  
> NameError: uninitialized constant Unofficial  
> from (pry):1:in ` __pry__' [2] pry(main)> Unofficial-events.default_view = "latest" NameError: uninitialized constant Unofficial from (pry):2:in ` **pry** ’  
> [3] pry(main)\> Unofficial-events.save!  
> NameError: uninitialized constant Unofficial  
> from (pry):3:in ` __pry__' [4] pry(main)> myCategory = Category.find_by(id 36) NoMethodError: undefined method `id’ for main:Object  
> from (pry):4:in ` **pry** ’  
> [5] pry(main)\>

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [Janvier 1, 2021, 8:23 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/8 "2021-01-01T20:23:41Z")

</div>

🤔 Je ne suis pas sûr du tiret dans `Unofficial-event`, mais utiliser myCategory comme nom de variable devrait fonctionner.

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [Janvier 1, 2021, 8:25 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/9 "2021-01-01T20:25:30Z")

</div>

from (pry):3:in ` __pry__' [4] pry(main)> myCategory = Category.find_by(id 36) NoMethodError: undefined method `id’ for main:Object  
from (pry):4:in ` **pry** ’  
[5] pry(main)\>

Merci @Benjamin_D. Si quelqu’un doit faire cela, notez simplement qu’il y a une petite coquille [dans ce post](https://meta.discourse.org/t/changing-a-category-default-view-from-the-command-line/163428/2) à la dernière étape, et vous enregistrez avec `myCategory.save!`

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [Janvier 1, 2021, 8:26 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/10 "2021-01-01T20:26:00Z")

</div>

il manque le : entre id et 36

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Janvier 31, 2021, 8:26 UTC](https://meta.discourse.org/t/unable-to-access-one-of-our-categories/170314/11 "2021-01-31T20:26:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
