Admin problem on 2.1.2

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.
9/23/2006 9:36:51 PM
Gravatar
Total Posts 3

Admin problem on 2.1.2

I did a clean install of the new 2.1.2 source-code, compiled and the main page comes up fine, I then login as admin but there is no link to the admin pages.  If I directly go to one of the admin pages (by typing it into the browser) I get an edit-access denied page.  Checking the mpUserRoles table it looks fine, but it just seems like it is not thinking the logged-in user is an admin.

Any ideas?
9/24/2006 3:55:10 AM
Gravatar
Total Posts 18444

Re: Admin problem on 2.1.2

Hi Arthur,

I just tried to replicate the problem but it works fine for me.
I downloaded the src zip and extracted it.
created a db and ran the create tables and create procs scripts
opened the solution in VS 2005 and set my connection string
hit the play button for the debugger, it opened the home page, I logged in as admin@admin.com pwd admin and then the Admin menu appeared at the bottom of the menu

You didn't mention which db you are using so I'm assuming MS SQL. You say you were able to login right? You can see the member list and My Profile links?
I'm pretty baffled, it works for me it should work for you.

Joe
9/27/2006 6:39:43 AM
Gravatar
Total Posts 13

Re: Admin problem on 2.1.2

I have the same problem when I have a clean install the 2.1.3.  I can't go to the admin area after login in... all I see on the navigation menu on the left is "Home'.  On top navigation, I see "Logged in as: Silvia Home | My Profile | Member List | Log Out".  I can edit the content of the first page you see after logged in.  But can't access any other pages or get to anywhere to edit other pages.
9/27/2006 6:49:12 AM
Gravatar
Total Posts 18444

Re: Admin problem on 2.1.2

Hi Sili,

Are you using the source code release? What database are you using? If MS SQL, is it SQL 2000 or SQL 2005?

Ok so it seems to know that you are in the admins role since you can edit the home page.
Can you look in the db mp_Pages and see if the Admin pages were created? If so can you see if the IncludeInMenu fiiled is set to 1 or true?

Maybe something went wrong with initial data creation. Please let me kno what you find.

Joe
9/27/2006 8:58:00 AM
Gravatar
Total Posts 13

Re: Admin problem on 2.1.2

I'm using the Compiled Deployment Files and MS SQL 2005.  In mp_Pages, I only see one row created, with pageName "Home", and IncludeInMenu set to true.

So, I guess Admin page was never created.
9/27/2006 9:06:19 AM
Gravatar
Total Posts 18444

Re: Admin problem on 2.1.2

That is strange. I downloaded the MS SQL release files and tested and it works fine for me.
Can you try dropping all the stored procedures and tables and re-create them. Then force application to restart by typing a space in web.config. This should invoke the mojoSetup to create the initial data.
Did you make the Data folder writable by the asp.net worker process? If not maybe it got an error after creating the first page content when it tried to write a cache dependency file or index file. This would have prevented it from creating the rest of the data. The Data folder and all child folders/files must be writable.

Hope it helps,

Joe
9/28/2006 6:14:21 AM
Gravatar
Total Posts 13

Re: Admin problem on 2.1.2

I've tried to recreate the table and call procedures and add a space to the web.config file.  and it still gives me the same result.  When the first time I open the page, it gives me a error. I think that's what you refer to as the writing of the cache dependency file or the index file.  However, when I check my permissions, it seems alright.  Here's what I have:

-ASP.NET Machine Account: allowed modify, read & execute, list folder contents, read, write.
-aspnet_wp account: allowed modify, read & execute, list folder contents, read, write.
-Internet Guest Account: allowed modify, read & execute, list folder contents, read, write.

I don't see why it still has the permission issue.
9/28/2006 6:22:38 AM
Gravatar
Total Posts 18444

Re: Admin problem on 2.1.2

Is this on XP or Windows 2003 Server? If on Windows Server 2003 then it would need to be the NetworkService account and the IIS_WPG user that need permission.

Of course this is if you have default settings in machine.config. It is possible to have a different user specified in machine.config and in that case the specified user is the one that needs permission.

If the Data folder is writable then you should see a Data/currentlog.config file which would have any error messages logged. If this file doesn't exist then its definitely not able to write. If this file does exist then maybe the permissions didn't propagate down to the sub folders like Data/Sites/1 where it needs to create cache dependency files, or the Data/Sites/1/index folder where it would write the search index.

Hope it helps,

Joe
9/28/2006 6:39:17 AM
Gravatar
Total Posts 13

Re: Admin problem on 2.1.2

You are right on!  It was the IIS_WPG user that I need to set permission to.  Once  I got it setup, it just runs smoothly!  Thank you very much!
9/28/2006 6:55:19 AM
Gravatar
Total Posts 18444

Re: Admin problem on 2.1.2

Excellent! Glad its working for you. I actually updated the documentation here last night with this information:

http://www.mojoportal.com/iiswebsetup.aspx


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