Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60642 articles
Browse latest View live

Calls to APIs of type t/{id}.json do not work for subcategories


Adding New Category crashes the whole forum

$
0
0

@chi wrote:

Hi I have created a new category and it crashes. How to make it work again? Currently, it’s just blank. I have restarted the app. Same result blank except for the /logs.

Thanks to anyone who can help.

Here are the logs:

ActionView::Template::Error (undefined method `html_safe' for nil:NilClass Did you mean? html_safe?) /var/www/discourse/app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_

ActionView::Template::Error (undefined method `html_safe' for nil:NilClass Did you mean? html_safe?) /var/www/discourse/app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_

ActionView::Template::Error (undefined method `html_safe' for nil:NilClass Did you mean? html_safe?) /var/www/discourse/app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_

Posts: 7

Participants: 2

Read full topic

LOG: database system is shut down

$
0
0

@treb0r wrote:

Help!

I just attempted to update a long running discourse instance.

I went to /var/discourse as root and ran:

git pull

./launcher rebuild app

It’s now just hanging at:

2017-08-03 17:23:17.936 UTC [47] LOG: database system is shut down

I have a backup thankfully.

The droplet is running Ubutnu 12.04.5

What should I do to get up and running again?

Posts: 3

Participants: 1

Read full topic

"What's your favourite X?" - restricting a topic to one reply per user?

$
0
0

@ChrisBeach wrote:

We’ve seen a few “what’s your favourite X?” topics on my forum, and inevitably, one or two members don’t understand the concept of “favourite,” and post a slew of replies of all the things they like. Nothing kills a topic like domination.

I’d like to be able to restrict some topics to one reply per user. I think it would encourage participation, and encourage people to think about their post.

Anyone else have a similar use case?

Posts: 1

Participants: 1

Read full topic

How to bootstrap new web processes?

$
0
0

@alexweej wrote:

GitHub - discourse/discourse_docker: A Docker image for Discourse says:

You can bootstrap new web processes while your site is running and only after it is built, switch the new image in.

We have our Postgres database running externally, but when we tried to bootstrap a new instance on a new machine, it appeared to work, but then gave HTTP 500 errors when accessing it. I noticed that shared/standalone/uploads was empty and our site logo was 404ing – I was under the mistaken impression that all of the state was contained in app.yml and the Postgres database.

Do we have to give the new instance a clean Postgres database in order to be able to log in and restore a backup? Or is there some other supported way of moving the data over?

I’m struggling to understand how multiple web instances can work if they depend on local files…!

Thanks

Alex

Posts: 1

Participants: 1

Read full topic

Backups don't work using external Postgres with version mismatch?

$
0
0

@alexweej wrote:

We’re running Postgres 9.6 on our external database server, but when trying to use the Backup feature it fails with:

[2017-08-03 17:49:56] Dumping the public schema of the database…
[2017-08-03 17:49:56] pg_dump: server version: 9.6.2; pg_dump version: 9.5.7
[2017-08-03 17:49:56] pg_dump: aborting because of server version mismatch
[2017-08-03 17:49:56] EXCEPTION: pg_dump failed

As far as I know this is the only supported method of moving to new hardware.

Any advice would be much appreciated!

Thanks

Posts: 2

Participants: 2

Read full topic

[color] bbcode no longer works on my site unless on its own line

$
0
0

@tobiaseigen wrote:

I just noticed that [color=white]this should be white[/color] stopped working on my site unless it is on its own line. Is this related the upgrade to commonmark, @sam?

I use it to hide admin info at the bottom of welcome PMs triggered via wordpress, and now it’s appearing so I guess I need to update my template. See screenshots.

Working - bbcode on its own line

Not working - bbcode not on its own line

Posts: 3

Participants: 2

Read full topic

The Official Discourse Styleguide Plugin

$
0
0

@eviltrout wrote:

I’ve just released a new plugin for Discourse that adds a /styleguide path that renders a bunch of the common components and UX elements that Discourse uses:

Right now it doesn’t have too many components available, but I’d like to add to it over time to be more comprehensive. In fact, I’d love it if people in the community would submit more examples from our application to make it even more comprehensive.

Posts: 1

Participants: 1

Read full topic


How to use API to pull metrics from Discourse into Google Analytics?

$
0
0

@kmcghy wrote:

Hello all — I am not a developer, so please forgive any ignorance, but I am looking to determine if it’s possible to use the Discourse API or webhooks to pull metrics Discourse is tracking in my community forum into Google Analytics and/or Google Data Studio? Specifically, I want to track new topics, new replies, new users and cumulative users. Thanks in advance for any help!

Posts: 1

Participants: 1

Read full topic

Allowing moderators to add categories

$
0
0

@Noah751 wrote:

Does the site setting “allow moderators to add categories” give moderators access to category settings, and security, I want them to be able to add categories but not be able to change security settings, is this possible?

Posts: 3

Participants: 2

Read full topic

Badges and counts suddenly missing

$
0
0

@daath wrote:

A user on my forum, who apparently is really into his “Nice reply”-badges, notified me that his “Nice reply”-badge count went from >300 to 36 - and that it no longer counts… I am guessing this a bug.

This is the user:

Here is a thread with >3000 replies in it, where a lot of his replies have >10 likes and should be counted…

http://forum.e-liquid-recipes.com/t/just-plain-funnies/63255

If you need any info from me, just shout :slight_smile: He’s pretty torn up about it :stuck_out_tongue:

Posts: 1

Participants: 1

Read full topic

Insecure content from markdown-it-bundle when using https redux

$
0
0

@Lee_Ars wrote:

Having the exact same issue as this locked thread, which annoyingly has no solution specified.

At some point in the past ~10 days, the preview window stopped working. The problem seems to be due to the markdown-it-bundle JS file failing to load due to a mixed content warning:

_ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:9248
Mixed Content: The page at 'https://discourse.bigdinosaur.org/t/testing-messagebus-updating/1345/3'
was loaded over HTTPS, but requested an insecure script
'http://discourse.bigdinosaur.org/assets/markdown-it-bundle-95eab67cdea904c1edf468e5ed93ba3d0ed27da63e4428828e8a566506f74391.js'.
This request has been blocked; the content must be served over HTTPS.

OP posted here indicating that they fixed the issue by specifying proxy_set_header Host $http_host; in the reverse proxy in front of discourse; unfortunately, I already have that header set and have had it set for literally years.

I do not have force_https set to on, because that makes Discourse break horribly (no one can log in via any method and the login window responds to everything with “UNKNOWN ERROR”). I suspect this is because that setting makes a lot of assumptions about what’s in front of discourse and it doesn’t make the right assumptions for my setup, which is:

Internet <-https-> HAProxy SSL termination <-http-> Varnish cache <-http-> nginx master reverse proxy <-http-> Discourse

It’s apparently impossible to copy the full contents of chrome’s console without doing stupid shit, so here’s a screenshot of the error.

Anyone interested in taking a look shoudl be able to trigger it themselves—just go to discourse.bigdinosaur.org, create an account, and try to post something. You don’t even have to actually create a message—just invoking the composer will trigger the error.

There don’t appear to be any entries in Logster.

Is there a setting I can change, or something? Not really sure how to proceed to fix.

Posts: 11

Participants: 4

Read full topic

How does the "staff like weight" site setting work?

$
0
0

@mcwumbly wrote:

A few questions:

  1. Is it additive or multiplicative? To make it “no extra weight” should it be set to 1 or 0?
  2. Can it be set to a non-integer value like 1.5?
  3. Does it impact digests as well as the “top” topic list?

Posts: 2

Participants: 1

Read full topic

Profile link misalignment in Firefox

$
0
0

@barryvan wrote:

This has been irking me for a little while now: the profile menu is misaligned in Firefox:

image

I’ve fixed it with some custom CSS for now:

div.menu-links-header .menu-links-row {
    display: flex;
}

div.menu-links-header li:first-child {
    flex: 1;
}

image

Posts: 1

Participants: 1

Read full topic

Our Discourse is blocked by The Great Firewall of China, any tips?

$
0
0

@singmajesty wrote:

Hello everyone,

We have developer forums hosted in Discourse, and it is currently blocked (by timeout) by The Great Firewall of China, or so I think.

I was concerned that Akismet or some other behavior in Discourse could be blocking Chinese IP addresses wholesale, but I am not sure if this is the case.

I was wondering anyone had tips with getting Discourse to be acceptable to the firewall?

Is there some way to mirror a Discourse forum, to try and host from multiple IP addresses?

Posts: 4

Participants: 3

Read full topic


Default locale has stopped working

$
0
0

@Esko_Piirainen wrote:

Hi,

Our site used to have default locale set to “suomi” (“fi”).

This has stopped working, and when as an admin I go to forum preferences (admin/site_settings/category/required) and change the user default locale to “suomi” and press save, the value remains but has no effect. After reloading preferences page, the value is again “English”.

Posts: 3

Participants: 3

Read full topic

Failed to restart docker.service after rebuild

$
0
0

@tophee wrote:

In order to upgrade to latest, I had to do one of those manual rebuilds (as instructed when I visited /admin/upgrade) and it didn’t go as smoothly as it used to.

Upon first try, ./launcher rebuild app failed saying Error response from daemon: grpc: the connection is unavailable At the same time, my forum was still running, I believe. I then did a systemctl restart docker which apparently didn’t work either because my forum was no longer accessible. So I just tried ./launcher rebuild app again and this time the rebuild worked but never finished properly. Here is where it got stuck:

Removing old container
+ /usr/bin/docker rm app
app

+ /usr/bin/docker run -d --restart=always -e LANG=en_US.UTF-8 -e HOME=/root -e RAILS_ENV=production -e UNICORN_WORKERS=3 -e UNICORN_SIDEKIQS=1 -e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e DISCOURSE_HOSTNAME=**************** -e DISCOURSE_DEVELOPER_EMAILS=************************ -e DISCOURSE_SMTP_ADDRESS=********************* -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=SMTP_Injection -e DISCOURSE_SMTP_PASSWORD=********************************* -h Ubuntu-1604-xenial-64-minimal-app -e DOCKER_HOST_IP=************ --name app -t -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 02:74:aa:6e:81:c9 local_ discourse/app /sbin/boot     fcc194504a631e56de03a7a4bf99be2c422ef3565332b27037779aa6f51c8421
christoph@Ubuntu-1604-xenial-64-minimal:/var/discourse$ systemctl restart docker Failed to restart docker.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status docker.service' for details.

Actually, I am a bit confused about the systemctl restart docker command because it looks like I issued it but I definitely didn’t. Not after the rebuild.

In any case, I then tried systemctl status docker.service as instructed and got this:

christoph@Ubuntu-1604-xenial-64-minimal:/var/discourse$ systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e
   Active: active (running) since Fri 2017-08-04 09:26:03 CEST; 56min ago
     Docs: https://docs.docker.com
 Main PID: 30761 (dockerd)
    Tasks: 48
   Memory: 47.4M
      CPU: 58.220s
   CGroup: /system.slice/docker.service
           ├─ 5355 docker-containerd-shim fcc194504a631e56de03a7a4bf99be2c422ef3
           ├─30761 /usr/bin/dockerd -H fd://
           ├─30768 docker-containerd -l unix:///var/run/docker/libcontainerd/doc
           ├─31087 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port
           └─31112 docker-containerd-shim ee4cf418531ac247ade122924881e47da1a752
lines 1-14/14 (END)

Which looks like everything is working well. My forum also seems to be running just fine. Does that mean I’m fine? What was all the hiccup about?

In case it matters: before I was asked to to the manual rebuild, I had to update the docker manager (all update buttons grey, except for the docker manager). That update seemed to have gone fine.

Posts: 1

Participants: 1

Read full topic

Numbers obscured by the letter x treated as links (onebox)

$
0
0

@Trash wrote:

In our assistance category we have a form where we ask some informations, including the first three numbers of the user network’s IP.
Some users write it all and moderators edit the post by replacing the last IP numbers with x, e.g.

2.235.xxx.xxx
in replace of
2.235.111.222

This happens only if we use x and only from the latest site updates so I do not understand if this behavior is intentional or not.

The problem is that if users click on the link (which does not exist) they are redirected to a new tab with the error “unable to contact the server”

Any idea please?

Posts: 3

Participants: 3

Read full topic

Stopping production log

$
0
0

@hnaseri wrote:

Can I stop some of the logs, like production log? It seems to me that they are unnecessary.

Posts: 3

Participants: 3

Read full topic

Discourse acting strange after moving to new server

$
0
0

@hnaseri wrote:

After moving and restoring my data to new server, discourse is acting strange. My local is Persian/rtl however discourse is flip flopping it with English/ltr .

Posts: 8

Participants: 4

Read full topic

Viewing all 60642 articles
Browse latest View live




Latest Images