jipiboily / monologue

Monologue is a basic blogging engine. It is a Rails mountable engine you can mount in your already existing Rails app, or a in a new one! Enjoy.
http://jipiboily.com/2013/monologue-0-3-0-released-and-monologue-markdown
MIT License
477 stars 196 forks source link

Browse server on new post for images doesnt work #284

Closed morais17 closed 8 years ago

morais17 commented 8 years ago

Hello there, im trying to use monologue on my new app and everything works perfectly minus the browse server thing. Every time i press the button it opens a popup with a 404 page (wich basically says that the page doesnt exist).

Is there anything i have to configure for this to work?

morais17 commented 8 years ago

Started GET "/ckeditor/pictures?CKEditor=post_content&CKEditorFuncNum=1&langCode=en" for 127.0.0.1 at 2016-03-01 20:48:01 +0000 Processing by Monologue::PostsController#show as HTML Parameters: {"CKEditor"=>"post_content", "CKEditorFuncNum"=>"1", "langCode"=>"en", "post_url"=>"ckeditor/pictures"} Monologue::Tag Load (0.4ms) SELECTmonologue_tags.* FROMmonologue_tagsORDER BY name (0.6ms) SELECT COUNT(*) FROMmonologue_postsINNER JOINmonologue_taggingsONmonologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings.tag_id= 2 ANDmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.942711') (0.5ms) SELECT COUNT(*) FROMmonologue_postsINNER JOINmonologue_taggingsONmonologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings.tag_id= 1 ANDmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.946315') (0.5ms) SELECT COUNT(*) FROMmonologue_postsINNER JOINmonologue_taggingsONmonologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings.tag_id= 2 ANDmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.948768') (0.5ms) SELECT COUNT(*) FROMmonologue_postsINNER JOINmonologue_taggingsONmonologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings.tag_id= 1 ANDmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.951283') (0.5ms) SELECT COUNT(*) FROMmonologue_postsINNER JOINmonologue_taggingsONmonologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings.tag_id= 2 ANDmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.957460') (0.5ms) SELECT COUNT(*) FROMmonologue_postsINNER JOINmonologue_taggingsONmonologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings.tag_id= 1 ANDmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.960323') Monologue::Post Load (0.4ms) SELECTmonologue_posts.* FROMmonologue_postsWHEREmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.962782') ORDER BY published_at DESC, monologue_posts.created_at DESC, monologue_posts.updated_at DESC LIMIT 100 Monologue::Tagging Load (0.4ms) SELECTmonologue_taggings.* FROMmonologue_taggingsWHEREmonologue_taggings.post_idIN (2) Monologue::Tag Load (0.3ms) SELECTmonologue_tags.* FROMmonologue_tagsWHEREmonologue_tags.idIN (2, 1) ORDER BY id ASC Monologue::User Load (0.3ms) SELECTmonologue_users.* FROMmonologue_usersWHEREmonologue_users.id= 1 LIMIT 1 Monologue::Post Load (0.3ms) SELECTmonologue_posts.* FROMmonologue_postsWHERE (url = 'ckeditor/pictures') ORDER BY published_at DESC, monologue_posts.created_at DESC, monologue_posts.updated_at DESC LIMIT 1 Rendered public/404.html (0.6ms) Completed 404 Not Found in 39ms (Views: 4.5ms | ActiveRecord: 5.2ms)

msevestre commented 8 years ago

Image is not implemented by default. You will need to use the monologue_image extension

On Tue, Mar 1, 2016, 15:48 morais17 notifications@github.com wrote:

Started GET "/ckeditor/pictures?CKEditor=post_content&CKEditorFuncNum=1&langCode=en" for 127.0.0.1 at 2016-03-01 20:48:01 +0000 Processing by Monologue::PostsController#show as HTML Parameters: {"CKEditor"=>"post_content", "CKEditorFuncNum"=>"1", "langCode"=>"en", "post_url"=>"ckeditor/pictures"} Monologue::Tag Load (0.4ms) SELECTmonologue_tags.* FROMmonologuetagsORDER BY name (0.6ms) SELECT COUNT() FROMmonologue_postsINNER JOINmonologue_taggingsON monologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings. tag_id= 2 ANDmonologue_posts.published= 1 AND (publishedat <= '2016-03-01 20:48:01.942711') (0.5ms) SELECT COUNT() FROMmonologue_postsINNER JOINmonologue_taggingsON monologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings. tag_id= 1 ANDmonologue_posts.published= 1 AND (publishedat <= '2016-03-01 20:48:01.946315') (0.5ms) SELECT COUNT() FROMmonologue_postsINNER JOINmonologue_taggingsON monologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings. tag_id= 2 ANDmonologue_posts.published= 1 AND (publishedat <= '2016-03-01 20:48:01.948768') (0.5ms) SELECT COUNT() FROMmonologue_postsINNER JOINmonologue_taggingsON monologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings. tag_id= 1 ANDmonologue_posts.published= 1 AND (publishedat <= '2016-03-01 20:48:01.951283') (0.5ms) SELECT COUNT() FROMmonologue_postsINNER JOINmonologue_taggingsON monologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings. tag_id= 2 ANDmonologue_posts.published= 1 AND (publishedat <= '2016-03-01 20:48:01.957460') (0.5ms) SELECT COUNT() FROMmonologue_postsINNER JOINmonologue_taggingsON monologue_posts.id=monologue_taggings.post_idWHEREmonologue_taggings. tag_id= 1 ANDmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.960323') Monologue::Post Load (0.4ms) SELECTmonologue_posts.* FROMmonologue_posts WHEREmonologue_posts.published= 1 AND (published_at <= '2016-03-01 20:48:01.962782') ORDER BY published_at DESC, monologue_posts.created_at DESC, monologue_posts.updated_at DESC LIMIT 100 Monologue::Tagging Load (0.4ms) SELECTmonologue_taggings.* FROM monologue_taggingsWHEREmonologue_taggings.post_idIN (2) Monologue::Tag Load (0.3ms) SELECTmonologue_tags.* FROMmonologue_tagsWHERE monologue_tags.idIN (2, 1) ORDER BY id ASC Monologue::User Load (0.3ms) SELECTmonologue_users.* FROMmonologue_users WHEREmonologue_users.id= 1 LIMIT 1 Monologue::Post Load (0.3ms) SELECTmonologue_posts.* FROMmonologue_postsWHERE (url = 'ckeditor/pictures') ORDER BY published_at DESC, monologue_posts.created_at DESC, monologue_posts.updated_at DESC LIMIT 1 Rendered public/404.html (0.6ms) Completed 404 Not Found in 39ms (Views: 4.5ms | ActiveRecord: 5.2ms)

— Reply to this email directly or view it on GitHub https://github.com/jipiboily/monologue/issues/284#issuecomment-190895772 .

morais17 commented 8 years ago

Yeah i used it. I can upload images to my blog and they are saved on the app. I just can´t use whatever the "Browse Server" does. I think that it is to choose an image already saved on the app, but it always does a 404

msevestre commented 8 years ago

Hum....not sure about that then....maybe there are some settings to set so that ckeditor knows where to look?

On Tue, Mar 1, 2016, 18:39 morais17 notifications@github.com wrote:

Yeah i used it. I can upload images to my blog and they are saved on the app. I just can´t use whatever the "Browse Server" does. I think that it is to choose an image already saved on the app, but it always does a 404

— Reply to this email directly or view it on GitHub https://github.com/jipiboily/monologue/issues/284#issuecomment-190969749 .

morais17 commented 8 years ago

I don't know where though, It even works with a url. Just the browse server that doesnt work. But i've looked everywhere and nothing :/

morais17 commented 8 years ago

Changing the url from / to /blog fixed so i guess it was a problem with the url yeah

jipiboily commented 8 years ago

So I guess this can be closed? Also, it was posted on the wrong project as I understand?

Feel free top re-open if I'm wrong :)