"New Site" checking

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.
4/17/2009 8:36:54 AM
Gravatar
Total Posts 33

"New Site" checking

One of the reasons for my previous need to delete a site is this:

If you select "New Site" in the Site Administration screen, type in a name and hit Save, it creates a new site. If you make any change to the screen and hit "Save" again, a new site is created, with the same name and a new site ID.

I created 4 new sites before actually going back to the main admin page, clicking on Site Administration, and realizing that I had 4 sites of the same name.

Proposed behavior: After the site is created, refresh the page and have the site drop-down selected to the new site's name and ID. This would prevent sites from being created multiple times.

4/17/2009 8:44:04 AM
Gravatar
Total Posts 18439

Re: "New Site" checking

It already redirects and uses the new siteid after creating a new site. I do not experience the behavior you describe. The propsed behavior is the current beahavior as far as I know.

Maybe we need to disable the button when its clicked, possibly you are clicking it again before its finished and before the redirect.

Best,

Joe 

4/17/2009 9:01:50 AM
Gravatar
Total Posts 33

Re: "New Site" checking

I think I might know what's different between our two environments.

When I create a new site, I get the following error message at the bottom of the page, right over the Save button:

Could not bind to the LDAP settings as entered or could not bind your credentials in the LDAP directory. If the site allowed you to make this change you would be locked out after the next time you log out of the site. Please make sure the LDAP server is accessible and edit your user profile so that your UserID matches a record in LDAP and enter your LDAP user password.

The drop-down does not change to the site name and stays at "New Site" in this situation (possibly particular to LDAP being enabled, authentication failed, and possibly because I'm using SQLite version).

4/17/2009 9:05:59 AM
Gravatar
Total Posts 18439

Re: "New Site" checking

So you're using SQLite with LDAP auth? Are the child sites suposed to use LDAP too? Does it create the site anyway, but just not do the redirect because of the error? If you specify the correct LDAP settings does it work as expected? 

4/17/2009 9:33:43 AM
Gravatar
Total Posts 33

Re: "New Site" checking

Hmn, I think you might be right, because I tried recreating the problem, and the secondary site will only create itself once I remove the "Use LDAP Authentication", at which point it takes a few moments to create - it's possible that after all that "save" clicking before I removed the LDAP checkmark, I didn't realize it was actually doing something different.

So yeah, probably it's best to disable the button (you already have the code for this, the "Post" button on this very forum!).

Edit: By the way, I do actually use LDAP and SQLite, with the same database and active directory. I haven't gotten the chance to test it, but if I cannot use the same LDAP, it's an inconvenience.

4/17/2009 9:46:34 AM
Gravatar
Total Posts 18439

Re: "New Site" checking

I don't see any reason why the child sites can't use the same LDAP or a different LDAP, it should work, though I have not done much testing with LDAP and multi sites I don't know of any issues.  

I've added the button disabling code.

Best,

Joe

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