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

S3 settings in config file doesn't seem to work

$
0
0

@disc wrote:

I set up the s3 related settings such as DISCOURSE_S3_BUCKET, DISCOURSE_S3_REGION and DISCOURSE_S3_USE_IAM_PROFILE in containers/app.yml file, and ran “launcher rebuild app” to rebuild it. After which, I tried to post a picture to the forum, but the picture isn’t uploaded to the configured s3 bucket.

I didn’t set the s3 related configs in the web interface (a.k.a. admin console).

My question is, is the admin console the only place to configure the s3 bucket? I see the s3 related settings listed in discourse/discourse_defaults.conf at master · discourse/discourse · GitHub but am not sure why it’s not working in my case.

Posts: 2

Participants: 2

Read full topic


Unable to invite user (invalid SQL)

$
0
0

@hason wrote:

If I want invite user or reset password, postgres throws error:

ERROR:  for SELECT DISTINCT, ORDER BY expressions must appear in select list at character 342
STATEMENT:  SELECT COUNT(*) FROM (SELECT DISTINCT "invites".* FROM "invites" LEFT OUTER JOIN "users" ON "users"."id" = "invites"."user_id" LEFT OUTER JOIN "user_stats" ON "user_stats"."user_id" = "users"."id" WHERE ("invites"."deleted_at" IS NULL) AND "invites"."invited_by_id" = 1 AND (invites.email IS NOT NULL) AND (invites.user_id IS NULL) ORDER BY CASE WHEN invites.user_id IS NOT NULL THEN 0 ELSE 1 END, user_stats.time_read DESC, invites.redeemed_at DESC OFFSET 0) subquery_for_count

If I remove DISTINCT from SQL query, everything is alright.

Posts: 2

Participants: 2

Read full topic

Create new topic / reply – auto jump into the text field

$
0
0

@terraboss wrote:

Some months ago the behaviour to start new topics seems to be changed. I really need the old behaviour back again.

The courser needs to be automatically placed into the composer text field therefore the user will be able to immediately start writing.

Why was this changed recently? – I think, in terms of usability , it’s very important for someone who would answer to someone else, he/she is expecting after pressing “reply”, to instantly start writing without looking for the mouse and activating the right text field.

Best

Posts: 5

Participants: 3

Read full topic

BUG Activation Email didn't work/password reset did

$
0
0

@SoreGums wrote:

While singing up for an account here on meta

I used GitHub to login,
Gave a different email address to the one gotten from GH.
Waited 5mins for the activation email (smashing refresh in gmail)
Clicked the button to send another activation email, smashed refresh again for a minute.
Sent an email from my other account on a different domain to the one used here on meta.
Instantly arrived.
Smashed refresh again for another 30seconds.

Came back to here to meta and clicked reset password.
Didn’t have time to click refresh in gmail.
set a password and now i can post, hence this post :slight_smile:

Posts: 4

Participants: 2

Read full topic

Hiding/deleting topic "about the xxx category"

$
0
0

@testingsoftware wrote:

Hi all,

I was trying to delete the topic “about the xxx category” because I have some categories that don’t need description.

Thanks to codinghorror and schungx i realised that it cannot be deleted but just hidden away from users which is not my ideal but it does work and allows for future use.

When trying to delete it even asks for confirmation of deletion but it does nothing, the topic just remains selected.

Wouldn’t be more user friendly if:

  • it’d say “you cannot delete this topic” or “this topic is linked to the description of your category and cannot be deleted”

  • allow deletion if description not added when creating category or simply Admin wants to delete it.

Posts: 13

Participants: 4

Read full topic

Discourse and Mattermost fails

$
0
0

@erikxxon wrote:

I have set up Mattermost notifications using the discourse-chat-integration plugin with incoming webhook and slashcommands.

Anyone got an idea?

I got this error - seen on my Mattermost log.

[2017/10/21 13:58:49 CEST] [EROR] /hooks/xu1sufehopdr8mwmfecq7uqfaa:CreateWebhookPost code=500 rid=tsufqba5e38uzfb7qfb5754hew uid= ip=5.189.176.198 Error creating post [details: err=store.sql_post.save.app_error]

Discourse log shows: DiscourseChat::ProviderError

/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/mattermost/mattermost_provider.rb:26:in `send_via_webhook'
/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/mattermost/mattermost_provider.rb:78:in `trigger_notification'
/var/www/discourse/plugins/discourse-chat-integration/app/services/manager.rb:83:in `block in trigger_notifications'
/var/www/discourse/plugins/discourse-chat-integration/app/services/manager.rb:76:in `each'
/var/www/discourse/plugins/discourse-chat-integration/app/services/manager.rb:76:in `trigger_notifications'
/var/www/discourse/plugins/discourse-chat-integration/app/jobs/regular/notify_chats.rb:7:in `execute'
/var/www/discourse/app/jobs/base.rb:134:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.1.0.rc4/lib/rails_multisite/connection_management.rb:71:in `with_connection'
/var/www/discourse/app/jobs/base.rb:129:in `block in perform'
/var/www/discourse/app/jobs/base.rb:125:in `each'
/var/www/discourse/app/jobs/base.rb:125:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:188:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:170:in `block (2 levels) in process'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
/var/www/discourse/lib/sidekiq/pausable.rb:79:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/middleware/chain.rb:133:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:169:in `block in process'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:141:in `block (6 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/job_retry.rb:97:in `local'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:140:in `block (5 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq.rb:36:in `block in <module:Sidekiq>'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:136:in `block (4 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:204:in `stats'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:131:in `block (3 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/job_logger.rb:7:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:130:in `block (2 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/job_retry.rb:72:in `global'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:129:in `block in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/logging.rb:44:in `with_context'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/logging.rb:38:in `with_job_hash_context'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:128:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:168:in `process'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:85:in `process_one'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/processor.rb:73:in `run'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/util.rb:16:in `watchdog'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/util.rb:25:in `block in safe_thread'

Posts: 7

Participants: 2

Read full topic

Increase file size on development environment?

$
0
0

@pfaffman wrote:

I’m working on an import that’s going live on Monday on a Discourse.org hosted site. There are some attachments bigger than 102400KB. Is there a way to increase that limit on the development environment so that I can include them?

Posts: 3

Participants: 2

Read full topic

Attachment "number of downloads" counter resets whenever a reply is edited

$
0
0

@elsantodel90 wrote:

This happens after updating to v1.9.0.beta13 +63

Steps to reproduce:

  1. Create a post with attachments.
  2. Let some users download them, so that the counters go up.
  3. Edit the post, for example adding a single text line at the end.

After this, counters are back to zero. Also, the colours for the “dark theme” (default, no changes) seem to have become broken. Particularly, the site banner used to be white and very noticeable. Now it is blue and has black text, so it is hard to read.

Posts: 4

Participants: 2

Read full topic


Site is not accessible from chrome with this error below

How do I create and upload my own Theme?

$
0
0

@shreya_sonawane wrote:

How do I create and upload my own Theme?

What you will need:

  • Your account’s credentials
  • An FTP client
  • Your Theme’s folder name

Here are the basic steps:

  1. Install one of the pre-created themes on your store
  2. Connect to your FTP and download the theme folder from the web/assets/templates/ FTP folder
  3. Rename the theme folder on your desktop
  4. Make your changes as needed
  5. Re-upload the renamed and edited theme folder to the web/assets/templates/ FTP folder
  6. Log into your Discourse Manager and go to Settings ->Design ->Themes & Styles
    Install and apply your edited theme

Those are the basic steps needed. For a more in-depth description of the process, keep reading below!

First let’s select a theme that you’ll be basing your own design off of.

  1. Log into your Discourse Manager and - using the right hand navigation menu - go to Settings ->Design ->Themes & Styles.

Let’s talk about the Themes & Styles section

In the Themes & Styles section, you will see all of the Themes that are available for use on your panel. As you browse each theme, you can hover over its thumbnail image to review its respective name. Clicking on a theme’s image will show you a screenshot representing the theme’s appearance. If the theme is marked as “responsive” the image will also show representations of the theme on desktop and mobile platforms.

Viewing the theme’s image will also have an “Install Theme” button that will download it and add it to your panel. During the installation process you will be asked if you would like to Apply the theme to the dashboard - meaning that it would be live on the dashboard. If you select no to this option, the theme will still be installed to your dashboard but it won’t be made live. However, you can apply it later as needed (more on that in a moment).

As you look through the themes, find one that best meets your desired layout that you would like to have on your dashboard. For example, some themes have categories listed along the top while others have categories listed along the left hand side of the dashboard’s framing. In some cases, the themes may have a large banner across the top while others have the banner nested. Just browse and find the layout that you’d like to see for your site and install the themes as needed.

After you’ve installed a few themes, they will be shown in the Themes and Styles page with a small diagonal banner labeled “Installed” on it. Again, this just means that the theme is installed but not yet applied to the live dashboard.

If you click on any of these installed themes, you can apply them outright or otherwise click on Preview to see how it would function with your dashboard.

Once you’ve selected the theme that you’d like to use for your own design, make a note of its name and proceed with the following steps:

  1. Connect to your Discourse’s FTP access
  2. Navigate to web/assets/templates/

The templates folder will contain all of your installed themes

  1. Locate the theme folder that you’ve chosen for your edits and download the folder (via FTP) to your desktop
    (download the whole folder!)
  2. Once you have the theme folder on your desktop, rename it.

Tip
The name of the folder can be anything you’d like it to be. Only suggest naming it something other than its original name to prevent confusion when you upload it back to your dashboard.
Main Theme files

Typically, the theme folder will contain a frame.html file and a CSS folder.

  • The frame.html file
    This is the HTML template that controls the layout of your dashboard.
  • The CSS folder
    Is a folder that will contain the style sheets used by the site.

These are the two main elements that control the overall look and feel of your dashboard. The best way to view the relation between frame and CSS is to think of the frame file as the blueprint to a building. This blueprint specifies where certain rooms and areas of the building will be located. As the building is being constructed, the contractor will build the walls and doorways of the building according to blueprint. Using this analogy, the CSS can then be viewed as the interior designer of the building that determines the various look and feel of the rooms within the building. The frame and CSS work along the same lines. The frame.html dictates where elements will go and the CSS will dictate what they look like.

Additional Theme Files

All theme folders will contain the frame.html file and CSS folder mentioned above. These are the important ones to be most concerned with. However, in some cases, you may also see these additional folders/files in the theme folder you download.

  • home.html (file)
    This is the HTML template used for the Discourse Dashboard’s home page. Typically it’s the same file as found in the global “Common” folder so it is not always needed or unique to a particular theme. Therefore it isn’t found in every theme folder.

  • images (folder)
    This folder will contain images and graphics used by the theme. For example certain buttons may be image based and these images will be found here. Keep in mind that your CSS folder may also contain its own images folder

  • js (folder)
    The js folder will contain any javascript that is used specifically by the theme. As with the home.html file, these are typically the same as served from the global common folder, so they might not always be present in the theme folder.

  • fonts (folder)
    If theme uses special fonts or font/icon effects, they’ll be located in this folder

  • Screenshot files
    These will be screenshots of the theme as it will be shown on the Theme selector page mentioned earlier. You can make your own for your theme if you’d like! Just preserve their name.

Once you have the theme folder downloaded and renamed on your desktop, you’re now ready to edit the theme as you see fit.

How do I edit the Theme?

This is something that - as a designer/developer - must determine for yourself how to edit the theme. It would be like us telling you not only how to paint your house, but also tell you which type of paint to use, what colors to use and where to apply them. It’s a creative process and you are the creator.

However we are able to provide the following tips to keep in mind when making your changes.

  • Make a backup of the theme folder and store it somewhere safe on your computer!
    As you make changes to the theme files, you should get into the habit of making backups of your changes just in case something doesn’t work as you plan. Rather than starting over each time, you can revert to a previous back up

  • Preserve Comment Tags!
    The html templates contain certain blocks of coding that are used by the software to insert details into the various sections. These are usually written as comment tags and contained in blocks. You can edit the HTML as you see fit, but in order for the software to function correctly, please be sure to preserve the comment tags as they are written. The comment blocks will usually look like this in the code:

                          <!--START: [function name]-->
                                       html code
                           <!--END: [function name] -->
  • Preserve bracketed items!
    Similar to the comment tags, the software also uses variables that are needed to insert information form the discourse’s database. These are always written within open and closed brackets. Again, you can edit the HTML around the variables as needed, but please preserve the variables and their brackets exactly as they are written. The bracketed variables will usually look like this:

                               [variable _name]
    

After creating and saving your design, you can upload (will write in next how to upload multiple files at ones (threading)) it to your Discourse for use.

  1. Once again, connect to your Dashboard access
  2. Navigate to the web/assets/templates folder
  3. Upload the edited/renamed Theme folder from your computer to the templates folder
  4. Log into your Discouse Dashboard Manager and once again navigate to Settings ->Design ->Themes & Styles
  5. Locate the theme you just uploaded
    (Hint: You can use the search bar at the to to search for it by name)
  6. Click on the theme and expand its view
  7. Click on Apply to have it made live on your Dashboard!

I look forward to design this model view this winter OPW program. Thanks!!

Posts: 1

Participants: 1

Read full topic

CDN unable to access assets from origin

$
0
0

@disc wrote:

“./launcher rebuild app” generates brotli-compressed asset files with file extension “.js.br”. However, when “view source” in the browser, the asset files all have extension “.br.js”. The mismatch of file names causes 404s for CDN, as a result the browser can’t download those files either.

For example, one of the asset files shows in browser “view source” as,

<link rel='preload' href='https://d5e4emqtwppd2.cloudfront.net/assets/locales/en-692973624e3f492c9c0634e89f74ffa930b18c27832c1c7d9ca16864c8da12ac.br.js' as='script'/>

But inside the container the files actually look like this:

# ls /var/www/discourse/public/assets/locales/en-692973624e3f492c9c0634e89f74ffa930b18c27832c1c7d9ca16864c8da12ac.*
/var/www/discourse/public/assets/locales/en-692973624e3f492c9c0634e89f74ffa930b18c27832c1c7d9ca16864c8da12ac.js
/var/www/discourse/public/assets/locales/en-692973624e3f492c9c0634e89f74ffa930b18c27832c1c7d9ca16864c8da12ac.js.br
/var/www/discourse/public/assets/locales/en-692973624e3f492c9c0634e89f74ffa930b18c27832c1c7d9ca16864c8da12ac.js.gz
/var/www/discourse/public/assets/locales/en-692973624e3f492c9c0634e89f74ffa930b18c27832c1c7d9ca16864c8da12ac.js.map

This happens when using AWS Cloudfront as the CDN provider. When CDN is disabled, it seems to work (at least for Chrome).

Posts: 1

Participants: 1

Read full topic

Notification icon not showing

Advice needed for tailoring Discourse to my organisation

$
0
0

@Alexander_Wright wrote:

I’m the IT director for CAMRA. We’re an organisation of 190,000 people with roughly 20,000 active volunteers organised into a branch and region structure.

I’ve had success with implementing Discourse, and we now have 1400 users, with over 700 active every month. I’d like to have a push to recruit more people. One of the desired features is to have region and branch categories, but I’m worried that we’ll end up with 250 odd categories that will clutter up the interface. Members are typically interested in their own branch and region, and would not want to see discussions occurring in other branches.

We’re implementing oauth to authenticate users, and thus can add their branch and region to their user details.

What is the best implementation pattern for us? At the moment, I’m thinking of having a group per branch and using that to authenticate each category, but as above, I’m worried about clutter.

Ideally I’d have a My Region category that automatically mapped to that member’s region. Is this possible with plugins, or would it require major modifications?

Finally some paid help would be welcome. Offers please!

Posts: 2

Participants: 2

Read full topic

Merging two Discourse forums

$
0
0

@omarfilip wrote:

I’m trying to use this and I am not having much success.

Discourse A has ~100k posts and Discourse B ~30k posts. I’ve moved all categories under one main category and then exported it from Discourse B. When I import into Discourse A only 5 posts are added and two are attributed to an incorrect user.

For the incorrectly attributed example post I’ve noticed that in Discourse B it was made by a user with a user id 176, and in Discourse A it is attributed to a user with the same user id. But those are two distinct users.

No users in A and B have the same email address, but ~100 have the same user name.

Oddly, when I first tried a test to see if this could work, I ran the export-import and it seemed that most of the 30k posts were transferred, but post ownership was completely jumbled.

Perhaps a fix to the post ownership issue could be to change user ids in Discourse B before export so that they don’t have a duplicate in Discourse A. Can this be done in bulk? Do i need to change usernames in B, and can it be done in bulk by adding “_2” to each username?

As for the 29,995 posts that didn’t make it over - I’m stumped. I see those topics scroll by during import, but not in Discourse A after import.

Posts: 1

Participants: 1

Read full topic

Can we get rid of height/width auto in oneboxes?

$
0
0

@sam wrote:

Question for @awesomerobot at the moment our oneboxes have height / width set to auto in the images. EG:

This cause pages to Jiggle when the image finally loads, despite us having the exact dimensions.

image

I was wondering if you can think of some workaround here where we can avoid this? Are we going to need to amend something server side to size these images down.

(keep in mind we need to account for mobile here as well)

Posts: 1

Participants: 1

Read full topic


No links in the reports page to review reported posts

Gitlab Plugin for Discourse

$
0
0

@Amar_Kumar wrote:

Hi,

I was wondering if there is a plugin for Discourse that allows it to be integrated with Gitlab?

The reason I would like this plugin is so that if a user of Gitlab has a question about the tool, they can raise this on Discourse where we can answer that query promptly.

Any help would be greatly appreciated.

Thanks in advance.

Posts: 4

Participants: 2

Read full topic

HTML source shown

Contabo experience with Plex, Webmin or other server-admin setup?

$
0
0

@dalerka wrote:

Hey guys! Can someone comment about experience and gotchas of hosting with Contabo.com?
They seem very affordable, but have a pretty “old-school” admin panel and offer to install Plesk or Webmin.

Does it even make sense to install such tools (if I’m not going to host apps like Wordpress or resell hosting on the same machine)?

What are the benefits and downsides of using Plesk or Webmin or some other admin tool on the server dedicated for Discourse instance?

What is the recommended and sufficient set of tools to install for monitoring and maintenance of a Discourse-only machine?

I’m new to such tools and will appreciate any advice on good server management and monitoring practices.

EDIT: I reviewed the following topics, but still your input to questions above is very appreciated.

Posts: 5

Participants: 2

Read full topic

[PAID-Job] Convert Wordpress Q&A to Discourse Q&A

Viewing all 60721 articles
Browse latest View live




Latest Images