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

Cannot connect WP Discourse to Discourse forum

$
0
0

@Optiroot wrote:

Hello. I need some help, I'm working on this from yesterday but I can't figure out what is the problem.

In brief, I had a Blog built with Wordpress connected to Discourse, so every post published in Wordpress would create a new discussion in the forum. The SSO wasn't enabled.

Then, one week ago, I enabled the HTTPS to the Discourse forum. It works very well and no problem for the certificate, but WordPress now doesn't want to connect.

The URL is right. I tried with http, https and without "http", but nothing.
The API key is right, I tried re-generating it. Nothing.
The username is system, which is the default and it is present in my Discourse installation.

Tried about everything. But it doesn't want to connect. It shows:
You are not connected to a Discourse forum. Please check your settings for 'Discourse URL', 'API Key', and 'Publishing username' Also, make sure that your Discourse forum is online.

Any ideas on this?

Posts: 4

Participants: 2

Read full topic


Twitter Login Redirect Is Incorrect And Uses Port

$
0
0

@charles wrote:

I followed the steps here to use Twitter login but when test user try Twitter it shows error with URL pointing to https://www.example.com:26789

edit:
Discourse is working fine. It's viewable and functioning at https://www.example.com

Twitter can authenticate

Connection failed only during the last step when redirecting back and the window shows https://www.example.com:26789/auth/twitter/callback?oauth_token=(removed long string)

How can I remove the port 26789 from the Twitter redirect?

Posts: 21

Participants: 5

Read full topic

Using API to create topic in a specific subcategory

$
0
0

@carbo wrote:

I have been trying to add a daily topic through the api using a bash script. But when I try to use the sample from the API documentation it simply puts the topic in no category.

I have tried using the following formats...

curl -X POST -d title="My Topic" -d raw="This is the body" -d category="maincat/subcat" http://myurl/posts?api_key=mykey&api_user=myusername

and also (where 3 is a subcategory)

curl -X POST -d title="My Topic" -d raw="This is the body" -d category_id="3" http://myurl/posts?api_key=mykey&api_user=myusername

But both do not work. Any ideas?

Posts: 3

Participants: 2

Read full topic

SVG upload fails with an error message

$
0
0

@ljpp wrote:

Sorry, but we couldn't determine the size of the image. Maybe your image is corrupted?

I found this bug report, which has been closed last summer. However I just reproduced the exact error message on 1.6.4 stable, when trying to upload an SVG image - our site logo, which currently serve from an external source.

Ubuntu file manager (Nautilus) has no issues reporting the image size 692x187.

Posts: 1

Participants: 1

Read full topic

Embedded Comments iframe Height

$
0
0

@KevinWorkman wrote:

I recently got embedded comments working on my blog (only snafu was that the domains are case sensitive). Great feature, awesome work, etc etc etc.

However, the default height of the embedded iframe always seems to be 150. This means that users can not see the Continue Discussion button at the bottom. The iframe doesn't show a scrollbar either, so users can't even scroll down to reach the button. All they see is the top comment, and the rest of the content is cut off.

I can manually set the height of the iframe using css and that works (although I still don't see a scroll bar even after setting overflow:scroll, but honestly I haven't poked very much in that direction yet).

Is this the expected behavior? Is the height purposely left up to me, or is this indicative that something is wrong with my configuration? I read this reply to the original embed guide, but I'm a little confused about whether this is required or not.

As a comparison, if I go to Coding Horror's latest blog, it looks like the height of the embedded iframe is based on the number of comments, which is how I expected it to work.

Am I missing a step in the embed process?

Posts: 1

Participants: 1

Read full topic

Posts without replies

$
0
0

@Sara_Noel wrote:

I'd like to have a way to pull up posts that have zero replies. Something like "unanswered posts".

Thoughts on this?

Posts: 8

Participants: 5

Read full topic

How do Views Work

$
0
0

@Robert_Scheck wrote:

How do views work? Like if a post has 1.8 k views is that 1800 forum members viewed it or 18 members viewed it 100 times or 100 members viewed it 18 times?
Just something I was interested in finding out. Same with views on a profile

Posts: 2

Participants: 2

Read full topic

Sidekiq jobs are failing for 1 of my users

$
0
0

@corillian wrote:

For some reason one of my users appears to be bugged. He cannot view the forums due to a 500 Internal Error and all of the pending Sidekiq jobs for him also fail. Here's an example of one of the failing Sidekiq jobs:

Jobs::UserEmail

{"type"=>"digest", "user_id"=>3530, "current_site_id"=>"default"}

Jobs::HandledExceptionWrapper: Wrapped NoMethodError: undefined method 'bounce_score' for nil:NilClass

In all instances the logs indicate the problem with his account is due to undefined method 'bounce_score' for nil:NilClass except with a different undefined method depending on which database object was trying to be accessed. For example his 500 Internal Error viewing the main page is generated by:

Processing by ListController#latest as HTML
Completed 500 Internal Server Error in 30ms (ActiveRecord: 13.1ms)
NoMethodError (undefined method 'topic_reply_count' for nil:NilClass)
/var/www/discourse/app/serializers/current_user_serializer.rb:51:in 'reply_count'
Job exception: undefined method 'days_visited' for nil:NilClass

I've checked the records in the database and they exist. Is the Redis cache somehow corrupted? I'm running the latest version of Discourse (I just upgraded to latest commit) and it didn't resolve these problems.

Lastly I can't do a search for users through my admin panel anymore due to a similar error:

Started GET "/admin/users/list/regular.json?_=1474829263900" for **** at 2016-09-25 19:03:37 +0000
Processing by Admin::UsersController#index as JSON
  Parameters: {"_"=>"1474829263900", "query"=>"regular"}
Completed 500 Internal Server Error in 22ms (ActiveRecord: 6.0ms)
NoMethodError (undefined method `time_read' for nil:NilClass)
/var/www/discourse/app/serializers/admin_user_list_serializer.rb:72:in `time_read'

Posts: 10

Participants: 4

Read full topic


Problem redirect from another server to Discourse server

$
0
0

@Maximiliano_Carvalho wrote:

Hi,

I just start using Discourse and I am trying to get a particular setup running.

I have a main domain: www. 180smoke.ca which is located at one server and is running Magento application.

I want to serve the Discourse application from www. 180smoke.ca/vapecom, in order to do that I am trying to set up a proxy using Nginx and some custom configuration with Discourse.

The Discourse application is up and running here: http:// 159.203.39.161/vapecom/
The Discourse was installed in a Digital Ocean droplet, so it's physically disconnected from the Magento server.

Within the Magento server configuration I did the following:

location /vapecom/ {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $host;
    proxy_pass http://159.203.39.161;
}

To enable Discourse under a sub-directory I followed this guide: subfolder-support-with-docker/30507

The problem is that when I try to access the Discourse app typing www. 180smoke.ca/vapecom I just see a blank page. I could see that the error is related to the assets that Discourse is trying to load with (for example):
www. 180smoke.ca/vapecom/assets/ember_jquery-94d39baf2b7a346571d3472782c3994e23b7cf8c4e2c645075bc11f7a82cdccf.js

There is anyone who could help me with this?

Thanks!!!!!

Posts: 2

Participants: 2

Read full topic

Question about PostRevision.destroy_all

$
0
0

@bek wrote:

Hey!

I just used PostRevision.destroy_all for deleting all post revisions. But I figure out that, even though revisions deleted, revision numbers still in here. How can I get rid of it?

Posts: 4

Participants: 2

Read full topic

Required custom fields for signup are not required for invites

$
0
0

@kstaikov wrote:

If you have a required (custom) field 'at signup', it is not required for a user that just accepts an invite. Maybe this is not a bug but actually a requested feature that an invited user has to fill out the same required fields as someone manually creating an account.

Posts: 2

Participants: 2

Read full topic

Get search results query as RSS

$
0
0

@meglio wrote:

I'm trying to embed a search results page into a WordPress website hosted with free plan at wordpress.com.

While I can add .json suffix and get the results in JSON format, I can't do the same for RSS. Here is a query I'm trying:

http://forum.kozovod.com/search/query.rss?term=user%3Ayagusya&include_blurbs=true&search_context%5Btype%5D=topic&search_context%5Bid%5D=4277&_=1475726923883

Is such type of RSS supported yet?

Posts: 1

Participants: 1

Read full topic

Plugin template helper

$
0
0

@sevenmaxis wrote:

In my discourse plugin's folder discourse-adplugin/assets/discourse/helpers/ I've created a file with helper

discourse-adplugin/assets/discourse/helpers/eq.js.es6:

import { registerHelper } from 'discourse/lib/helpers';

var makeBoundHelper = Ember.HTMLBars.makeBoundHelper;

registerHelper('insert_ad', makeBoundHelper(function(params) {
  var dfp_top_3_display = Discourse.SiteSettings.dfp_top_3_display;

  if (dfp_top_3_display < 0) return false;

  return params[0] == dfp_top_3_display;
}))

I'm using this helper in template, in development environment it works well but in docker production it produces an error:

Uncaught Error: Could not find module 'discourse/lib/helpers' imported from 'discourse/plugins/discourse-adplugin/discourse/helpers/eq'

What is the right way to create template helpers in plugin?

Posts: 1

Participants: 1

Read full topic

How to add the Custom Announcement bar in top box?

Import (migration) tool from FluxBB

$
0
0

@Raz_Taz wrote:

Dear Colleagues,

We are a very small (but big hearted) team of volunteers working in our spare time to migrate the old Ubuntu Romania Forum from FluxBB to Discourse.
Over the years, our forum evolved into a community which has provided and enjoyed free, competent and prompt support and assistance to hundreds of users on thousands of topics related to the use of Ubuntu operating system. However, the FluxBB platform we have be using became utterly inadequate to accommodate our needs. And then we looked to Discourse and chose it as our replacement of choice for its many features and high versatility.

Over the last week we have managed to complete the full localization of Discourse to Romanian (on Transifex), and currently we are making fine tunes to the translation on an on-line testing environment.

Once that is completed, we plan to move the old forum to Discourse.
I saw here http://learndiscourse.org/migrating-to-discourse-from-another-forum-software/ that you have a quite large number of importing tools from other platforms to Discourse, but unfortunately (for us), there is no import tool from FluxBB.

This topic is to kindly request an import feature from FluxBB to Discourse.

We would also be most grateful if you could give us your ideas about how we can accomplish this migration and to what extent (categories,topics,replies,users, passwords, etc).

Many thanks, on behalf of our team.
Raz Taz

Posts: 10

Participants: 4

Read full topic


Discourse SSO and API Helper for PHP

$
0
0

@vinothkannans wrote:

Installation

The package is registered at Packagist as vinkas/discourse-php and can be installed using composer:

composer require vinkas/discourse-php

Usage

$discourse = new Vinkas\Discourse\PHP\Client('discouse.example.com', true);  // set true if ssl enabled

API

$api = $discourse->api('API_KEY', 'API_USERNAME');
$api->topics()->create('TITLE', 'CONTENT', 'CATEGORY_SLUG')

SSO

$payload = $_GET['sso'];
$signature = $_GET['sig'];

$sso = $discourse->sso('SECRET', $payload, $signature);

if (!($sso->isValid())) {
    header("HTTP/1.1 403 Forbidden");
    echo("Bad SSO request");
    die();
}

$userParams = array(
    'external_id' => 'USER_ID',
    'email'     => 'EMAIL_ADDRESS',
    'username' => 'USERNAME',  // optional
    'name'     => 'FULL_NAME'  // optional
    // for more available fields https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045
);

$url = $sso->getResponseUrl($userParams)
header('Location: ' . $url);
exit(0);

Posts: 2

Participants: 1

Read full topic

Can we easily edit meta tags on each page?

$
0
0

@mrded wrote:

Hello,

For SEO reasons we may need to add/update meta tags on existing pages, such as canonical tags, noindex tags, meta titles and descriptions.

Is there a way we can do that?

Thanks.

Posts: 1

Participants: 1

Read full topic

Discourse Backups to Dropbox

$
0
0

@Falco wrote:

Discourse Backups to Dropbox

Backups are useless unless they are off-site. This plugin sync your automatic backups on Dropbox.

https://github.com/xfalcox/discourse-backups-to-dropbox

Installation

Proceed with a normal installation of a plugin.

After Installation

You need to enable the plugin on Settings -> Plugins and fill you Dropbox API Key that you can get here.

About

This is a work in progress! Feel free to use and ask questions here.

Posts: 4

Participants: 3

Read full topic

Looking for a developper

$
0
0

@Baptiste_Michaud wrote:

Hi,

I run a heavy customized discourse on www.numerama.com/discussions/.

I have several missions for a freelance:

  • Upgrade to latest
  • Design simplification, for further release
  • Creation of a summary page
  • Graphical bugs
  • Correction of information exchange with the wordpress etc.

I don't have specific any specific timeframe, I would say 2 ou 3 weeks.

On the budget, I am sure we can agree on something,

Thanks folks,

-> baptiste@humanoid.fr or PM

Posts: 6

Participants: 4

Read full topic

Facebook login with new API 2.8 fails

Viewing all 60721 articles
Browse latest View live




Latest Images