Strange Admin Login Failure
Posted: Wed Jul 19, 2006 5:09 pm
After entering my username and password, CMSMS returns me to the document root's "index.php" file (the main page after installation). If I turn debugging on in "config.php," it returns me instead to the admin logon screen (which doesn't state that the username or password is wrong). Following is the debug results:
**************************
PHP has encountered an Access Violation at 01B90AFDDebug is on. Redirecting disabled... Please click this link to continue.
index.php
Debug:
loading smarty
Debug:
loading adodb
Debug:
loading page functions
Debug:
loading content functions
Debug:
loading pageinfo functions
Debug:
done loading files
Debug:
(mysql): SELECT * FROM cms_userplugins - Error (0):
Debug:
(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs - Error (0):
Debug:
(mysql): SELECT * FROM cms_modules ORDER BY module_name - Error (0):
Debug:
(mysql): SELECT user_id FROM cms_users WHERE username = 'admin' AND password = 'dd2cdb1cb53e5d9922d2880b37b71465' AND active = 1 AND admin_access = 1 - Error (0):
Debug:
(mysql): SELECT username, password, active, first_name, last_name, admin_access, email FROM cms_users WHERE user_id = '1' - Error (0):
Debug:
Got user by username
Debug:
user Object
(
[id] => 1
[username] => admin
[password] => dd2cdb1cb53e5d9922d2880b37b71465
[firstname] => Admin
[lastname] => User
[email] => [email address]
[active] => 1
[adminaccess] => 1
)
Debug:
Starting login procedure. Setting userid so that other pages will pick it up and set a cookie.
Debug:
(mysql): SELECT preference, value FROM cms_userprefs WHERE user_id = '1' - Error (0):
Debug:
(mysql): INSERT INTO cms_adminlog (timestamp, user_id, username, item_id, item_name, action) VALUES (1153325980,0,'',-1,'','User Login') - Error (0):
Debug:
(mysql): SELECT version from cms_version - Error (0):
****************************
After clicking the "index.php" link ...
********************
PHP has encountered an Access Violation at 01B90AFDDebug is on. Redirecting disabled... Please click this link to continue.
http://www.mysite.com/subdirectory/admin/login.php
[Which obviously just returns to the admin screen.]
Environment:
Windows 2000
IIS 5.0
PHP 4.3.8
CMS 0.13 (zip) Install via FTP
Notes:
No "php.ini" file was not generated by the installation. This seems wrong. I took a default "php.ini" and set only the "open_basedir" setting.
At the advice of Ted, I did this:
Open up lib/content.functions.php. Look for $this->use_sub_dirs = true; near the top. Change it to $this->use_sub_dirs = false;
I also turned debugging on.
Again, any help is appreciated.
**************************
PHP has encountered an Access Violation at 01B90AFDDebug is on. Redirecting disabled... Please click this link to continue.
index.php
Debug:
loading smarty
Debug:
loading adodb
Debug:
loading page functions
Debug:
loading content functions
Debug:
loading pageinfo functions
Debug:
done loading files
Debug:
(mysql): SELECT * FROM cms_userplugins - Error (0):
Debug:
(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs - Error (0):
Debug:
(mysql): SELECT * FROM cms_modules ORDER BY module_name - Error (0):
Debug:
(mysql): SELECT user_id FROM cms_users WHERE username = 'admin' AND password = 'dd2cdb1cb53e5d9922d2880b37b71465' AND active = 1 AND admin_access = 1 - Error (0):
Debug:
(mysql): SELECT username, password, active, first_name, last_name, admin_access, email FROM cms_users WHERE user_id = '1' - Error (0):
Debug:
Got user by username
Debug:
user Object
(
[id] => 1
[username] => admin
[password] => dd2cdb1cb53e5d9922d2880b37b71465
[firstname] => Admin
[lastname] => User
[email] => [email address]
[active] => 1
[adminaccess] => 1
)
Debug:
Starting login procedure. Setting userid so that other pages will pick it up and set a cookie.
Debug:
(mysql): SELECT preference, value FROM cms_userprefs WHERE user_id = '1' - Error (0):
Debug:
(mysql): INSERT INTO cms_adminlog (timestamp, user_id, username, item_id, item_name, action) VALUES (1153325980,0,'',-1,'','User Login') - Error (0):
Debug:
(mysql): SELECT version from cms_version - Error (0):
****************************
After clicking the "index.php" link ...
********************
PHP has encountered an Access Violation at 01B90AFDDebug is on. Redirecting disabled... Please click this link to continue.
http://www.mysite.com/subdirectory/admin/login.php
[Which obviously just returns to the admin screen.]
Environment:
Windows 2000
IIS 5.0
PHP 4.3.8
CMS 0.13 (zip) Install via FTP
Notes:
No "php.ini" file was not generated by the installation. This seems wrong. I took a default "php.ini" and set only the "open_basedir" setting.
At the advice of Ted, I did this:
Open up lib/content.functions.php. Look for $this->use_sub_dirs = true; near the top. Change it to $this->use_sub_dirs = false;
I also turned debugging on.
Again, any help is appreciated.