[SOLVED] Getting thrown out of the Admin console

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
AndyA
Forum Members
Forum Members
Posts: 11
Joined: Fri Jun 03, 2011 11:22 am

[SOLVED] Getting thrown out of the Admin console

Post by AndyA »

Our production site is using CMSMS 1.2.4 under Unix. I'm trying to create a test installation on a workstation running Windows XP.

I have access to the production site via FTP and I know the admin and MySQL logon credentials.

I copied all the production files to my workstation, followed the upgrade procedures and CMSMS is now at version 1.9.4.1 with PHP 5.3.5 and MySQL 5.5.8 running on Apache 2.2.17 (under Windows XP).

I exported the production MySQL database and reimported it locally. After editing config.php, the test site displays correctly in Firefox and IE.

The problem is with the admin console. It works normally on the production version.

In the test version, I'm able to log in, but if I click on any menu item that points to a PHP file other than admin/moduleinterface.php, I'm thrown back to the login page. IOW, if I click on a menu item that points to listcontent.php, imagefiles.php, edituser.php, etc., I wind up at the login screen.

Any ideas about how to get the admin console to work correctly would be very much appreciated.
Last edited by AndyA on Mon Jun 06, 2011 11:30 am, edited 2 times in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Getting thrown out of the Admin console

Post by jmcgin51 »

have you verified that all paths are set correctly in the config.php file in the test installation??
User avatar
myshko
Forum Members
Forum Members
Posts: 102
Joined: Wed Feb 07, 2007 2:36 pm

Re: Getting thrown out of the Admin console

Post by myshko »

Hi Andy,

It could be your admin theme is out of date.

When you hover over a link, does the ending php file have the session key appended?

It should look something like this:

Code: Select all

http://example.com/admin/listcontent.php?sp_=97e6e8d3
If the ?sp_= is not there, clicking a link would put you out of the admin console.

To fix it, check you have a recent, or latest version of the admin theme NCleanGrey or similar.

/m
AndyA
Forum Members
Forum Members
Posts: 11
Joined: Fri Jun 03, 2011 11:22 am

Re: Getting thrown out of the Admin console

Post by AndyA »

jmcgin51 said:
have you verified that all paths are set correctly in the config.php file
Yes, I've checked and the config.php file is correctly configured.

myshko said:
When you hover over a link, does the ending php file have the session key appended?
No, it does not. (The links to moduleinterface.php do have a session key, which is why they apparently work.)
check you have a recent, or latest version of the admin theme NCleanGrey
The problem is that to change the admin theme, I need to get into Global Settings, but to do that, I need to use a link to siteprefs.php (without the session key).

Is there a way for me to switch to the NCleanGrey theme manually?

Thanks and regards, Andy
User avatar
myshko
Forum Members
Forum Members
Posts: 102
Joined: Wed Feb 07, 2007 2:36 pm

Re: Getting thrown out of the Admin console

Post by myshko »

Hi Andy,

Yes, there is a way.
  1. Delete all the themes in your /admin/themes/ folder
  • Upload just the 'default' theme from the latest CMSMS build
  • Login to the admin panel
  • Admin will revert to using the default theme (very barebones) and you can now upload new themes and apply them
Or, if you have one URI with the session key, you can copy that part and add it to another. Should be enough to get you into 'My Preferences'.

Make:

Code: Select all

http://example.com/admin/editprefs.php
This:

Code: Select all

http://example.com/admin/editprefs.php?sp_=3e8b6393
Hope that helps,

/m
AndyA
Forum Members
Forum Members
Posts: 11
Joined: Fri Jun 03, 2011 11:22 am

Re: Getting thrown out of the Admin console

Post by AndyA »

Hello myshko,

Thanks for your very clear reply. I now have a working test site.

best regards, AndyA
Post Reply

Return to “CMSMS Core”