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

Specifying the gem dependecies for plugin - gem does not exist

$
0
0

@net_deamon wrote:

I did go through the suggesstions in following posts

So I tried 2 ways

Specifying in plugin.rb file


My plugin depends upon “mini_magick” for image resizing, so I specified it in plugin.rb

gem ‘mini_magick’, ‘~> 4.8’

But I get the following error

I, [2017-07-09T03:54:49.899941 #13] INFO – : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake db:migrate
ERROR: While executing gem … (Gem::Requirement::BadRequirementError)
Illformed requirement ["/root"]
I, [2017-07-09T03:54:54.692893 #13] INFO – : /root is not writable.
Bundler will use `/tmp/bundler/home/discourse’ as your home directory temporarily.
gem install mini_magick -v ~> 4.8 -i /var/www/discourse/plugins/discussbook-plugin/gems/2.4.1 --no-document --ignore-dependencies
You are specifying the gem mini_magick in /var/www/discourse/plugins/discussbook-plugin/plugin.rb, however it does not exist!

Specifying in yml file


As it was not working, I tried to add the gem install command in yml file custom commands

  • exec: gem install mini_magick -v 4.8.0

I get the following log(success) when it was being rebuilt

I, [2017-07-08T18:50:43.302333 #13] INFO – : Beginning of custom commands
I, [2017-07-08T18:50:43.302751 #13] INFO – : > gem install mini_magick -v 4.8.0
I, [2017-07-08T18:50:44.034391 #13] INFO – : Successfully installed mini_magick-4.8.0
1 gem installed

But when I try to require it in the route, I got the following error in error log

NameError (uninitialized constant) DiscussBook::DiscussbookController::MiniMagick)

Both of these trials did not work, can you please help me regarding what might be the error?

Posts: 1

Participants: 1

Read full topic


Gitter integration for Discourse

$
0
0

@jafeth.diazc wrote:

Hi all!

I have been working on a Gitter integration for Discourse as an alternative service to the Slack plugin and I’d like to share the current state of it.

It’s necessary to create a custom integration in each room in which we want Discourse notifications. Once created, go to /admin/plugins/gitter to register a new integration with the room name (e.g. gitterhq/meta) and the integration webhook url.

As you can see below, the admin interface is pretty similar to the Slack plugin’s, allowing to create filter rules specifying a category and some tags(optional). The main difference is that the filter rules are grouped by room.

Then, when a new post is created it will be notified in the corresponding Gitter rooms’ activity feed. The notifications follow a simple structure (username - topic title - category) due to the size of the activity feed. In addition, the whole notification text will be a link to the post in Discourse.

Here is the repo.

To do

  • Create a PR to the Gitter services library. This will allow us to have an official Discourse integration in Gitter (and stop using a “custom” one) and to perform some customization to the notifications, like setting an icon.
  • Slash commands to manage filter rules from a Gitter room.

In addition, I consider important to mention that the idea is that, in the near future, this plugin makes use of the common event system @David_Taylor is working on.

Finally, I’m more than happy to receive feedback :slightly_smiling_face:

Posts: 1

Participants: 1

Read full topic

Broken help me plz

Oops! That page doesn’t exist or is private when clicking Wizard [refresh needed]

$
0
0

@ricardojr wrote:

On an existing installation, when I click on the “setup wizard” link located in the READ ME FIRST: Admin Quick Start Guide, the app navigates to “/wizard” and shows the not found error

“Oops! That page doesn’t exist or is private”.

However, I just discovered that refreshing the page fixes it and the app navigates to “/wizard/steps/locale”.

Strangely enough, if I directly navigate to “/wizard” the app also does the right thing and shows the wizard.

There is something weird with clicking on the “setup wizard” link, which is how most users would get to the wizard.

Posts: 2

Participants: 2

Read full topic

Https stopped working after rebuild?

$
0
0

@adamprocter wrote:

I needed to change my SMTP settings on my discourse server and so I did this editing app.yml and then rebuilt. Server works great now with new settings but I can no longer connected to it via https ? Can anyone advise why changing these settings and rebuilding would cause this issue - do I need to restart something else. I have rebooted the server but to no joy.

Posts: 2

Participants: 2

Read full topic

Problem with SMTP configuration

$
0
0

@Pawel_Kosiorek wrote:

Hi!
I went through most of the “SMTP problems” threads but still cannot solve my problem.
Ubuntu in AWS EC2, fresh Discourse installation, can’t receive confirmation email.
Current configuration:

DISCOURSE_SMTP_ADDRESS: smtp.motomirko.pl
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: admin@motomirko.pl
DISCOURSE_SMTP_PASSWORD: secretplainpassword
DISCOURSE_SMTP_ENABLE_START_TLS: true

I can telnet to smtp.motomirko.pl 465 from instance, connection is ok.
I test my mail server with setting outlook client, and there I saw the problem. When connection was set only to TLS than it was refused, when I set to SSL than connection was successful.
I’m not really sure is it helpful.
Dump from logs : https://pastebin.com/jD4ftdrt

Please help!
Cheers!

Posts: 4

Participants: 3

Read full topic

Stuck trying to add new locale files

$
0
0

@suvla wrote:

Hi, I’m trying to display the user interface of my installation of Discourse in a language that already has a partial translation in Transifex, but their files aren’t already in the Discourse repo.

To grab the files, I followed the instructions that there are in the Contribute a translation to Discourse Howto, specifically in the “Get translations” section: I create the ~/.transifexrc file and added my credentials, and ran ruby script/pull_translations.rb. I saw that these steps put the files in their correct locations.

Then I ran:

RAILS_ENV=production bundle exec rake assets:clobber assets:precompile

as I read in an answer to the thread “How to add a new language” (sorry, as a new user here I can’t link it).

Once finished, the locale I was trying to use did show up in the list of available locales to choose, which was great. But once I selected it as the main locale of the site in the Admin options, saved and refreshed, then I experienced exactly the same issue described in “Uncaught ReferenceError - I18n is not defined (after upgrading 1.5 to 1.6)”.

When I point the browser to my discourse installation I see basically a blank screen. If I inspect its source code I see some HTML with some strings in my selected locale, but nothing that allows me to work with it. This is what I see in the console.

Since then, as suggested by one of the answers, I have tried to recompile assets, rebuild the entire app, etc, multiple times but nothing of these seems to work for me.

Thank you

Posts: 1

Participants: 1

Read full topic

Block duplicate email-in replies

$
0
0

@jesselperry wrote:

It seems there should be a more intelligent way to check for Discourse users that have auto responders that go-awry. This became a problem for me because I have email-in responses set up. A member who went on vacation, turned on their email auto responder, and subsequently spammed a topic with the same message out of office response to everyone that replied to their topic.

It seems like a fix would be to have the email-in reply feature check if that reply text has been posted before, so in the very least, an email auto responder only gets posted once.

Or is there a setting I’m missing that already exists to disallow duplicate posts? Similar to how you can’t have duplicate topic subjects?

I’m keen to fix this because that auto responder from the topic creator resulted in some of the emails that sent out being marked as spam.

Posts: 3

Participants: 3

Read full topic


Set installation path

$
0
0

@barreeeiroo wrote:

Hi :wave:

I hava an EC2 Server powered by AWS Educate. It has 8GiB of space, but I’ve also used an external drive of 25GiB that can be mounted anywhere
How can I make Discourse to install on it’s mount point?

Thanks :+1:

Posts: 8

Participants: 3

Read full topic

Invite users to certain categories/topics of a closed forum

$
0
0

@cryptochrome wrote:

Hi,

we are running a strictly closed forum for a team, not a public forum. Now we would like to be able to invite “outsiders” to collaborate with us on certain topics (or maybe a whole category) without giving them access to the rest of the forums.

Is there an easy way to do this? Can someone be invited to a topic and then only see that topic and nothing else?

Giving access to a category is easy, I know how I would have to do that, but it’s not exactly what I am looking for.

Any ideas? Thoughts?

Thanks :slight_smile:

Posts: 3

Participants: 3

Read full topic

What's the simplest way to add a new navigation menu item?

$
0
0

@ossia wrote:

We’d like to add an “Unanswered” button to our navigation that links to https://forum.freecodecamp.org/?max_posts=1

We think this will help draw attention to posts that haven’t been responded to yet, and increase the rate at which they’re responded to.

I looked in https://forum.freecodecamp.org/admin/customize/themes/1/common/head_tag/edit and couldn’t find a clear place to modify this.

I found a plugin that does this, but it looks like it is currently broken. Rather than prodding the maintainer on the open issue, or trying to fix this ourselves, Is there a simpler way to add this link to the navigation menu?

Posts: 2

Participants: 2

Read full topic

How can I use German umlauts ä ö ü in rails console?

$
0
0

@craisp wrote:

Hi there

I have a list of user_ids and updated names, which I would like to run through console like this:

User.find(4).update(name: 'Updated Name')

My Question: Some of the names contain special characters like German umlaut ä ö ü, and those typing or pasting into console cause some strange behaviour. ü for example lets a history command appear. How can I update those names through console?

Posts: 1

Participants: 1

Read full topic

Indicate member is deactivated on their usercard and/or avatar

$
0
0

@mcwumbly wrote:

I was playing around with ideas today for how to automatically show that a user of our forum has left the organization. This was something we had in one of our previous solutions (Socialcast added an “Alumni” icon over users’ avatars who were no longer active). It helped other users understand quickly that they should be directing their posts to someone else when following up on an older thread with people who are no longer around.

One promising avenue is to detect when their emails start bouncing. We can adjust the site settings for “hard bounce score” and “bounce score threshold deactivate” to deactivate the user after a few bounced emails.

But I haven’t yet found a way to easily make the fact that a user has been deactivated visible to other users.

From what I can tell so far, the active/inactive bool isn’t returned in the normal user json response for a user.

I looked into adding a custom badge query to grant these users a gold “Alumni” badge, but realized badge queries are currently disabled by default now for security reasons.

Doing something with “avatar flair” by adding them to a group would be cool too, as that way it’d be much more obvious that the user is no longer around.

Does this sound like something useful to others?

Has anyone else done something like this or have any ideas for ways to approach this?

Posts: 1

Participants: 1

Read full topic

Onebox showing Discourse Logo and not my site logo

Help configuring Slack Discourse plugin

$
0
0

@UkiahSmith wrote:

I am having no luck when it comes to configuring the Slack integration. I am following the Slack plugin configuration instruction. I am following the instructions exactly. I am only configuring the Incoming Webhook, not the optional Slash Command. The Incoming Webhook is configured to send a private message to my user.

My Discourse setup is set to require authentication to read content on the site.

I am an Admin in the slack I am connecting to.

Plugin version: Most recent from github
Discourse version: v1.9.0.beta3 +27 (current up to date version)

I rebuild the app and I see the configuration options available. I copy in the proper values and everything saves.

Once everything is configured nothing happens. I setup a private DM as a notification, I setup a Category to notify a channel, I try the Test Notification. None of these post a message to the Slack. No notification anywhere.

I use the webhook URL and I POST a simple json from the command line using cURL. The cURL command works. It pops up directly as a DM to my slack user.

curl -X POST -H 'Content-type: application/json' -d '{"text": "this is a test yo! from the CLI"}' https://hooks.slack.com/services/{redacted}

I looked in the logs and I saw no errors specific to Slack or the plugins. Where would I look for error logs? The plugin is silent, quiet, no failure notices. How can I make it louder when there is an error?

What am I missing?

Thank you.

Posts: 6

Participants: 4

Read full topic


Reporting which plugin has caused the error

$
0
0

@Pad_Pors wrote:

based on the errors I get in the admin panel, I feel discourse can understand which plugin has caused the error. look at these errors e.g.

Uncaught TypeError: Cannot read property 'inlineBetween' of undefined Url: https://padpors.com/assets/plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js Line: 1 Col

or this one:

 TypeError: Discourse.Dialect is undefined Url: https://padpors.com/assets/plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js Line: 1 Column: 42472 Window Location:

in both of them it has pointed to a js file with a coded name (i.e. plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js).

is it possible that the plugin name is also mentioned in the error log?

Posts: 2

Participants: 2

Read full topic

[API] How to get a category name with the ID

$
0
0

@treyssatvincent wrote:

I use Discourse API client for PHP (by @michaeld I guess) and I can’t find how to get a category name/slug with only with an ID.

I need it to display (slug and id) of all our categories and their sub-categories.
But when I get the categories list, the only information about sub-categories is their id.

Posts: 4

Participants: 2

Read full topic

Missing "invite others..." button for staff moderators when PM is disabled

$
0
0

@BaldvinTh wrote:

Greetings!

I’ve encountered a slight issue, not sure if this is by design for some reason, but it seems that staff moderators are not included in can_invite_to(o,g) when SiteSetting.enable_private_messages is disabled. This makes mods unable to invite other moderators or groups to private messages / warnings.

Lines 248-260 in guardian.rb seem to describe that administrators can ignore the enable_private_messages just fine, but staff moderators appear to be left out.

Would it be viable to replace is_admin with is_staff here?

  def can_invite_to?(object, group_ids=nil)
    return false unless authenticated?
-    return true if is_admin?
+    return true if is_staff?
    return false unless SiteSetting.enable_private_messages?
    return false if (SiteSetting.max_invites_per_day.to_i == 0 && !is_staff?)
    return false unless can_see?(object)
    return false if group_ids.present?

    if object.is_a?(Topic) && object.category
      if object.category.groups.any?
        return true if object.category.groups.all? { |g| can_edit_group?(g) }
      end
    end

Posts: 1

Participants: 1

Read full topic

S3 region us-east-2 (Ohio)

$
0
0

@damienbowman wrote:

Hello all. I’m running the latest version of Discourse but s3 region us-east-2 (Ohio) isn’t listed. Can someone assist?

Posts: 6

Participants: 3

Read full topic

Username completition broken for names with accents like Régis

$
0
0

@rriemann wrote:

Hello,

In my forum, people have real names with all different kind of accents. I tried to use the username completition launched by typing @ to mention a user while writing a response and found that I could not find users by their name if the name contains an é.

You can test it on your own. Try to find @zogstrip by typing @ followed by for Régis. The actual username lookup is https://meta.discourse.org/u/search/users?term=r&topic_id=65888&include_groups=true. Note that all characters from the e with accent on are stripped off from the search query.

Posts: 2

Participants: 2

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images