Very very Serious Error - Page order

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.
2/10/2010 11:57:56 AM
Gravatar
Total Posts 171
I am a Russian programmer

Very very Serious Error - Page order

Hi, Joe

After a day of work, I found a serious error in the code mojoportal, which I wrote earlier

in the page Admin/PageTree.aspx not working Up and Down

In the procedure mp_Pages_SelectChildPages You do not pass parameters SiteID and and therefore the procedure ResortPages() PageSettings.cs you sort of page with all sites in the database. After this operation PageOrder may be 100 and most important page never raised in the list

I was horrified by the contents of the field PageOrder in the table mp_Pages. It completely spoiled.

Best regards, Alexander

2/10/2010 12:38:18 PM
Gravatar
Total Posts 18439

Re: Very very Serious Error - Page order

Hi Alexander,

Ok, good job diagnosing this bug. I have fixed it in my copy and have begun the merge to trunk (it will take several hours).

I'm sorry this bug caused problems for you but very glad you were able to research it and diagnose it so we can fix it. I appreciate the effort you put into it.

Thanks,

Joe

2/10/2010 12:48:05 PM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Very very Serious Error - Page order

Hi, Joe

I am glad that I did it and helped you and other users

There is another problem which I wrote earlier. In the database I see a few pages that have the same address. But I do not understand how web editor was able to do so.

Best regards, Alexander

2/10/2010 12:57:04 PM
Gravatar
Total Posts 18439

Re: Very very Serious Error - Page order

Hi Alexander,

It is difficult to solve a bug until the steps to produce it are known. As in the one you just solved, it is a little easier if it is actually happening for you, as it was not happening for me I had no idea where to begin to investigate the issue. In this case it was only affecting root level pages in other sites, because we were passing in the parentpageid, but for root level pages in all sites the parent id is -1 so it was affecting all root level pages in all sites when resorting root level pages, but it was not affecting child pages.

If you find any clues or a solution on this other bug I will fix it quickly.

Best,

Joe

2/10/2010 2:43:15 PM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Very very Serious Error - Page order

Hi, Joe

Here is what I think about this page (PageTree.aspx). For a list of pages used element asp:ListBox. But for users it would be much more comfortably to use a different element TreeView. But need a realization of this element, which would be supported Drag-and-drop and Load on Demand

Best regards, Alexander
 

2/11/2010 9:03:29 AM
Gravatar
Total Posts 18439

Re: Very very Serious Error - Page order

Yes I agree that would be nice and I do hope to implement something like that at some point. Recently Joe Davis pointed me to this example which might be a good starting point.

http://boagworld.com/technology/creating-a-draggable-sitemap-with-jquery

I can make no promise on how soon I will get to it though.

Best,

Joe

2/11/2010 9:54:10 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Very very Serious Error - Page order

Hi, Joe

I looked at this component. It looks great and its functionality is sufficient for comfortable work editors!

Best regards, Alexander

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