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

Modified wp-discourse to choose category per post

0
0

@paxmanchris wrote:

With wp-discourse you can only select one discourse category in which your posts get published. In our context we have multiple categories we want to use and to be able to select that per post; blog posts to Blog, and product posts to Products.

I modified wp-discourse to add the category drop down on the publish meta box, and used it as the published discourse category. I have my code on github, I think its a neat idea and I would like your feedback. Check it out:

Posts: 1

Participants: 1

Read full topic


Html/Css customization broken!

"Error updating information, contact site admin"

0
0

@namtrok wrote:

Hi,

Loving Discourse, I've had it installed for almost 4 weeks now and connected to my wordpress site through SSO. I use "PrimeTime WP Discourse SSO" as the plugin in Wordpress, and it works like a champ.

However I've been notified by one of my users who has logged in successfully before that he is getting the following error when trying to login to our discourse install today. "Error updating information, contact site admin" A screenshot can be found here: https://www.dropbox.com/s/ts6fmqn6y42frih/Screen%20Shot%202015-05-16%20at%208.47.25%20am.png?dl=0

I am able to impersonate the user via Discourse without issues.

When I login as the user in wordpress and click over to Discourse I receive the same error message on multiple browsers even after the browser cache is cleared.

In the log file I'm getting: "Job exception: 400 Bad Request"

And finally my Discourse version is: v1.3.0.beta9 +15 running on a linode VPS.

I've tried deactivating and re-activating the user but both error messages still occur ("Error updating information, contact site admin" on the client side and "Job exception: 400 Bad Request" on the server side)

Any other thoughts on how I can fix this or further troubleshoot this?

Thanks for your help!

Posts: 7

Participants: 3

Read full topic

Users?period=all not completing

0
0

@Mischief wrote:

When visiting the "all time" user list at users?period=all the spinner spins indefinitely. It does not happen when checking users daily, weekly or yearly.

I'm using v1.3.0.beta9 +84

We're doing pre-launch testing on our installation and just have 18 users on it including 3 anonymous and system.

Posts: 2

Participants: 2

Read full topic

How can I add a gemfile to the docker container?

0
0

@codecowboy wrote:

I've installed discourse on a Vagrant box using this guide:

(had to remove link as discourse was complaining I can only post two links even though I was only including two links, wtf ?)

I'd like to make use of https://github.com/initforthe/forum2discourse and the instructions are aimed someone who knows a bit more about ruby than I do (which is nothing)

I'm running discourse in the docker container on CoreOS (Vagrant on a local machine) and it is working as expected

I have a database ready to go in another container with the punBB data I want to import.

How can I -

Add forum2discourse gem to the discourse gemfile, and bundle install.

Run the relevant rake task within bundle exec

Do I need to alter a config file and rebuild the discourse container?

Posts: 6

Participants: 3

Read full topic

Overlapping text in Admin logs

More generic importer

0
0

@michaeld wrote:

Over the last year, we have been using our own importer at DiscourseHosting. We think we have some conceptual advantages over the 'official' importers, but also a lot of disadvantages. We have been contemplating cleaning up our code and releasing it, but I think it would be nicer to take some of our concepts and re-use them in the official importers.

I am opening this topic to discuss the advantages and disadvantages, and to see if you would be interested if we opened up a PR for this.

First of all, a comparison:

  • The official importers are more cleanly coded

  • The official importers are a bit faster

  • The official importers have more features - like nested categories

  • The official importers are well, the official importers

  • The offical importers are the official importers, as in: there are multiple. Some things are implemented in one importer but not in another. We have a single importer using YML config files for the different forum types like bbPress, Phorum, Vanilla, VBulletin. The importer gets the YML config file as a command line argument.

  • This makes it faster and easier to create a new importer in our approach. Almost all code is reused, we only need to make new queries mapping the source database to a generic import format

  • The official importers have hardcoded MySQL credentials, source DB and table prefixes. Those are read from the YML file in our importer, making it easier to change stuff and keep the old code as well

  • When we develop a new feature, it applies to all existing import scripts. You are using derived classes but there is still quite a lot of logic in the derived class.

  • Our import script has support for password migration using our plugin https://github.com/discoursehosting/discourse-migratepassword so people can login using their original password

  • Our import script can write the Discourse ID to the orginal database, making redirection scripts more easy to implement on the original server (you do it the other way around but that isn't always the best solution for our customers, for instance when the original forum is in www.domain.com/forum and the new forum is at forum.domain.com ).

  • This also makes restarting the import much faster.

An example of such a YML config script can be found below.

I would like to know if you are interested in us creating a scripts/import_scripts/generic.rb script that uses our concepts but that is using your base class like all the other importers, or maybe you explicitly chose for your current approach and you are not interested in this.

Example vanilla.yml

sql_server: localhost
sql_user: root
sql_password: password
sql_database: XXXXX

discourse_admin: system

test_mode: false

max_errors: 1000

prepare_users_query: |
  ALTER TABLE gdn_user
  ADD COLUMN discourse_id INT NOT NULL DEFAULT '0';

prepare_posts_query: |
  ALTER TABLE gdn_comment
  ADD COLUMN discourse_id INT NOT NULL DEFAULT '0';

prepare_topics_query: |
  ALTER TABLE gdn_discussion
  ADD COLUMN discourse_id INT NOT NULL DEFAULT '0';

get_user_query: |
  SELECT
    u.UserID AS user_id,
    u.Name AS fullname,
    u.Name AS username,
    u.Password AS crypted_password,
    u.Email AS email,
    IF(u.DateLastActive = '', DateInserted, DateLastActive) AS lastvisit,
    u.Admin AS is_admin,
    1 AS is_active,
    u.discourse_id,
  FROM gdn_user u
  WHERE u.Name != 'System'
    AND u.discourse_id != -1

get_post_query: |
  SELECT
    d.DiscussionID * 1000000 AS post_id,
    d.DiscussionID AS topic_id,
    d.Name AS topic_title,
    u.Name AS username,
    u.UserID AS user_id,
    u.discourse_id AS discourse_user_id,
    cat.Name AS category_name,
    d.DateInserted AS post_time,
    IFNULL(d.DateUpdated, d.DateInserted) AS post_edit_time,
    replace(replace(d.body,'\t', ''), '<br />', '\n') AS post_text,
    d.discourse_id
  FROM gdn_discussion d
  LEFT JOIN gdn_category cat ON cat.CategoryID = d.CategoryID
  LEFT JOIN gdn_user u ON u.UserID = d.InsertUserID
  WHERE d.discourse_id = 0 AND d.InsertUserID > 0
  GROUP BY d.DiscussionID
  UNION
  SELECT
    c.CommentID AS post_id,
    d.DiscussionID AS topic_id,
    d.Name AS topic_title,
    u.Name AS username,
    u.UserID AS user_id,
    u.discourse_id AS discourse_user_id,
    cat.Name AS category_name,
    c.DateInserted AS post_time,
    IFNULL(c.DateUpdated,c.DateInserted) AS post_edit_time,
    replace(replace(c.body,'\t', ''), '<br />', '\n') AS post_text,
    c.discourse_id
    FROM gdn_comment c
  LEFT JOIN gdn_discussion d ON d.DiscussionID = c.DiscussionID
  LEFT JOIN gdn_category cat ON cat.CategoryID = d.CategoryID
  LEFT JOIN gdn_user u ON u.UserID = c.InsertUserID
  WHERE c.discourse_id = 0 AND c.InsertUserID > 0
  GROUP BY c.CommentID
  ORDER BY post_time

get_likes_query: |

unique_topic_query: |
  SELECT discourse_id
  FROM gdn_discussion
  WHERE DiscussionID = %d

process_user_query: |
  UPDATE gdn_user
  SET discourse_id = %d
  WHERE UserID = %d

process_topic_query: |
  UPDATE gdn_discussion
  SET discourse_id = %d
  WHERE DiscussionID = %d

process_post_query: |
  UPDATE gdn_comment
  SET discourse_id = %d
  WHERE CommentID = %d

reset_topics_query: |
  UPDATE gdn_discussion
  SET discourse_id = 0

reset_posts_query: |
  UPDATE gdn_comment
  SET discourse_id = 0

reset_users_query: |
  UPDATE gdn_user
  SET discourse_id = 0

Posts: 3

Participants: 2

Read full topic

User Card displays "Last post" even if they've never posted

0
0

@tobiaseigen wrote:

See screenshot - this user has not posted yet but has a "Last post" with nothing after it. It doesn't make sense here and should be removed.

Here's another user card that has posted and where it does make sense to show "Last post" and the time since the post.

Posts: 2

Participants: 2

Read full topic


Auto Close topic after 24 or 96 hours not working as expected

0
0

@DeanMarkTaylor wrote:

This may have been caught and fixed already...

When a topic is set to close after 24 or 96 hours after last reply it appears close immediately.

96 and 24 are the only values I have tried.

The following post is added after a minute or so:

This topic was automatically closed 0 minutes after the last reply. New replies are no longer allowed.

This has not been tested on latest - but it was in this version:
Discourse 1.3.0.beta7 - https://github.com/discourse/discourse version 875a013ec76e7ce0cbb95a61223cbbd16ed31d4a

I did however check the first line of all commit comments for the last 17 days - only one mentioned "auto" and it wasn't to do with closing a topic.


After thought

The last post was 10 days ago however.

But I was expecting the topic to close 24 / 96 hours from the time it was set to auto close (if there wasn't a new post before then).

Posts: 6

Participants: 3

Read full topic

Error updating to latest version with plugins enabled

0
0

@Pakorn wrote:

I got this message at the end of running "sudo ./launcher rebuild app"

FAILED

RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
6b7ff46e3bcab653eab8144a1bf31925997b7a0af3cde84e1c54f8de826390fa
FAILED TO BOOTSTRAP


Now my site show 502 Bad Gateway message
my site is on digitalocean. I have been able to update successfully on the last 3-4 version, using these commands
cd /var/discourse
Sudo git pull
Sudo ./launcher rebuild app

How do I fix this?

Posts: 3

Participants: 1

Read full topic

"Title is invalid; try to be a little more descriptive" - why?

0
0

@saper wrote:

Continuing the discussion from "Sorry, an error occurred" or 422 Unprocessable Entity: "Title is invalid; try to be a little more descriptive", as the software problem got fixed, but:

Why the following subject line:

 No such property: vcs for class: org.gradle.plugins.ide.idea.model.IdeaProject_Decorated

is deemed not descriptive? Is this because there was a closed, old thread with a similar subject? Some other reason?

It is difficult to revive old threads if necessary if we can't reuse the subject line...

Posts: 7

Participants: 3

Read full topic

How does the docker image auto start?

0
0

@codecowboy wrote:

I noticed that when I booted my vagrant box which contains the discourse docker image that the discourse container started automatically. How is this achieved? Or did I just not stop the docker container before I did a vagrant halt and so docker restarted it automagically?

Posts: 2

Participants: 2

Read full topic

Reply doesn't show the replied to @username/post link

0
0

@daath wrote:

Reply on mobile doesn't show the replied to @username/post link in the top right - it acts just as if you replied to the original post... I didn't really notice, but my users who are on mobile did...

Posts: 8

Participants: 4

Read full topic

Admin log "roll up" text error

Extending an invitation to another party?

0
0

@ChristopherMcEwan wrote:

Can i seek some clarification on invitations:

  • if an admin sends an invite to someone who doesn't use it but instead passes the invitation on to someone else, will that party be able to register using the invitation?
  • will that party show as a L1 trust?
  • what will the status of the originally sent invite show with respect to the invitation status?
  • if the original recipient does register, can she still forward the invitation on to others?
  • are there any other ways that the original invitation recipient can forward to colleagues and friends? can we 'whitelist' other registrants arriving from the same domain?
  • if the original email invitee enters the site, will they be able to invite other individuals with their L1 trust level?

how does the above change if the invitation is from a forum member eg L2 or 3, instead of an admin?

Posts: 4

Participants: 2

Read full topic


Download my posts error

0
0

@tudorv wrote:

Continuing the discussion from ERROR with Download My Posts on v1.3.0.beta9:

I am still getting this error and my forum runs on Discourse v1.3.0.beta9 +92.

Logs below:

Message

Job exception: undefined method `archetype' for nil:NilClass
Share Protect
Backtrace

/var/www/discourse/app/jobs/regular/export_csv_file.rb:150:in `get_user_archive_fields'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:47:in `block in user_archive_export'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:46:in `map'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:46:in `user_archive_export'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:30:in `execute'
/var/www/discourse/app/jobs/base.rb:153:in `block (2 levels) in perform'Share Protect
Env

current_db: default
current_hostname: macforum.ro
job: Jobs::ExportCsvFile
problem_db: default

opts:
  entity: user_archive
  user_id: 1
  current_site_id: default

...

Message

Job exception: Wrapped NoMethodError: undefined method `archetype' for nil:NilClass
Share Protect
Backtrace

/var/www/discourse/app/jobs/base.rb:178:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:75:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:52:in `block (2 levels) in process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:127:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:127:in `block in invoke'
/var/www/discourse/lib/sidekiq/pausable.rb:81:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/retry_jobs.rb:74:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/logging.rb:24:in `with_context'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:132:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:132:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:51:in `block in process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:98:in `stats'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:50:in `process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'Share Protect
Env

retry: false
queue: default
class: Jobs::ExportCsvFile
jid: b7c66b9c58a3d70d4124ef97
enqueued_at: 1431877965.7720158
current_hostname: macforum.ro

args:
  0: [object Object]

Posts: 3

Participants: 3

Read full topic

Current Working Plugins

0
0

@pl3bs wrote:

I'm working on the last bit for my hosting company, and need a list of working and wanted plugins to be included in the web management panel. I'm trying to keep this simple and easy, having a checklist form that people can submit to reconfigure their instances with new plugins. Need a list of the ones which are working and desired by people.

Anyone who is using plugins on 1.3+ discourse please reply to let me know which ones are working.

Thanks in Advance!

Initial List:

Posts: 8

Participants: 3

Read full topic

Oneboxed Google Docs break scroll position

0
0

@Mikulas wrote:

It seems that embedding Google docs results in a page scrolling automatically to top.

I was only able to reproduce this on all latest browsers on Yosemite. It does not happen always (but still in a majority of tries) and seems to be based on how quickly the embedded content loads.

Steps to repro:
1. create a post below the page fold with a link to Google spreadsheet
2. get the persistent link to the post and open the page
3. the page should load and be correctly scrolled (embedded content not loaded yet)
4. embedded content loads and another scroll is triggered

What should happen is the page should be scrolled to correct position.
Instead the page is scrolled to the top of the page currently loaded (not the first post if the thread is long).

Demo: open in new tab, clicking it would not result in reload and the bug would not trigger

https://meta.discourse.org/t/oneboxed-google-docs-break-scroll-position/28919/2

Posts: 3

Participants: 2

Read full topic

Inviting a pending member failed

0
0

@watchmanmonitor wrote:

Repro:

  • Invite someone to your discourse
  • They may see it, but do not accept/activate the account
  • Invite someone to a topic, creating a two-invite situation
    • note that discourse will say that their username is being entered, but it's an email address
  • They will not be able to accept the second invite.

This was logged: ActiveRecord::RecordInvalid (Validation failed: Email has already been taken)

I solved this by approving their account for them, but I'd rather be told that the user had a pending account.

Posts: 3

Participants: 3

Read full topic

Multi-Site Wordpress with single-site Discourse

0
0

@jetatomic wrote:

I'm trying to implement Discourse commenting on a multi-site WordPress install. The basic idea is to have all of the posts on all of the sites publish to a single aggregated Discourse install, and have the Discourse discussions post back to the comments of the corresponding blog that posted the original content. This is to be accomplished via the WordPress Discourse plugin

WordPress Multisite
http://network.example.com
http://exampleONE.com
http://exampleTWO.com
http://exampleTHREE.com

Discourse
http://forum.example.com

Working

  • WP Discourse plugin (configured at site level, not network level)
  • all sites publishing posts to forum.example.com as expected
  • corresponding Discourse topics correctly flagged categoryONE, categoryTWO, etc.
  • SSO w/ endpoint http://network.example.com

It seems like this concept might not be possible when I get to the point of the Embed settings at: http://forum.example.com/admin/site_settings/category/embedding

If I understand correctly, this setup would require multiple embeddable host fields to tell Discourse which exampleXXX.com site to post the comments back to.

Is there a way to get this to work as currently conceived? If not, what would I need to change? Discourse Multisite seemed to be geared toward a setup with discreet forums for each WP site/sub-site.

Posts: 4

Participants: 2

Read full topic

Viewing all 60279 articles
Browse latest View live




Latest Images