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

About the voting category


Rebuild app fails

Creating route to send register email

$
0
0

@luisfpinto wrote:

Hello,

I have sendgrid as SMTP server. I have created a template email and I would like to use it as email for users who are registered on the forum.

Is it possible to add a route when a user is registered?

Thanks

Posts: 1

Participants: 1

Read full topic

Using Discourse as a community-powered wiki

Modified category index forum

Unable to access Discourse installation from another location

Clicktrack breaking links part 2

Hash tag problem with tagging

$
0
0

@Steven wrote:

There's a weird behavior when we hashtag some tags in a list :

The last tag breaks everytime

Also I have a little suggestion : it will be nice if we had a page title for the /tags page : https://meta.discourse.org/tags
Instead of Discourse Meta, I think "Tags Meta Discourse" or something like that would be better.

Good job BTW I like this new feature, we were thinking of adding the plugins hours before it was officially implemented. It's very useful.

I had a little fun with the css too

Posts: 4

Participants: 3

Read full topic


Editing Title strips Location field

$
0
0

@mikechristopher wrote:

Hi
I seem to be finding an issue when Editing someones title in the admin section it is stripping out the value they have in their location. This is happening on our prod environment - stable 1.5 and have also done it in my local dev environment (just updated to last commit).

To reproduce
Fill in Location field in profile and save changes
Scroll back to the top and click Admin
Edit Title & Save
Click Show Public Profile
Preferences
Location is no longer there

I am using Chrome 50 - latest update (just to ensure it wasnt a browser issue) and also same happens in IE11

Anyone else able to repro this?

Posts: 5

Participants: 4

Read full topic

"launcher rebuild" fails because of "ip addr show docker0"

$
0
0

@julienmalik wrote:

I just tried to rebuild my container and hit the following error :

# ./launcher rebuild myforum
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker.io stop -t 10 myforum
myforum
cd /pups && git pull && /pups/bin/pups --stdin
Unable to find image '10.0.42.1:latest' locally
Pulling repository 10.0.42.1
FATA[0001] Error: image library/10.0.42.1:latest not found
cat: cids/myforum_bootstrap.cid: No such file or directory
docker: "rm" requires a minimum of 1 argument. See '/usr/bin/docker.io rm --help'.
rm: cannot remove ‘cids/myforum_bootstrap.cid’: No such file or directory
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

I tracked this down to launcher#L78-L80

On my machine I get :

$ ip addr show docker0
3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 56:84:7a:fe:97:99 brd ff:ff:ff:ff:ff:ff
    inet 172.17.42.1/16 scope global docker0
       valid_lft forever preferred_lft forever
    inet 10.0.42.1/16 scope global docker0
       valid_lft forever preferred_lft forever

$ ip addr show docker0 |grep 'inet ' | awk '{ split($2,a,"/"); print a[1] }'
172.17.42.1
10.0.42.1

which makes the launcher#L499 line fail badly with the cryptic error message above :

Here are some info about my system :

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.4 LTS
Release:	14.04
Codename:	trusty

$ aptitude show docker.io  | grep ^Version
Version: 1.6.2~dfsg1-1ubuntu4~14.04.1

docker is used exclusively to run discourse.
I'm using discourse since more than a year, and have successfullly run launcher rebuild in the past. I just hit this issue today, trying to update my container.

Posts: 4

Participants: 2

Read full topic

How to restrict tagging

$
0
0

@Drew_Warwick wrote:

So it looks like the tagging plugin and I assume, by extension, the integrated tagging supports "[restricting] who can tag to a particular trust level", but I'm not seeing a way to restrict the creation of tags to a specific trust level anywhere. It'd be great if like on StackExchange, the creation of tags was restricted to certain permission levels. A good default imo is Regular since those users participate actively enough in the forum to know when it's a good idea to add a tag, but of course, site admins should be able to configure this if they wish.

If you want a good reason for restricting tag creation to higher-level users, here's a snapshot from the Discourse forum I regularly use:


We have some pretty irking tags like "resyncs_polls" (Resyncable is a user who creates spammy polls), "died", "iamanidiot", "massive_horde", "helpplz", "gksw" (someone created a tag for a member?), "beware", etc. Needless to say, it's become very apparent that most of the people on our forum should not have access to the privilege of creating tags.

Posts: 3

Participants: 3

Read full topic

Selection-based Quote Reply popup doesn't show on Firefox Android

Overlay obstructs Profile and User Card backgrounds

ImageMagick CVE-2016–3714

$
0
0

@levlaz wrote:

Hi friends!

Just wanted to give everyone a heads up. As you may have heard there is a nasty CVE related to the ImageMagick library that allows for remote code execution. https://medium.com/@rhuber/imagemagick-is-on-fire-cve-2016-3714-379faf762247#.1doeoa5zx

Discourse uses this library, protecting yourself is pretty simple. We are using v1.5.1 stable (so the file locations may be different depending on your version).

  1. SSH into your discourse server and go to where your discourse installation is
  2. ./launcher enter app
  3. Edit the policy.xml file vim /usr/local/etc/ImageMagick-6/policy.xml
  4. Add the following to the policy map:

    <policymap>
      <policy domain="coder" rights="none" pattern="EPHEMERAL" />
      <policy domain="coder" rights="none" pattern="URL" />
      <policy domain="coder" rights="none" pattern="HTTPS" />
      <policy domain="coder" rights="none" pattern="MVG" />
      <policy domain="coder" rights="none" pattern="MSL" />
    </policymap>
  5. Save the file

You should now be protected. It usually takes a bit of time to get patches done upstream so this is the best thing that you can do to protected your self hosted discourse site.

AFAIK this container is blown away and recreated each time you upgrade, so be sure to do this each time you upgrade until there is an upstream patch.

Posts: 7

Participants: 5

Read full topic

Modifying a user's user_option attributes via API

$
0
0

@paully21 wrote:

Our website allows our users to manage a small number of attributes of their Discourse profile. (Discourse is mostly used as a mailing list replacement)

We allow them to change their display name, bio, email address and how they wish to receive messages from Discourse.

For that last part we let the user choose whether they would like a digest or all emails via the attributes email_digests and mailing_list_mode.

Using C# (and RestSharp) I used to be able to PUT a request like this

/users/{username}.json?api_key={api_key}&api_username={api_username}

Then add the form data to the request email_digests=true&mailing_list_mode=false

In our previous version of Discourse, that worked great. Now that those attributes have moved to the user_option. I can't get it to work.

I have tried posting using dotted identifiers (user_option.email_digests) no luck. I looked at the routes and there isn't one specifically for getting or change the user_option (s)...I didn't expect there to be, but, I'm just saying I looked :slight_smile:

Anyone out here that can point me in the right direction?

Posts: 2

Participants: 1

Read full topic


Kudos from My Users on Discourse - FYI

$
0
0

@BCHK wrote:

Thought the discourse team might like this - keep up the great work! From a user on my forum.

" I love this forum because of the people on here, but I also love this forum because of the software. Discourse is amazingly simple and snappy to use. Unfortunately, all the other sites running discourse are devoted to coding or individual businesses..."

Posts: 1

Participants: 1

Read full topic

Server not response (DO SGP1)

$
0
0

@rsoutar wrote:

Hi guys,

For the past few days I had a problem that DO server CPU spike for unknown reason.

Here's the $ top command. It seems the postmaster was busy.

I only had 509 users on DO 2GB memory.

Posts: 6

Participants: 3

Read full topic

[Jobs::PollMailbox] Job exception: undefined method `update_columns' for nil:NilClass

$
0
0

@TyIsI wrote:

Getting regular alerts for this error:

Job exception: undefined method `update_columns' for nil:NilClass

Backtrace:

/var/www/discourse/lib/email/receiver.rb:44:in `rescue in process!'
/var/www/discourse/lib/email/receiver.rb:40:in `process!'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:27:in `process_popmail'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:117:in `block (2 levels) in poll_pop3'
/usr/local/lib/ruby/2.0.0/net/pop.rb:688:in `block in delete_all'
/usr/local/lib/ruby/2.0.0/net/pop.rb:687:in `each'
/usr/local/lib/ruby/2.0.0/net/pop.rb:687:in `delete_all'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:116:in `block in poll_pop3'
/usr/local/lib/ruby/2.0.0/net/pop.rb:531:in `start'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:115:in `poll_pop3'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:15:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

Relevant environment:

hostname	coyote-app
process_id	5258
application_version	ed446ca4876639f6bfc7b064c2e3deb85da9f4c1
current_db	default
current_hostname	talk.hackspace.ca
job	Jobs::PollMailbox
message	Unrecognized error type when processing incoming email

Posts: 3

Participants: 2

Read full topic

Discourse development installation non-vagrant

$
0
0

@thejars wrote:

Relatively new to discourse and docker. I have a home lab and would just assume stand up a development server in ESXi than on my local machine. I really just want this set up to play around with plugins. Can I make changes within the docker directories on a full install (like this one https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) and will those change persist if/when I rebuild the app? Thanks for any help.

Posts: 3

Participants: 2

Read full topic

Exposing the title to a post menu button

$
0
0

@stevenpslade wrote:

Continuing the discussion from I want to move the Facebook and Twitter share buttons to post menu:

I have passed along the title of a topic to a post menu button action by reopening the Topic Controller and giving a variable access to the model.title. I then use the variable in api.attachWidgetAction.

var topicTitle;
      const TopicController = api.container.lookupFactory('controller:topic');
      TopicController.reopen({
        _titleChanged: function() {
          const title = this.get('model.title');
          topicTitle = this.get('model.title');
          if (!Ember.isEmpty(title)) {

            // Note normally you don't have to trigger this, but topic titles can be updated
            // and are sometimes lazily loaded.
            this.send('refreshTitle');
            topicTitle = this.get('model.title');
          }
        }.observes('model.title', 'category')
      });

Does anyone have a better way of getting a Topic's title to use in a plugin's initializer?

Posts: 1

Participants: 1

Read full topic

Viewing all 60565 articles
Browse latest View live




Latest Images