Forums on main Home page

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.
10/2/2006 5:23:18 AM
Gravatar
Total Posts 3

Forums on main Home page

Hi,

I'm creating a site that requires the forum to be on the home page, and so be available at startup.

This causes an issue and exception as the forum links are injected with a pageindex value from the Reques objects parameters...  Obviously these will be empty on first load (and subsequent page requests unless you first visit another page).

The code for the forum is faulty, this is because you are checking for a null on the page index value from the request, a request object will exist even if the key is not recognised, as it returns a type of empty string, so you then attemt to convert the empty strin to an integer and this causes an exception...

So, I think the tests within the forum code (Page_load which initializes all the items relying on request values) should insted read something like:

    if (Resuest.Params["pageindex"] != String.Empty)

which seems to then work correctly.

This is only a problem on the home page.

Let me know what you think, and thanks for a great portal.

Paul

10/2/2006 5:33:39 AM
Gravatar
Total Posts 18439

Re: Forums on main Home page

Hi Paul,

Thanks for reporting this issue I was unaware of it. I'm actually planning a new release tonight with a few new enhancements and bug fixes. This is an easy fix so I will be sure and take care of it before the release.

Thanks,

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