Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Publish New Thread #477

Closed
mdwest opened this issue May 13, 2019 · 14 comments · Fixed by #516 or #521
Closed

Can't Publish New Thread #477

mdwest opened this issue May 13, 2019 · 14 comments · Fixed by #516 or #521
Assignees
Labels
bug help wanted mentoring Issues that need active mentoring.

Comments

@mdwest
Copy link
Contributor

mdwest commented May 13, 2019

I attempted to make a new thread on Civiwiki.org. I was able to create the content, but when I hit publish it throws a server error.

image

@brylie
Copy link
Member

brylie commented May 13, 2019

@mdwest is there any error in your browser console (F12)? What is the server error? Please provide the texts.

@mdwest
Copy link
Contributor Author

mdwest commented May 13, 2019

*Note: It now says it is published when I hit publish, but I don't see it on the feed page yet. I'll update soon.

-mw

@brylie
Copy link
Member

brylie commented May 14, 2019

This should now be fixed by Tomasz' PR, just merged into develop. Pleasr test again on civiwiki-dev.

@brylie
Copy link
Member

brylie commented May 18, 2019

@mdwest this may now be resolved by the recent deployment. Please verify.

@mdwest
Copy link
Contributor Author

mdwest commented May 18, 2019 via email

@brylie
Copy link
Member

brylie commented May 19, 2019

@mdwest verified by email that this issue still affects the dev branch, despite us reverting to the previous version.

@mdwest please set up a Sentry account for CiviWiki, so we can track server errors.

@brylie
Copy link
Member

brylie commented May 19, 2019

OK, it looks like Sentry has been configured for CiviWiki, but I am unable to access the Sentry logs. @mdwest can you invite me to the CiviWiki Sentry team?

@SunflowerPKU
Copy link

@brylie
I have tested this issue. When I click on publish button, it occurs an server error, as following.
Some icons can not be displaied either, e.g., keyboard_arrow_down.

image

@brylie
Copy link
Member

brylie commented May 19, 2019

OK, thanks for reproducing @SunflowerPKU. Would you like to try and diagnose this error on the server-side? E.g. see if you can get a console log or other output for the specific server error.

@brylie brylie added help wanted mentoring Issues that need active mentoring. labels May 20, 2019
@brylie
Copy link
Member

brylie commented May 22, 2019

I finally got the project to run locally again, and got the following error in the server console when trying to publish a thread:

Editing thread
civiwiki-db | ERROR:  null value in column "title" violates not-null constraint
civiwiki-db | DETAIL:  Failing row contains (1, null, null, 2019-05-22 20:12:18.333649+00, 2019-05-22 20:19:40.302053+00, 1, null, 0, 0, 2, , null, null, t).
civiwiki-db | STATEMENT:  UPDATE "api_thread" SET "author_id" = 1, "category_id" = NULL, "title" = NULL, "summary" = NULL, "image" = '', "level" = NULL, "state" = NULL, "created" = '2019-05-22T20:12:18.333649+00:00'::timestamptz, "last_modified" = '2019-05-22T20:19:40.302053+00:00'::timestamptz, "is_draft" = true, "num_views" = 2, "num_civis" = 0, "num_solutions" = 0 WHERE "api_thread"."id" = 1
civiwiki-backend | null value in column "title" violates not-null constraint
civiwiki-backend | DETAIL:  Failing row contains (1, null, null, 2019-05-22 20:12:18.333649+00, 2019-05-22 20:19:40.302053+00, 1, null, 0, 0, 2, , null, null, t).

@mdwest
Copy link
Contributor Author

mdwest commented May 23, 2019

I just tested the latest code and the publish button now appears to work (no server error message and a message says it is now public and refreshing) but the thread does not actually publish.

The thread remains in drafts for the publishing account and is not visible on the feed of other accounts.

@brylie brylie reopened this May 24, 2019
@brylie
Copy link
Member

brylie commented May 24, 2019

@TomaszKolek are you working on this issue?

@mdwest
Copy link
Contributor Author

mdwest commented May 24, 2019 via email

@brylie
Copy link
Member

brylie commented May 25, 2019

@TomaszKolek I have made some progress in PR #521, please review. Now, the thread does publish successfully, but nothing displays on the CiviWiki home page. There are some errors related to feed.js to work through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted mentoring Issues that need active mentoring.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants