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

The Plugin::Instance.find_all method incorrectly treats every file with the «plugin.rb» name as a Discourse plugin

$
0
0

@dmitry_fedyuk wrote:

The incorrect code:

It will fail if a plugin requires a gem, which contain a file with the plugin.rb name.
An example of problem gem is airbrake.

If a plugin requires the airbrake gem, then Discourse incorrectly theats the lib/airbrake/delayed_job/plugin.rb file as a Discourse plugin, and fails with the message:

/vagrant/plugins/df-core/gems/2.3.1/gems/airbrake-5.6.1/lib/airbrake/delayed_job/plugin.rb:6:in <module:Plugins>': uninitialized constant Delayed (NameError)
from /vagrant/plugins/df-core/gems/2.3.1/gems/airbrake-5.6.1/lib/airbrake/delayed_job/plugin.rb:2:in
'
from /vagrant/plugins/df-core/gems/2.3.1/gems/airbrake-5.6.1/lib/airbrake/delayed_job/plugin.rb:1:in activate!'
from /vagrant/lib/plugin/instance.rb:312:in
instance_eval'
from /vagrant/lib/plugin/instance.rb:312:in activate!'
from /vagrant/lib/discourse.rb:108:in
block in activate_plugins!'
from /vagrant/lib/discourse.rb:105:in each'
from /vagrant/lib/discourse.rb:105:in
activate_plugins!'
from /vagrant/config/application.rb:165:in <class:Application>'
from /vagrant/config/application.rb:19:in
'
from /vagrant/config/application.rb:18:in <top (required)>'
from /home/vagrant/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:78:in
require'
from /home/vagrant/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:78:in block in server'
from /home/vagrant/.rvm/gems/ruby-2.3.1/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:75:in
tap'

Posts: 5

Participants: 2

Read full topic


Unable to enter my discourse site

$
0
0

@snowdonkiwi wrote:

For the last two days when I try to get into my discourse site this is the message I get: "I'm sorry, your requested action is not allowed. If you have any questions, please contact the server administrator."

From time to time it works for a little while and then reverts back to this message.

The site is connect.gamechangersgo.com

There doesn't appear to be anything obvious wrong at the digital ocean end.

Posts: 8

Participants: 4

Read full topic

Editing topic title/category or tag does not re-render docked header

$
0
0

@sam wrote:

@eviltrout I want to fix this but not sure about what the right way is to route the event.

Repro:

  • Edit first post
  • Scroll down so title,category and tags are now in the header
  • Edit category, tags or title
  • Edit is not reflected in header-topic-info widget cause a reload of topic is not reflected

I can think of some hacks to fix this but not sure what the correct approach is:

  • Option 1: have the header widget observe the category for relevant changes and rerender self. (downside, more observers and need to be careful about unobserving)

  • Option 2: have the controller tell the widget to re-render when first post is edited unconditionally. (downside, no clear API for how to seek out the widget and rerender)

Posts: 2

Participants: 2

Read full topic

Discourse-saml: There was an error authorizing your account

$
0
0

@skoota wrote:

Hi All,

So, following on from my post yesterday I have installed the discourse-saml plugin. Our iDP has setup everything on their end, but whenever we attempt to login the following message appears:

Sorry, there was an error authorizing your account. Perhaps you did not approve authorization?

Searching around meta I have found others with this same issues, but it usually relates to social login (e.g. Facebook, Twitter, etc.) rather than using a SSO plugin like discourse-saml.

Looking in the logs, here is the error message:

(saml) Authentication failure! invalid_ticket: OneLogin::RubySaml::ValidationError, The response was received at https://example.com/auth/saml/callback instead of http://example.com/auth/saml/callback

So it looks like the response is going to the https site, whereas it wants to go to the http site. Not sure why it wants the response on the http site - does anyone have an idea about how to tell the plugin to expect the response on the https site?

Thanks in advance!

Posts: 2

Participants: 1

Read full topic

Images and jquery_include.js 404ing on finish installation screen (subfolder install)

$
0
0

@naomi wrote:

Hi, I'm having the same issue, on the finish installation screen:

The styles & js file load fine, but the images (tada.svg, etc) and the jquery_include.js file 404.

It's a brand new subfolder install (Docker version) that followed the instructions in the above thread, except I removed the Fastly replace block (not using Fastly) and the command to remove the public symlinked folders.

The Discourse version is 1.7.0.beta10.

Posts: 6

Participants: 3

Read full topic

Multi-Domain with two docker containers

$
0
0

@zeigerpuppy wrote:

I am interested in running two instances of discourse from one server. I have a single docker container set up and running well. Now I'd like to add another one.

I have read https://meta.discourse.org/t/running-two-docker-instances-on-one-host/14849/5
and https://meta.discourse.org/t/multisite-configuration-with-docker/14084

However, I do not want to use multisite (I prefer the portability of having two separate containers, even if it uses more RAM).

My setup uses an nginx proxy on the host and the current discourse install is being served on port 20081.

How do I run a completely separate docker container on port 20082?
I have tried updating the config with the new port and building but it replaced the other config rather than starting a new container.

Posts: 4

Participants: 3

Read full topic

Welcome message for new users is not displaying

Convert all existing topics in category to wikis

$
0
0

@joebuhlig wrote:

With the ability (coming soon) to make new topics wikis by default, it will likely be met with a desire to convert the existing topics in that category to wikis as well. Here's the process:

  1. Make sure you have a backup in place.

    You can do this via the UI. This is just in case something goes wrong.

  2. Get the id of the category you want to edit.

    ./launcher enter app
    rails c
    % Category.find_by(name: "Wiki Topics Category").id
    => 12
  3. You'll need to run SQL to update the first post of each topic in that category. This is the SQL query:

    UPDATE posts
    SET wiki=true
    WHERE id IN (
        SELECT p.id
        FROM posts p
        LEFT JOIN topics t ON p.topic_id = t.id
        WHERE p.post_number = 1 AND t.category_id = YOUR_CATEGORY_ID);

    For example, if my category id is 12, then this is the command I need to run:

    ./launcher enter app
    rails c
    % User.exec_sql("UPDATE posts SET wiki=true WHERE id IN (SELECT p.id FROM posts p LEFT JOIN topics t ON p.topic_id = t.id WHERE p.post_number = 1 AND t.category_id = 12);")

Posts: 1

Participants: 1

Read full topic


Show also under my preferences the normal categories

$
0
0

@Manfred_Bayer-Lemerz wrote:

Hallo one quick question:

Is there a setting that also categories that the have the watching status normal can be displayed?

I know that right now Watched, Tracked, Watching First Post and Muted are displayed and that the difference are the Normal categories but it would be for the user easier if they also see the normal categories.

thanks and br

Manfred

Posts: 5

Participants: 2

Read full topic

Login form not showing [SITE DOWN]

$
0
0

@tim.smith wrote:

Problem: Users are unable to log in because the login form is not displaying. The shadowbox does display though.

Cause: the discourse-modal div that contains the login form has the CSS class hidden. Not sure why the form isn't being unhidden.

Workaround: Using Chrome's developer tools, editing the DOM to remove the hidden class causes the login form to display correctly and can be used to authenticate. (This is not an acceptable workaround for users, obviously)

What changed: I honestly have no idea. The instance hasn't been updated since Dec. 1. Not sure when the login issue actually started happening, but was just reported today.

Discourse details

Screenshot of missing login screen:

Posts: 10

Participants: 3

Read full topic

1.7.0.beta10: Installation out of date warning when not out of date

Can someone repair our plugin?

$
0
0

@michaeld wrote:

Our plugin broke, and we are unable to fix it due to lack of frontend (Ember) knowledge.
We're looking for someone who's able to make it work again.

Posts: 4

Participants: 3

Read full topic

Discourse::Error: {"errors"=>["Logo url is invalid"]}

$
0
0

@AhmedKamal20 wrote:

I keep getting this error

Discourse::Error: {"errors"=>["Logo url is invalid"]}
from /home/user/app/lib/discourse/client.rb:47:inpost'`

when trying to create new category from a client

client = Discourse::Client.new
client.api_username = "staff"
client.category_create(color: "AB9364", description: "D", name: "A", parent_category_id: "847", text_color: "FFFFFF", api_key: "[FILTERED]", api_username: "staff", logo_url: 'https://i.imgur.com/6RNHh8R.jpg')

any image URL generate the same error
once i remove the logo_url parameter the category will be created

am i doing something wrong ?

Posts: 2

Participants: 2

Read full topic

Keyboard Shortcut - post actions select post unclear

$
0
0

@JMichaelTX wrote:

Continuing the discussion from Keyboard Shortcuts - post actions don't work: (May 25, 2014)

I'm having the same issue as reported in the above topic.
None of these shortcuts are working for me in
Discourse Version 1.6.8 in Chrome 55.0.2883.95 (2883.95) on macOS 10.11.4:

 s Share post
 r Reply to post
 q Quote post
 l Like post
 ! Flag post
 b Bookmark post
 e Edit post
 d Delete post

Is this a known issue?

So I'm not sure what the "q Quote post" is supposed to do. If I have selected text in a post, and it shows:

Is there a shortcut key to use the quote, as if I had clicked on the popup?

Thanks.

BTW, I have done extensive searching, both here in the forum, and via Google, but could not find any recent topics that address this issue.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

EDIT: 2016-12-19 3:24 PM CT

Solution: Post #2 by @jomaxro

Posts: 7

Participants: 3

Read full topic

Is it possible to disable all title/body validations?

$
0
0

@meriksson wrote:

I am working on a script for importing large numbers of posts into Discourse. I have been spending a lot of time managing problems like title or body fields being too short, titles being all-caps, titles consisting of unusual characters etc. For some I have found settings, e.g. allowing all-caps titles. But I still have some special cases causing trouble, like posts with this body: "?" Despite setting min_post_length to 1, this is rejected and if I understand correctly this has to do with it being specifically a question mark. In any case, I have run into several of these cases with no obvious way of dealing with them by changing a setting.

My question is if it is possible to disable all similar validations, e.g. the Sentinel features and related things, and instead simply accept any string for the one-off purpose of running a batch importing job. If not, is there a list of all individual settings which are relevant to this? I have spent some time searching this forum and elsewhere but have had no luck so far. Sorry if this is old hat to you guys, in that case I would be very grateful for a pointer to where this has been explained.

Note that writing posts differently is not an option for me since I am importing tens of thousands of posts which are like they are. I certainly want to have those features, just not during the initial import. I also can not skip posts just because the are weird (e.g. consist of "?") since this would cause other issues, e.g. in some cases such posts have replies made to them and I need to import the parent to properly import the children etc.

PS. I will be publishing an extensive update to an import script which I know will be useful to many who are in a similar situation, I just need to iron out a few more kinks first. The deadline for the stuff I am working on for my own project is December 31 and I plan to make a pull request to an existing but not well updated importer project in January.

Posts: 3

Participants: 2

Read full topic


Runnable repl.it embed

$
0
0

@ossia wrote:

We would like to be able to embed runnable Repl.it embeds like this one.

Repl.it supports embedding and documents this here: https://repl.it/site/docs/embed

But since embed uses an iframe, Discourse seems to suppress it. Is there a way we could somehow whitelist this so people could include runnable code snippets in their posts?

Posts: 5

Participants: 3

Read full topic

Front page of discourse missing content

$
0
0

@DuyVu wrote:

I have updated discourse and font page were missing content. Single topics and admin control panel are still working normally.
http://forum.openbim.com.vn/
http://forum.openbim.com.vn/t/cung-nghien-cuu-ung-dung-dynamo/1852

I installed discourse with WordPress on the same machine follow this post:

This is my app.yml

templates:
  - "templates/cron.template.yml"
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
  - "templates/web.socketed.template.yml"
 ## Comment out the following lines if you wish to add Lets Encrypt for your Discourse install
 # - "templates/web.ssl.template.yml"
 # - "templates/web.letsencrypt.ssl.template.yml"

## which TCP/IP ports should this container expose?
expose:
  - "2222:22"
# - "80:80"   # fwd host port 80   to container port 80 (http)
# - "443:443" # fwd host port 443   to container port 443 (https) (ssl ready)
# If you want Discourse to share a port with another webserver like Apache or nginx,
# see https://meta.discourse.org/t/17247 for instructions.

# any extra arguments for Docker?
# docker_args:

params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ##
  ## On 1GB installs set to 128MB (to leave room for other processes)
  ## on a 4GB instance you may raise to 1GB
  #db_shared_buffers: "256MB"
 #
  ## Set higher on large instances it defaults to 10MB, for a 3GB install 40MB is a good default
  ## this improves sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"
  #
  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

env:
  LANG: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## TODO: How many concurrent web requests are supported?
  ## With 2GB we recommend 3-4 workers, with 1GB only 2
  ## If you have lots of memory, use one or two workers per logical CPU core
  #UNICORN_WORKERS: 3

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'vubaduy125@gmail.com'

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'forum.openbim.com.vn'
  ## TODO: Uncomment if you want the container to be started with the same
  ##       hostname (-h option) as specified above (default "$hostname-$config")
 ## NOTE: 'true' is the only valid value here, any other will be ignored
  #DOCKER_USE_HOSTNAME: true

  ## TODO: The mailserver this Discourse instance will use
  DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org         # (mandatory)
  #DISCOURSE_SMTP_PORT: 587                        # (optional)
  DISCOURSE_SMTP_USER_NAME: postmaster@forum.openbim.com.vn      # (optional)
  DISCOURSE_SMTP_PASSWORD: d081e5dce7663f3dce367a72f239e80b      # (optional, WARNING the char '#' in pw can cause problems!)
  #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

  ## The Lets Encrypt email will allow you to register a FREE SSL certificate if you added the Lets Encrypt template, comment it out if you have set this up
  # LETSENCRYPT_ACCOUNT_EMAIL: email@awesomedomain.com

  ## The CDN address for this Discourse instance (configured to pull)
  #DISCOURSE_CDN_URL: //discourse-cdn.example.com

## These containers are stateless, all data is stored in /shared
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log
## The docker manager plugin allows you to one-click upgrade Discourse
## http://vietbim.net/admin/docker
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/angusmcleod/discourse-topic-previews.git
## Remember, this is YAML syntax - you can only have one block with a name
run:
  - exec: echo "Beginning of custom commands"

  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  ## After getting the first signup email, re-comment the line. It only needs to run once.

  ## If you want to configure password login for root, uncomment and change:
  ## Use only one of the following lines:
  #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
  #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root

  - exec: echo "End of custom commands"

My nginx config in /etc/nginx/conf.d/discourse.conf

server {
        listen 80; listen [::]:80;
        server_name forum.openbim.com.vn;  # <-- change this

        location / {
                proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
                proxy_set_header Host $http_host;
                proxy_http_version 1.1;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
        }
}

Help me plz, i very appreciate it.

Posts: 7

Participants: 3

Read full topic

How to start contributing?

$
0
0

@Mynk96 wrote:

I am newbie here,can somebody here guide me how to go through and start solving bugs? i ahve hosted discourse on my local machine ? can somebody help me please?

Posts: 3

Participants: 2

Read full topic

Category Banner Image Missing on Landing Page After Update

$
0
0

@LilTrashPanda wrote:

Hello!

Just recently updated our Discourse to the latest version and it seems like the large banner image I'd inserted into our "Landing Page" no longer exists (and also that our Global Alert Notice box is pushed up underneath the top header bar).

I've figured out how to fix the Global Alert Notice, however I'm unable to get my banner image to return. Here's the CSS we're using -- did something change that would've disabled this CSS?:

.category-deformers #main > .ember-view > .ember-view:nth-child(1) {
    height:500px;
    background-image:url(http://www.deformers.com/_images/forums/header-official.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    position: relative;
}

.category-deformers #main > .ember-view > .ember-view:nth-child(1):after{
    //content:'';
    display:block;
    height:10px;
    background-image:url(http://www.deformers.com/_images/slides/bgrd-slide-bot.png);
    background-repeat:repeat-x;
    background-position:left top;
    bottom: 0;
    position: absolute;
    width: 100%;
}

.category-deformers #main-outlet{
    padding-top: 200px;
}

.category-deformers .d-header.clearfix{
    padding-left:0px;
    padding-right:0px;
}

Before Image:

After Image:

Posts: 2

Participants: 2

Read full topic

Is there a german translation for Cakeday?

$
0
0

@Lutz wrote:

Is there a german translation for Cakeday? If so, how do I active it? If not, I am trying to provide one in the next days.

Posts: 3

Participants: 2

Read full topic

Viewing all 60613 articles
Browse latest View live




Latest Images