A problem onlogin after the first installation

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
10/2/2007 12:07:35 PM
Gravatar
Total Posts 12

A problem onlogin after the first installation

Hello,

   I'm italian and i don't speak englieh very well. But i try to show you my problem!

I installed the mojo portal on my local machine with database Mysql, the installation procedure didn't have problem. But when i load the Default page and i try to login with the parameter admin@admin.com admin i receive the message "login not successful". I don't find any user in the table user in the database. Wher is the problem? how can i create the admin user?

Thanks for your help 

10/2/2007 4:34:36 PM
Gravatar
Total Posts 18439

Re: A problem onlogin after the first installation

Hi,

The user should have been created by the setup page. You might try visiting the siteroot/Setup/Default.aspx page again and see if it creates the user. If there is no site, it should create a site and a user but if there is already a site it will not. One option is to clean out the db and try setup again.

If it did create the site but did not create the user, you might look in the /Data/currentlog.config file for errors about creating a user. If you find something post it here. There should be some errors in the log because a bunch of errors happen if the db is not setup yet (and are expected) but they are handled and logged. But if you see any errors specifically about user creation that might be meaningful.

Are you using the newest mojoPortal release files?

Hope it helps,

Joe

10/2/2007 5:06:23 PM
Gravatar
Total Posts 12

Re: A problem onlogin after the first installation

yes i'm using the newest release.

10/2/2007 5:10:42 PM
Gravatar
Total Posts 12

Re: A problem onlogin after the first installation

i've tried to use dotnetnuke, but i think that mojoportal is more simple and customizable.

i will try to restart the installation and i will see the error log.

One question, the module that are in the demo version they aren't the same of the newest release?

there isn't a module for news mangement or article management?

 

Thank for your help

10/3/2007 2:41:04 AM
Gravatar
Total Posts 12

Re: A problem onlogin after the first installation

 

I resolved the problem with the reinstallation of mojoportal.

Thanks

Dario

1/19/2008 5:23:52 PM
Gravatar
Total Posts 4

Re: A problem onlogin after the first installation

Hello all,

this is my first post and first of all I would like to say that all the team and mr Aduette is doing a great job developing this portal.

Now the bad stuff.
I got the same issue as kento80 and I'm tryin' to get a workaround. Is it possible to get the script for the insert of the admin user(I have a db connection and the user table is empty), because I have tryed to reinstall and drop the tables from the db but it seems not to work with me.

If it is of any help the currentlog.cofig displays only 3 warrnings and all are the same:

Did not try to upgrade the application pollfeature-byChristianFredh because the folder C:\Inetpub..\mssql does not exist.

Thank you for the help

1/19/2008 5:33:47 PM
Gravatar
Total Posts 18439

Re: A problem onlogin after the first installation

Hi,

Its not done by a script so I don't have a script to point you to.

The warnings just means there is no upgrade for the poll feature.

What db plaform are you using?

Did you make your own build with source code or use the 2.2.4.6 pre-compiled release?

Is this an upgrade or a new install?

Can you look in your db? Are there any rows in mp_Users? mp_Sites? mp_Pages?

Joe

1/19/2008 5:45:30 PM
Gravatar
Total Posts 4

Re: A problem onlogin after the first installation

Hello,

thanks for the immediate reply.

My db is mssql2005. I used a pre-compiled release.
It's a new install and I have all the rows and all the tables but the tables are empty.

On the first attempt of install I added a user by hand in the mpUsers table and I could login but I had no rights(no edit or other controls). I have droped all the tables after that and run again the setup, so now all the tables and rows are there but empty.

1/19/2008 5:49:53 PM
Gravatar
Total Posts 4

Re: A problem onlogin after the first installation

I forgot to mention that tables mpSites and mpPages has data in, only the mpUsers is empty.

1/19/2008 6:00:40 PM
Gravatar
Total Posts 18439

Re: A problem onlogin after the first installation

Ok, the setup page will only create the admin user if it creates the site so if you can delete all the rows in all the tables it can start again.

If you can access query anaylzer then

Exec mp_Sites_Delete 1

shoud do it assuming the site id is 1

Then visit the /Setup/Default.aspx page again and it should create the site and the user but there will still be a problem.

You'll need to look in the mp_Sites table and see the new id, probably 2

Now rename the /Data/Sites/1 folder to Data/Sites/2 or create a new one and copy the contents from the 1.

Now type a space in web.config and save and upload again, this is just to recycle the app.

If all goes well it should fix the problem, though I don't understand what happened before to get things messed up. I mean it should have created the admin when it created the site, thats what it does when I test it.

Hope it helps,

Joe

1/19/2008 6:19:27 PM
Gravatar
Total Posts 4

Re: A problem onlogin after the first installation

Did all as told...

Works like a charm!

Thank you.

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