Admin login issues - redirected back to login page

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
daymobrew
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 05, 2009 5:02 pm

Admin login issues - redirected back to login page

Post by daymobrew »

I currently have CMSMS 1.6.2, but this problem has been around for a long time over multiple versions. It only happens on 1 of my 3 CMSMS sites. Two are on the same server and use the same db (different tables).

When I try to log into my admin area I am redirected back to the login page. If the password is wrong it says so.
If I turn on debug I can login okay.
My workaround is to rename admin/moduleinterface.php to admin/moduleinterface.orig.php, login and then rename the file back.
I decided to rename this file because I saw a 302 redirection from it in my server logs.
The same server log line mentioned the News module but uninstalling the News module does not fix the issue.

Here is my server log on a failed login. It begins with the POST of my username/password.

Code: Select all

XX.XX.XX.XX - - [01/Aug/2009:14:18:53 +0100] "POST /admin/login.php HTTP/1.1" 302 - "http://www.mydomain.com/admin/login.php" "Firefox/3.5.1" www.mydomain.com
XX.XX.XX.XX - - [01/Aug/2009:14:18:53 +0100] "GET /admin/moduleinterface.php?module=News?sp_=63f25c0f HTTP/1.1" 302 - "http://www.mydomain.com/admin/login.php" "Firefox/3.5.1" www.mydomain.com
XX.XX.XX.XX - - [01/Aug/2009:14:18:54 +0100] "GET /admin/login.php HTTP/1.1" 200 2249 "http://www.mydomain.com/admin/login.php" "Firefox/3.5.1" www.mydomain.com
XX.XX.XX.XX - - [01/Aug/2009:14:18:54 +0100] "GET /admin/loginstyle.php HTTP/1.1" 200 24955 "http://www.mydomain.com/admin/login.php" "Firefox/3.5.1" www.mydomain.com 
The following modules are installed:
Captcha, CMSMailer, FileManager, FormBuilder, GoogleMaps, ImageUpload, MenuManager, ModuleManager, News, nuSOAP, Printing,Search, ThemeManager, TinyMCE

These two are present but not installed: Glossary, Thumbnails

What should I do to resolve this?
Pierre M.

Re: Admin login issues - redirected back to login page

Post by Pierre M. »

Hello,
daymobrew wrote: If I turn on debug I can login okay.
My workaround is to rename admin/moduleinterface.php to admin/moduleinterface.orig.php, login and then rename the file back.
When you work arounf to log in, what about System Info and System Checksum ?
Have you tried with 1.6.3 ?

Pierre M.
daymobrew
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 05, 2009 5:02 pm

Re: Admin login issues - redirected back to login page

Post by daymobrew »

Pierre M. wrote:Have you tried with 1.6.3 ?
Same problem with 1.6.3 base.
Pierre M. wrote:When you work around to log in, what about System Info and System Checksum ?
Cms Version: 1.6.3

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 1.0
    * MenuManager: 1.6.1
    * ModuleManager: 1.3.1
    * News: 2.10.2
    * nuSOAP: 1.0.1
    * Printing: 1.0.1
    * Search: 1.6.1
    * ThemeManager: 1.1.1
    * TinyMCE: 2.5.1
    * FormBuilder: 0.5.5
    * Captcha: 0.3.1
    * GoogleMaps: 0.1.4
    * ImageUpload: 0.1.2


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 40000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension: .html
    * internal_pretty_urls: false
    * use_hierarchy: true


Php Information:

    * phpversion: 5.2.9
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 128M
    * max_execution_time: 20
    * safe_mode: Off (False)
    * session_save_path: No check because open basedir active


Server Information:

    * Server Api: apache2handler
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.83
System Checksum (1.6.3 base) reports 129 missing files (from docs, install, tmp dirs). No mismatches.
Pierre M.

Re: Admin login issues - redirected back to login page

Post by Pierre M. »

daymobrew wrote:     * FormBuilder: 0.5.5
    * Captcha: 0.3.1
    * GoogleMaps: 0.1.4
    * ImageUpload: 0.1.2

    * max_execution_time: 20

    * session_save_path: No check because open basedir active

System Checksum (1.6.3 base) reports 129 missing files (from docs, install, tmp dirs). No mismatches.
Some things to investigate :
-you have a login problem and System Info lists an issue about PHP sessions. Talk with your PHP provider.
-129 missing files is strange. Have you tried to reupload ?
-see release notes (of modules) for compatibility with CMSms core.
-20s may be a bit short but it does seem to be an issue yet.

Pierre M.
daymobrew
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 05, 2009 5:02 pm

Re: Admin login issues - redirected back to login page

Post by daymobrew »

Pierre M. wrote: Some things to investigate :
-you have a login problem and System Info lists an issue about PHP sessions. Talk with your PHP provider.
-129 missing files is strange. Have you tried to reupload ?
-see release notes (of modules) for compatibility with CMSms core.
-20s may be a bit short but it does seem to be an issue yet.
The 129 missing files are okay - they are the docs and the install dirs, neither are required on a production site.
I will look at the PHP session issue and the release notes.
daymobrew
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 05, 2009 5:02 pm

Re: Admin login issues - redirected back to login page

Post by daymobrew »

daymobrew wrote: It only happens on 1 of my 3 CMSMS sites. Two are on the same server and use the same db (different tables)
This is a very strange part of my issue. Both sites have open_basedir issues (and both report it in System Information).
Both of them append a code at the end of the url e.g. http://www.domain.com/admin/index.php?sp_=10e24c97
As the site works once logged in, does it hint at a bug in the login portion of the code?

The working site had the old (not NCleanGrey) login screen, but switching to this on the broken site didn't make any difference. Both sites use NCleanGrey theme.

GoogleMaps is the only installed module on the broken site that is not on the working one. I uninstalled it but it didn't help.
Pierre M.

Re: Admin login issues - redirected back to login page

Post by Pierre M. »

Hello again,

getting short of ideas, I have only 3 areas to focus on :
-avoid openbasedir PHP session problems (non CMSms specific PHP hosting thing),
-diff the notworking vs the working install (this should be a clue),
-explore your http error.log (another good clue finder).

Pierre M.
daymobrew
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 05, 2009 5:02 pm

Re: Admin login issues - redirected back to login page

Post by daymobrew »

Thanks for more ideas.

As my other, working CMSMS installation is on the same web space (diff dir) and same db, I changed my config.php to use the db table prefix for the other CMSMS installation and it works fine - which implies that the files are okay and, tells me that there might be something up with the db.

I checked my error_log:

Code: Select all

[Wed Aug 12 13:02:34 2009] [error] [client 79.97.244.22] PHP Fatal error:  Call to a member function GetContent() on a non-object in /path/to/domain.com/lib/content.functions.php on line 633
I've never seen that error before and I am not 100% sure what my config.php set up was when this error occurred.

I think that me best solution is to do a fresh installation.
Pierre M.

Re: Admin login issues - redirected back to login page

Post by Pierre M. »

daymobrew wrote: I think that me best solution is to do a fresh installation.
When you can trash everything and start clean from scratch yes it is the best solution.

Pierre M.
Post Reply

Return to “CMSMS Core”