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.
Strange Admin Login Failure
Re: Strange Admin Login Failure
"PHP has encountered an Access Violation at 01B90AFD"
sounds like some strange windows stuff anythin in server logs?
sounds like some strange windows stuff anythin in server logs?
Re: Strange Admin Login Failure
I'm getting the same strange redirect problem, without the PHP access error though.
I am running CMSMS 0.13 on a WinXP box with PHP 4.3.10 and IIS. I have a working CMSMS installation. I wanted to set up another installation, so I unzipped the archive, put it under the WWWROOT, changed IIS to point to that directory as the root for the web server. I went through the installation without any apparent problems. I then went to the admin page to login. The login was successful, but I am immediately redirected to the site home page.
I can change the address in Firefox's address bar from http://localhost/index.php to http://localhost/admin/index.php and then I can see the admin area. When I click on the logout link or cause any other action which ends up doing a redirect, I get an error. It appears as though the /admin subpath is dropped or ignored during the redirect.
If I point IIS back to the first CMSMS installation I did, everything works fine.
Any help appreciated.
I am running CMSMS 0.13 on a WinXP box with PHP 4.3.10 and IIS. I have a working CMSMS installation. I wanted to set up another installation, so I unzipped the archive, put it under the WWWROOT, changed IIS to point to that directory as the root for the web server. I went through the installation without any apparent problems. I then went to the admin page to login. The login was successful, but I am immediately redirected to the site home page.
I can change the address in Firefox's address bar from http://localhost/index.php to http://localhost/admin/index.php and then I can see the admin area. When I click on the logout link or cause any other action which ends up doing a redirect, I get an error. It appears as though the /admin subpath is dropped or ignored during the redirect.
If I point IIS back to the first CMSMS installation I did, everything works fine.
Any help appreciated.
Re: Strange Admin Login Failure
Duh!
I went for a walk and remembered that I had a similar problem when I first installed CMSMS 0.13 on Windows. There is a bug in the lib/misc.functions.php file.
Here's a link to my eariler post on the problem and Ted's response:
http://forum.cmsmadesimple.org/index.ph ... 294.0.html
I made this change to my new CMSMS site and it works properly now.
Hope this helps.
I went for a walk and remembered that I had a similar problem when I first installed CMSMS 0.13 on Windows. There is a bug in the lib/misc.functions.php file.
Here's a link to my eariler post on the problem and Ted's response:
http://forum.cmsmadesimple.org/index.ph ... 294.0.html
I made this change to my new CMSMS site and it works properly now.
Hope this helps.