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

Header doesn’t resize or scroll at reduced screen width

$
0
0

TechnoBear wrote:

When the browser window is resized, there is a horizontal scroll bar for the content, but not the header. Some or all of the navigation icons are lost off the righthand side.

The green post count box is also partially obscured (except at the foot of the page).

Posts: 2

Participants: 2

Read full topic


Login to discourse with custom Oauth2 Provider

$
0
0

Cassius Chen wrote:

I'm wandering how can i login to discourse with my own Oauth2 Provider.

The situation is that I have an app as a Oauth2 provider, and other apps can use omniauth-oauth2 or my custom gem to get the info and sigh up the user. Can Discourse do so? or admin provides App ID, App Secret and Provider URL then uses these to login?

Posts: 4

Participants: 3

Read full topic

How to setup multiple containers?

$
0
0

Manthan Mallikarjun wrote:

Hey! I just want to make sure that I am doing this right.

I have to copy this: https://github.com/discourse/discourse_docker/blob/master/samples/web_only.yml into the containers/app.yml file and then configure the info?

Then i have to setup a postgres server and put in the details into the app.yml file?

Where exactly does redis come in?

Im using AWS. The psql server will be on a micro instance and every ruby on rails server will run on a small server.

Posts: 1

Participants: 1

Read full topic

Developers Guide to Install Discourse on Ubuntu

$
0
0

Arpit Jalan wrote:

This guide is aimed at Developers who wants to set up Discourse on Ubuntu system, for hacking pleasure. In this guide we'll assume that you don't have Ruby/Rails/Postgre/Redis pre installed (set up instructions may vary, in case you have pre-installed Ruby/Rails/Postgre/Redis).

(NOTE: If you want to install Discourse for production purpose, this is the guide you are looking for: https://meta.discourse.org/t/beginners-guide-to-deploy-discourse-on-digital-ocean-using-docker/12156)

Discourse Dependencies

Run this script, to setup Rails development environment:

bash <(wget -qO- https://raw.github.com/techAPJ/install-rails/master/linux)

This will install following new packages on your system:

Install Phantomjs:

cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-i686.tar.bz2
sudo tar xvf phantomjs-1.9.0-linux-i686.tar.bz2
sudo rm phantomjs-1.9.0-linux-i686.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-i686/bin/phantomjs /usr/local/bin/phantomjs
cd

Now that we have installed Discourse dependencies, let's move on to install Discourse itself.

Clone Discourse

Clone the Discourse repository in ~/discourse folder:

git clone https://github.com/discourse/discourse.git ~/discourse

Setup Database

Open psql prompt as postgre user

sudo -u postgres psql postgres

Create discourse role with discourse as password:

CREATE ROLE discourse WITH LOGIN ENCRYPTED PASSWORD 'discourse' CREATEDB SUPERUSER;

Check that you have successfully created discourse role:

\du

Create discourse_development and discourse_test database:

CREATE DATABASE discourse_development WITH OWNER discourse ENCODING 'UTF8' TEMPLATE template0;
CREATE DATABASE discourse_test WITH OWNER discourse ENCODING 'UTF8' TEMPLATE template0;

Exit psql prompt by pressing ctrld

Now access psql prompt in discourse_development database as discourse user:

psql -d discourse_development -U discourse -h localhost

When prompted for password, provide the password which you set at the time of creating role, if you followed the guide as is, the password is discourse

Run following commands, separately:

CREATE EXTENSION pg_trgm;
CREATE EXTENSION hstore;

Exit psql prompt by pressing ctrld

Now access psql prompt in discourse_test database as discourse user:

psql -d discourse_test -U discourse -h localhost

When prompted for password, provide the password which you set at the time of creating role, if you followed the guide as is, the password is discourse

Run following commands, separately:

CREATE EXTENSION pg_trgm;
CREATE EXTENSION hstore;

Exit psql prompt by pressing ctrld

You have set the database setings successfully!

Bootstrap Discourse

Switch to your Discourse folder:

cd ~/discourse

Install the needed gems

bundle install

Before seeding database you will need to modify discourse/config/database.yml file:

Add these lines to development and test database settings:

username: discourse
password: discourse
host: localhost

(In case you provided password other than discourse while creating role discourse, be sure to modify the file accordingly.)

Now that you have successfully configured database connection, run this command:

bundle exec rake db:migrate db:test:prepare db:seed_fu

Now, try running the specs:

bundle exec rake autospec

Start rails server:

bundle exec rails server

You should now be able to connect to discourse app on http://localhost:3000 - try it out!

Access Admin

Since we do not have mail configured yet, the best way to get a working account is to sign up through Google Account:

Once you will successfully verify your Google credentials, you will have a working Discourse account.

Now, to make your account as admin, enter the following commands in rails console:

RAILS_ENV=development bundle exec rails c
u = User.last
u.admin = true
u.save

Once you execute the above commands successfully, check out your Discourse account again:

Congratulations! You are now the admin of your own Discourse installation!

Happy hacking!

If anything needs to be improved in this guide, feel free to ask on meta.discourse.org, or even better, submit a pull request.

Posts: 1

Participants: 1

Read full topic

Invisible topics are not invisible

Free IE VMs from Microsoft

Given User Name after responding to Invite Friend invitation

$
0
0

Neil wrote:

I really like the feature which gives invited people the ability to post immediately they have visit a Discourse forum.

Would it be possible to incorporate a step in the process so they get to choose their own user name before submitting their post rather than have one allocated to them on the basis of their email address?

Many people wouldn't want to use their email address as the basis of a forum user name.

Posts: 13

Participants: 7

Read full topic

IPv6 causing Internal Server Errors

$
0
0

Michael Brown wrote:

We've briefly turned on IPv6 connectivity here, but it's exposed a bug in the code that causes '500 Internal Server Errors' when you visit a topic.

If you're been browsing the site recently with IPv6 and received failures when going into topics, that's probably the cause.

We'll be turning it off temporarily until we get the problem sorted.


In case you're curious:

Postgres complains:

2013-04-17 03:03:25 UTC ERROR:  value "42540578219911037928742559588703898005" is out of range for type bigint
2013-04-17 03:03:25 UTC STATEMENT:  INSERT INTO "views" ("ip", "parent_id", "parent_type", "user_id", "viewed_at") VALUES ($1, $2, $3, $4, $5)

LOOKS SUSPICIOUS

>>> int(hexlify(socket.inet_pton(socket.AF_INET6, '2001:470:b0e2:0:198:c531:dbe1:8995')), 16)
42540578219911037928742559588703898005L

Posts: 8

Participants: 3

Read full topic


Missing Category Causing Create Topic Failures

$
0
0

Christopher Baker wrote:

Hi there, first, thank you for an amazing project. It's been a wonderful community catalyst for us.

First a few details about our setup:

  • We recently moved from the Ubuntu 12.04 to the docker setup (although I think this issue may have happened before). We upgraded by creating a backup in the admin panel and uploading it to our new clean docker install.
  • We are on Discourse 0.9.9
  • We are using a digital ocean 2 GB droplet with a 1 GB swap (just in case).
  • We are running Ubuntu 12.04.4 LTS.

Some of our users are encountering a strange issue when creating new topics. For instance, this user posted a new topic with a hyperlink and ended up seeing this:

He was no longer able to see his post, but I was. It was not assigned a valid category, but rather a junk category that I have been trying to delete.

When I give this user admin rights he can see it OR when I re-categorize it (I have admin rights), it becomes visible to all.

Other users encountering the same issue have gotten message post failures that read "500 error" in a small modal window (sorry no screen shot). Still others have gotten this just after hitting the "create topic":

In this case, like the others, the user was unable to view the topic because it was categorized with a category that they were unable to see (he was not an admin). When I manually categorized it, everyone was able to see it.

Ultimately, from my sleuthing it seems to be some kind of problem related to a bogus category mixing with the permissions of the newer [Staff] category (we started using Discourse before that category was added).

Here are some other clues from my end.

  1. Sidekiq is choking on lots of category_id when sending email updates.

  2. I look at one of these failed posts and find it in the "staff" cateogory.

  3. I open the strange post.

  4. I check its category:

So my theory is that on occasion, when users are creating a new topic, this "Ghost" category (maybe it has a nil category id?) is being assigned to the topic (this happens even when the user manually selects a different category). Since this category is broken and has admin only security settings (not sure where to change that on a category I can't see ... without a manual dive into the database), the user is unable to see their new post.

Hopefully this makes some sense ...

Thanks for thinking about it with us!

Posts: 7

Participants: 3

Read full topic

Back button does not work on old Android browsers

$
0
0

Mosquito wrote:

When I visit a topic on my desktop and then use the back button, I am taken back to the topic list. When I do the same on mobile (Android 4.3, stock browser) I am taken to the previous page I visited before the Discourse forum.

I noticed that on mobile my URL doesn't change when I visit a topic. Itstays meta.discourse.org

Posts: 17

Participants: 7

Read full topic

Cmd + f will get you into reply mode with quotes

Moderator edits not respected by Discourse?... or not reverting?

$
0
0

happycollision wrote:

I posted a topic and got a notification that it was edited by @codinghorror. Confused by not seeing any changes, I inspected the edits only to see that they were massive, but not appearing in the topic.

I double checked the topic in incognito mode just to be sure, but the original post is the one that appears. Not the version where a good 3/4 of the post was removed.

So it appears to me that either Discourse is ignoring the edit, or that the edit was reversed on second thought by @codinghorror, but is still listed as the most recent edit.

Posts: 7

Participants: 2

Read full topic

Adding Advertising

$
0
0

Josiah Sprague wrote:

I know this isn't the most exciting topic, but I'm wondering about the possibility of integrating advertising with Discourse. I haven't seen any discussion about doing so, but I would like to use Discourse for a community I am thinking about sustaining through advertising revenues. How difficult/advisable would it be to try to integrate something like Google AdWords or another ad network into discourse?

Posts: 44

Participants: 24

Read full topic

Logo alt attribute doesn't escaped when site title contains quotes

$
0
0

Anton Batenev wrote:

When I set (in admin settings page) 'title' to string with quote ("), the alt attribute of site-logo image breaks. For examle, set forum title to:

"><script>alert('XSS');</script><

and enjoy xss.

Posts: 7

Participants: 3

Read full topic

Mail refuses to work with certificate error

$
0
0

Zackp30 wrote:

Apr 12 06:52:02 matrix postfix/smtpd[22284]: connect from unknown[172.17.0.3]
Apr 12 06:52:02 matrix postfix/smtpd[22284]: lost connection after STARTTLS from unknown[172.17.0.3]
Apr 12 06:52:02 matrix postfix/smtpd[22284]: disconnect from unknown[172.17.0.3]

I get that instead of it sending mail to the appropriate account in /var/log/mail.log.
Any help will be greatly appreciated. smile

Posts: 20

Participants: 3

Read full topic


{VAGRANT Method} Error on this command: vagrant up

$
0
0

D Iff wrote:

When I run vagrant up, it's ok before this line:

Preparing to edit /etc/exports. Administrator privileges will be required...

After above prompt, it asks for password, and here is the error that occurs:

[sudo] password for diff:
nfsd running
sudo: /usr/bin/exportfs: command not found
==> default: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o 'vers=3,udp' 192.168.10.1:'/home/diff/discourse' /vagrant
Stdout from the command:
Stderr from the command:
stdin: is not a tty
mount.nfs: access denied by server while mounting 192.168.10.1:/home/diff/discourse

Posts: 12

Participants: 3

Read full topic

Regular notifications have missing copy

$
0
0

Abhishek Gupta wrote:

This is some weird thing i noticed on my instance of discourse, When someone created a new topic and none have replied to it and the topic is not created by me, I see this , instead of the you will be notified only if someone mentions your @name or replies to your post.

but when i click on Regular , it changes back to normal .

Posts: 8

Participants: 4

Read full topic

Attachments urls in emails begin with https, despite it not being activated

$
0
0

Kolt wrote:

In emails that contain a link to an attachment, the attachment url points to https despite it not being activated in Discourse. When viewed through Discourse, the attachment file urls are correctly pointing towards http://... .

Posts: 2

Participants: 2

Read full topic

Facebook Login popup not big enough

$
0
0

Alexandre Angelim wrote:

I'm getting the following message when trying to register with facebook:

Your popup is too small to display this page. Please enlarge it to proceed.

Changing the height to 420px in jsapp/controllers/login_controller.js:96 solves the problem, but I didn't test on a phone or anything.

Thank you

Posts: 5

Participants: 3

Read full topic

Topics still marked 'new' after visits (ignoring preferences)

$
0
0

Sander Datema wrote:

In my peferences I have Discourse (Meta) set to only display a topic as new if it was posted since my last visit. However, since a few days these topics start piling up. The oldest 'new' topic is 5 days old now.

Posts: 4

Participants: 3

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images