how to switch site IDs in the backend

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/2/2010 11:05:48 AM
Gravatar
Total Posts 7

how to switch site IDs in the backend

I'm a new user, but my host provided two site IDs, 1 and 2, and I inadvertently changed mojoportal to site id 2, I believe under Administration, Site Settings, now I can't log back in and switch it.  I've tried the admin pw for site ID 2, and the other new passwords and one let me proceed to asking my security question, but it crashed with the following error message

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.
------

It's also interesting that when I go to the Recover Password screen, I enter all the IDs created under site ID 1, including the one above and admin@admin.com and all come back with the message "user name not found."  So, I wanted to try and change the site ID back to 1 either via config files or database, but I've yet to find out how.  Since I can't log in to the site anymore, I think this is the only way to reset things?  Can someone help get me back on track?  Or maybe I need to delete site ID 2 - I'm just not sure why my host configured it this way if it's not valid - but I'd also have to switch the site to site ID 1 somewhere too.

TIA, Steve

2/2/2010 12:08:12 PM
Gravatar
Total Posts 18439

Re: how to switch site IDs in the backend

my host provided two site IDs, 1 and 2, and I inadvertently changed mojoportal to site id 2

Sorry but this makes no sense to me, who is your host, how did they provide you site ids and how did you change them?

If your host already had mojoportal installed and created a site or sites for you, you should get support from your host.

Best,

Joe

2/2/2010 1:15:02 PM
Gravatar
Total Posts 7

Re: how to switch site IDs in the backend

Hey, thanks Joe for the rapid response.  The host is christianasp.net and they had set up a development site for me at lightky.christianasp.net.  They preinstalled the latest version of MojoPortal for me, along with the database, and I was trying to configure everything and was having trouble getting the MojoPortal header removed in an attempt to change it Light Home Educators.  There was a dropdown for site, the first was MojoPortal and the second was (I think) something like Light, but I can't remember for sure.  When I switched it, it's like the site was reconfigured, even checked the database and there's two sites there too.  I have contacted them as of a few days ago, waiting to hear back, but maybe two sites were configured accidently or something?

--Steve

2/2/2010 1:24:57 PM
Gravatar
Total Posts 18439

Re: how to switch site IDs in the backend

Hi Steve,

I'm not sure what David setup for you, but mojoportal can host multiple sites in a single installation. The first site is always the master site. Which site responds on which host name is determined by rows in the mp_SiteHosts table which pairs the host names to the site ids. So I might look in that table and make sure the main host name is pointing to siteid 1 which would be the master site.

Hope it helps,

Joe

2/3/2010 1:07:59 PM
Gravatar
Total Posts 7

Re: how to switch site IDs in the backend

Hey thanks Joe for the direction.  I ended up installing it local and found that under Administration, Site Settings, I had selected New Site in the dropdown rather than leaving it alone as MojoPortal.  I think I need to be a little more careful in the future.  I read a lot of the documentation, but didn't look this up as I was in this page.  Chalk this one up to a newby user error!

I am impressed by what I've seen so far.  I've worked for years as a custom .NET developer, but have never worked with CMS tools before.  Hopefully will be able to tweak a little of the source to do what we're wanting to do as well.  One thing I saw right off the bat is that the forums have no search.  Is that something I've overlooked, is that on the to-do list, or is that one I might consider implementing?

Thx!  --Steve

2/3/2010 1:14:46 PM
Gravatar
Total Posts 18439

Re: how to switch site IDs in the backend

Hi,

Forums search is integrated into the main site search, see the link in the top right corner of the page. Notice on the search page you can filter by feature.

I recommend that you do not modify any mojoPortal code, if you do that you are making a fork and will face problems trying to upgrade to newer versions of mojoPortal. You should keep all your custom code in your own projects, if you really need to modify a feature, you should clone it first.

Hope it helps,

Joe

2/3/2010 3:02:25 PM
Gravatar
Total Posts 7

Re: how to switch site IDs in the backend

Fantastic - I'm impressed more all the time!  It's clear a lot of good architectural foresight went into this tool.  Thanks Joe.

--Steve

2/4/2010 4:44:33 PM
Gravatar
Total Posts 7

Re: how to switch site IDs in the backend

Ended up the mp_SiteHosts table didn't have any entries in at all - maybe because this is a development site as we will in the future be switching hosts from a PHP-based site that someone else put together.  Since I haven't done much with the online implementation, I might proceed to wipe the db and replace with a fresh copy.  I could also search the schema for SiteID and try to come up with a db schema in terms of where else to look.

--Steve

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