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

Restoring backup from 2.0.0.beta5 disables Discourse

$
0
0

@pfaffman wrote:

I’m trying to restore a backup from a hosted site running "Discourse 2.0.0.beta5 - https://github.com/discourse/discourse version 6f32de186aa1d9e0814183f354bb01f5b66d1c0e.

When I restore on a clean build, or one that’s gone through the setup wizard, it fails and leaves the database in such a state that Discourse doesn’t run anymore.

This is (PostgreSQL) 9.5.10 in the container.

Starting restore: discourse-2018-04-03-183844-v20180328180317.tar.gz
[STARTED]
'system' has started the restore!
Marking restore as running...
Making sure /var/www/discourse/tmp/restores/default/2018-04-03-222730 exists...
Copying archive to tmp directory...
Unzipping archive, this may take a while...
tar: meta.json: Not found in archive
tar: Exiting with failure status due to previous errors
No metadata file to extract.
Validating metadata...
  Current version: 20180328180317
  Restored version: 20180328180317
tar: dump.sql: Not found in archive
tar: Exiting with failure status due to previous errors
Extracting dump file...
Cannot restore into different schema, restoring in-place
Enabling readonly mode...
Pausing sidekiq...
Waiting for sidekiq to finish running jobs...
Restoring dump file... (can be quite long)

Here’s the whole log: Restoring from Discourse 2.0.0.beta5 - https://github.com/discourse/discourse version 6f32de186aa1d9e0814183f354bb01f5b66d1c0e · GitHub

And then, when it’s done, Discourse says:

Posts: 1

Participants: 1

Read full topic


Change url link, /category/p/id example

API topic post creation ordered by updated_at

$
0
0

@michael.smith wrote:

I am creating a lot of topics with posts from an older system. The topics are from a few years ago and the posts within the topics the same.
What I am finding is that the posts associated with the topic show the correct time of created_at but seem to order by updated_at.
updated_at is the date and time that I created the post within my script which is not necessarily the order that they should be displayed.
I am using the discourse_api gem for all the Discourse work.

Is there a way to solve this? Or am I seeing this wrong? Or is there a setting that I can chage to display them in the correct order?

Thanks
Michael

Posts: 1

Participants: 1

Read full topic

How would I get text color as a whole block?

$
0
0

@bigyihsuan wrote:

I wish to make a large block of text with BBCode a certain color. How would I go about this?

What I put in:

[color=red]line 1

line 2

line 3[/color]

Posts: 2

Participants: 2

Read full topic

How can we add an addon sub-domain in Discourse

$
0
0

@Gulshan_Kumar wrote:

Hello,

I am experimenting with something.

This is just an example, to explain in simple way.

Suppose that discourse is hosted at https://meta.example.org

I want an additional subdomain https://docs.example.org for accessing same website, without altering source code. Just, address bar URL should change, and nothing else. Nor, I need redirect. Just I need clone.

What problem I am facing?

When I add simply CNAME docs it redirects to meta. I don’t want that.

can we make this possible? If yes, please let me know how.

Thanks & Regards,
Gulshan

Posts: 3

Participants: 3

Read full topic

Display FontAwesome icon next to an admin

$
0
0

@Ultra wrote:

Hi! I’m wondering how I can display a FontAwesome icon next to an admin user. I understand hat the shield is hidden on purpose, but I would like to put an icon there anyways. I’m new to Discourse and CSS with Discourse. Could anyone help me? Thanks!

Edit: Grammar

Posts: 6

Participants: 3

Read full topic

Discourse footnote

$
0
0

@sam wrote:

The discourse footnote plugin allows you to create markdown footnotes in your posts.

image

Installation

Add the following line to your container, in the plugin install section

  - cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-footnote

About

Footnotes have been discussed as an optional CommonMark extension for a while:

The general consensus is that the extension should allow for syntax such as:

some deep thought who needs a reference[^1]

[^1]: Here's the reference. 

Discourse footnote re-packages the footnote markdown.it extension by @Vitaly as a Discourse plugin.

It supports both, single line and multi paragraph footnotes.

So, for example, this works.

We are our choices. [^sartre]

A lot of interesting words

He really said it. [^sartre]

[^sartre]: We are our choices.
Sartre, some time
some day
in the past

Site Settings

In a multi site environment each site can enable or disable the extension with the enable_markdown_footnotes setting.

Additionally you can either enable or disable “inline” expansion with display_footnotes_inline

Screenshots

This is how stuff looks without inline expansion:

image

This is how stuff looks with inline expansion:

image

Inline expansion is “quote” friendly and mobile friendly.

Posts: 1

Participants: 1

Read full topic

Docker base image with PostgreSQL 10 released

$
0
0

@tgxworld wrote:

launcher has been updated to use the new Docker base image and postgres.template.yml which would use PostgreSQL 10 by default instead of Postgres 9.5.

As long as your container’s config is using the default postgres.template.yml, the upgrade of the PostgreSQL data directory would happen automatically the next time you do a ./launcher rebuild. In the event that the PostgreSQL data directory fails to upgrade, please follow the instructions printed by ./launcher rebuild or you may refer to the instructions in this template. If following the instructions does not work for you, please post the full log of ./launcher rebuild here so that we can help you restore your instance into a working state.

Posts: 1

Participants: 1

Read full topic


Spaces in HTML->MD conversion from Email turns lines into code blocks

$
0
0

@schungx wrote:

Repo:

  1. Send an email with the following:
Hi,

We have a requirement.
Something else.
  1. The email generated will have the following text/plain version:
Hi,

We have a requirement.
Something else.
  1. The email generated will have the following HTML version:
...
<body>
    <p>Hi,</p>
    <p>We have a requirement.
    Something else.</p>
</body>
...
  1. If prefer html in email is set, then the HTML version will be taken to convert to MarkDown.

  2. The MarkDown converted will be:

Hi,

      We have a requirement.
      Something else.
  1. Notice that there are SIX spaces in front of the paragraph (perhaps created by the four spaces in the HTML between </p> and <p>, plus a CRLF pair. Also, the second line because a separate paragraph with leading spaces. These spaces cause the paragraphs to become code blocks.

Posts: 1

Participants: 1

Read full topic

Help .. rebuild app failed

$
0
0

@TerminalAddict wrote:

help … I did a ./launcher rebuild app today, as I have many times before.
got an error …
any ideas? looks like something is up with ruby libraries ?

I, [2018-04-04T07:06:26.498684 #16]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
LoadError: /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/mini_racer-0.1.11/lib/mini_racer_extension.so: undefined symbol: _ZTIN2v811ArrayBuffer9AllocatorE - /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/mini_racer-0.1.11/lib/mini_racer_extension.so
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/mini_racer-0.1.11/lib/mini_racer.rb:2:in `<top (required)>'
/var/www/discourse/config/application.rb:22:in `<top (required)>'
/var/www/discourse/Rakefile:5:in `require'
/var/www/discourse/Rakefile:5:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
I, [2018-04-04T07:06:34.391071 #16]  INFO -- :
I, [2018-04-04T07:06:34.391568 #16]  INFO -- : Terminating async processes
I, [2018-04-04T07:06:34.391658 #16]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 47
I, [2018-04-04T07:06:34.391753 #16]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 163
2018-04-04 07:06:34.391 UTC [47] LOG:  received fast shutdown request
163:signal-handler (1522825594) Received SIGTERM scheduling shutdown...
2018-04-04 07:06:34.399 UTC [47] LOG:  aborting any active transactions
2018-04-04 07:06:34.403 UTC [47] LOG:  worker process: logical replication launcher (PID 56) exited with exit code 1
2018-04-04 07:06:34.404 UTC [51] LOG:  shutting down
163:M 04 Apr 07:06:34.427 # User requested shutdown...
163:M 04 Apr 07:06:34.427 * Saving the final RDB snapshot before exiting.
2018-04-04 07:06:34.478 UTC [47] LOG:  database system is shut down
163:M 04 Apr 07:06:34.479 * DB saved on disk
163:M 04 Apr 07:06:34.479 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 14253 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
2f3c9493bf73510eacd5441b9b5a42b09def51babd56ee00a35941442da2cc5e
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Posts: 2

Participants: 2

Read full topic

Any way to turn off code-block indent from emails

$
0
0

@schungx wrote:

This is a follow-on from:

Many people send in emails with only plain text versions (no HTML version). In many countries they start off each paragraph with indents (or five spaces).

Needless to say, all paragraphs got turned into code blocks in MarkDown.

The thing is, hardly never will my user send in a code-block. I do not run a programming forum.

Is there any way to turn OFF the four-space ==> code block feature of MarkDown?

Posts: 1

Participants: 1

Read full topic

(+ New topic) button on all pages - Theme component

$
0
0

@lll wrote:

A simple theme component to add the + New Topic button to the header. The button will show on every page - even inside topics.

Github repo link

https://github.com/hnb-ku/discourse-new-topic-button-theme-component

Screenshots:

Desktop:

Mobile:

Installation:

Follow the official guide for theme installation:

Settings:

This component has 3 settings where you can choose the button icon, the button text, and whether or not to hide the default “New topic” button:

Credit

This is based on @techAPJ’s tutorial here:

And on @dalerka’s patch to make things work with newer versions of Discourse here:

I only put it all together and added the theme settings to make things simple.

Posts: 1

Participants: 1

Read full topic

A better 'Sorry, you don't have access to that topic!' message

$
0
0

@bartv wrote:

One of our categories is ‘members-only’, and people can request access to it (we validate them manually before adding). Some of them try to access topics before being added and are usually left confused about what to do when they read the ‘Sorry, you don’t have access to that topic!’ message.

I’d like to provide them some help here - if we could add an optional custom ‘permission denied’ message for categories we could solve this. In our case, this might read:

This forum category is for registered Store users only. To get access, first register as a seller, then request access to this forum here.

Here’s a screenshot of the current message:

Posts: 1

Participants: 1

Read full topic

You were logged out

$
0
0

@Leon_Tian wrote:

When I create a topic ,this bug appear.

Sometimes,the refresh is not work.

Sometimes ,I am not login ,when I click a topic ,this bug also appear.

Sometimes , this bug also appear in mobile broswer,like safari

Can you help me ? what’s the reason?

My website:

Posts: 2

Participants: 2

Read full topic

Getting 422_client_error when using slash commands in private channels

$
0
0

@rkda wrote:

I just added the chat-integration plugin (awesome plugin btw :smiley: ) and configured it to work with our team’s Slack. Everything’s working fine except for the slash commands. I can’t seem to use them when I’m in private channels. The slash commands fail and I get this error:

Darn - that slash command didn’t work (error message: 422_client_error). Manage the command at Microsat Discourse Bot.

Is this the expected behaviour or is there something wrong with my configuration? I’m using the OAth token. The slash commands work fine on public channels.

Posts: 3

Participants: 2

Read full topic


How Can I Bulk Import Options For My Custom Field - Drop Down Menu - at user Sign-up

$
0
0

@leye wrote:

Hello there.

My community is for students and at sign-up, I require them to put in the name of their school. This ‘School Name’ field is, of course, a Custom Field and I have chosen a Dropdown Menu. I have opted to use a drop-down menu instead of a text field because I want to ensure that members don’t use different variations of the same school name e.g.

  • Princeton University
  • Princeton
  • Princeton Uni
  • Princeton U.

Being that there are Thousands of schools out there, how can I Bulk Import Options (Names of Schools) for this Drop Down Menu.

Thanks for the help

Posts: 1

Participants: 1

Read full topic

Control who gets pending users reminder email

$
0
0

@Bas wrote:

Currently a PM / Email is sent when there are pending users (after one hour, controlled by pending_users_reminder_delay.

Is there any way I can control who receives this? Currently it is sent to three people (two admins, one moderator) out of a total staff of eight.

Posts: 1

Participants: 1

Read full topic

Archiving posts

$
0
0

@carlokok wrote:

How is archiving supposed to work when something is in multiple groups?

Should the archive button (in a pots) archive it everywhere or only in 1 group or only in the groups that the user has access to?

If the last, would it make sense to have a dropdown beneath archive to say where it should archive/move back?

We current get inconsistent behavior when @support (Which doesn’t have access to @sales) archives a post. It will show a “Move back to inbox” button in the post, but still shows in @sales.

Posts: 2

Participants: 2

Read full topic

Forwarding long email chains to Discourse

$
0
0

@danekhollas wrote:

Continuing the discussion from Discourse Version 2.0:

Can I ask whether there has been some progress on this feature and whether you have some timeline? This would be extremely useful as we are migrating from mailing list to Discourse forum. Thanks!

PS: I noticed that it seems to partly work, but not always…

Posts: 3

Participants: 2

Read full topic

Do not markdown linkifyed URLs

$
0
0

@danekhollas wrote:

Ok, here’s a weird bug. When an URL contains --, the markdown converts it do –

For example, this URL: cs--preview.khanacademy.org

https://cs–preview.khanacademy.org

If I explicitly insert a link, it works, even though it is rendered incorectly:
[https://cs--preview.khanacademy.org](https://cs--preview.khanacademy.org)
https://cs–preview.khanacademy.org

PS: Hm, linkifying seems to be disabled here on meta, but hopefully the second example makes things clear.

Posts: 1

Participants: 1

Read full topic

Viewing all 67446 articles
Browse latest View live