No view of the blog item

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/10/2008 5:14:47 AM
Nux
Gravatar
Total Posts 183

No view of the blog item

Hey,

I have a blog module on my site, and suddenly, when I click on the link "read more", I go to the correct page, but I don't see anything.
I have checked it with the "real" url, like BlogView.aspx?pageid=7&mid=11&ItemID=9, but also there nothing to see.

What did I wrong?
Strange is that is happened suddenly. Going to the overview page, I see the content. Clicking on the icon to change the text, works also.
I can see the text in the WYSIWYG.

Going to the /blog11rss.aspx gives me a "Invalid Request" :(

Anyone an idea why this is happening?

Thanks
Stef

11/10/2008 6:43:16 AM
Gravatar
Total Posts 18439

Re: No view of the blog item

Hi Stef,

Its difficult to diagnose or solve a problem without knowing steps to produce it.

First thing I would do in any case where things have been working right and suddenly do not, is recycle the app pool and see if that fixes it.

I would also look for anything in the log that may be relevant.

It is possible to break the blog if you move it to a new page after creating posts because the pageid of the original page is stored in the real url mapping of the friendly url. You can repare it by correcting the page id in the url manager for existing posts, but better to avoid it by not moving the blog to a different page.

Hope it helps,

Joe

11/10/2008 6:55:45 AM
Nux
Gravatar
Total Posts 183

Re: No view of the blog item

Hey Joe,

it's indeed because of the pageID.
What have I done?
Well, I have made a page and putted a blog on it and added posts to the blog.
Since there is no paging in the blog module, I thought I put the blog module on the home page, and put a feed manager on the page where the blog module first was created. That way I have paging and on there is news on the home page => No views.

I have putted the blog again on the other page, and it works again.

But Joe, can you tell me why that pageid is important for the blog?
Cause now you have to have a blog module on that page, to view blog items. So I can not hide that module on that page
and use a feed manager to have the blog module with paging...

Thank
Stef
 

11/10/2008 7:06:00 AM
Gravatar
Total Posts 18439

Re: No view of the blog item

Hi Steff,

Its because of the url re-writing and page security. A pageid is associated with the blog and a user must have permission to view that page.

The blog detail page has a real url like this /BlogView.aspx?pageid=x&mid=y&ItemID=z

The blog post is identified by the ItemID

to have a friendly url we create a mapping in the mp_FriendlyUrls table so you can have from a friendly url like my-post-about-something.aspx which maps to the real url as show above. If you move the blog to a new page there is nothing to update this mapping so the request for the friendly url still maps to the page id it was on before and since it is no longer on that page, it can't validate the security to view it any more. New posts will work because they now get the new correct mapping but old posts have borken urls. They can be corrected manually by finding them in the url manager and fixing the real url to have the correct new pageid.

If the blog was on the home page and now you want to use a Feed Manager on the home page instead, then create a new page to be the home page and move it to the root position in the site hierarchy from Administration Menu > Add/Edit Pages

Now you can consume the feed from your blog page which is no longer the home page.

Hope it makes sense.

Joe

11/10/2008 7:21:44 AM
Nux
Gravatar
Total Posts 183

Re: No view of the blog item

Joe,

I understand now why the pageid must be in the querystring.

And I think I can't make it like I wanted to be. Why?

Because that page of which the id is in the querystring, is highlighted in the menu.
So I don't want to see "Home" highlighted (in the menu) when I have a news page, if you understand what I mean.

I can put a blog module on the home page, add a feed manager on the news page to have paging of the blog module, but clicking on it will always show "Home" as highlighted. If I change the pageid in the url to the news page, the items aren't visible, cause there is no blog module on that page.

I must think about it...

Thanks
Stef (hoping to get my site soon online :))

You must sign in to post in the forums. This thread is closed to new posts.