Drupal 6.8
I am having a weird problem. All the sudden I can't login to my local dev site. The production site is fine.
I backup MySQL data from the production site, and when I login to local dev site, the site flashes and do nothing. when I go example.com/user and login, I get access denied error. This is true to my admin account and a few other test accounts I created. I truncated all the cache tables before backing up. I went admin/config/perfrmance and clear the cache before backing up.
Any suggestion would be appreciated. I have been doing for a long while, and never encountered this problem before. I can't think of anything that has changed.
-- - Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
Are you hosting the dev site on a different server? I have seen this error when some hosts upgrade to php 5
If so, adding register_shutdown_function('session_write_close'); at the end of settings.php works
On Fri, Feb 27, 2009 at 11:30 PM, A-NO-NE Music madflute@anonemusic.comwrote:
Drupal 6.8
I am having a weird problem. All the sudden I can't login to my local dev site. The production site is fine.
I backup MySQL data from the production site, and when I login to local dev site, the site flashes and do nothing. when I go example.com/user and login, I get access denied error. This is true to my admin account and a few other test accounts I created. I truncated all the cache tables before backing up. I went admin/config/perfrmance and clear the cache before backing up.
Any suggestion would be appreciated. I have been doing for a long while, and never encountered this problem before. I can't think of anything that has changed.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
-- [ Drupal support list | http://lists.drupal.org/ ]
On 09/02/27(金), at 23:52, VJ wrote:
Are you hosting the dev site on a different server?
Thank you for your response. My local dev machine is OSX 10.5.6 Intel Mac.
I have seen this error when some hosts upgrade to php 5
It has been PHP5 since I started, but your comment made me realize I did have a security update on this OSX last week. I took a look at system preferences but I couldn't find anything suspicious.
If so, adding register_shutdown_function('session_write_close'); at the end of settings.php works
I don't know much about PHP but I just tried it out of desperation. Unfortunately it didn't do anything.
-- - Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
Try emptying the sessions table in your database, then login again.
You may also want to try and clear all the cookies in your browser for the local domain.
Jamie Holly http://www.intoxination.net Skype:intoxination Phone: 1-513-252-2919
A-NO-NE Music wrote:
Drupal 6.8
I am having a weird problem. All the sudden I can't login to my local dev site. The production site is fine.
I backup MySQL data from the production site, and when I login to local dev site, the site flashes and do nothing. when I go example.com/user and login, I get access denied error. This is true to my admin account and a few other test accounts I created. I truncated all the cache tables before backing up. I went admin/config/perfrmance and clear the cache before backing up.
Any suggestion would be appreciated. I have been doing for a long while, and never encountered this problem before. I can't think of anything that has changed.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
Quoting Jamie Holly hovercrafter@earthlink.net:
Try emptying the sessions table in your database, then login again.
You may also want to try and clear all the cookies in your browser for the local domain.
Also make sure the files and tmp directories are writable and not full. Login issues of this nature can happen if the sessions cannot be saved.
-- Earnie http://r-feed.com Make a Drupal difference and review core patches.
On 09/02/28(土), at 8:59, Jamie Holly wrote:
Try emptying the sessions table in your database, then login again.
Thank you for your response. I just tried. No change.
You may also want to try and clear all the cookies in your browser for the local domain.
Forgot to mention before. That didn't do anything either.
On 09/02/28(土), at 10:10, Earnie Boyd wrote:
Also make sure the files and tmp directories are writable and not full.
To my surprise, there is no /tmp on my live site even though admin/ filesystem doesn't give me any error. Again, live site seems to be running fine without /tmp but I just created it manually just in case. I did the same on my local dev machine. Just to be sure I ran chown and chmod on files directory. No change.
I then realized all four Drupal 5 and 6 local sites are showing the same problem. They are all different sites. Two of them weren't even updated for a while. Now I feel the last OSX 10.5.6 security patch did this. I just don't know what to do right now.
I need to test the new dev version of gradebook module because it gives me the function I need to grade my students today, but I don't want to try this on my live site.
-- - Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
On Sat, Feb 28, 2009 at 7:55 PM, A-NO-NE Music madflute@anonemusic.com wrote:
On 09/02/28(土), at 8:59, Jamie Holly wrote:
Try emptying the sessions table in your database, then login again.
Thank you for your response. I just tried. No change.
You may also want to try and clear all the cookies in your browser for the local domain.
Forgot to mention before. That didn't do anything either.
On 09/02/28(土), at 10:10, Earnie Boyd wrote:
Also make sure the files and tmp directories are writable and not full.
To my surprise, there is no /tmp on my live site even though admin/ filesystem doesn't give me any error. Again, live site seems to be running fine without /tmp but I just created it manually just in case. I did the same on my local dev machine. Just to be sure I ran chown and chmod on files directory. No change.
I then realized all four Drupal 5 and 6 local sites are showing the same problem. They are all different sites. Two of them weren't even updated for a while. Now I feel the last OSX 10.5.6 security patch did this. I just don't know what to do right now.
Do the URLs of your menu links look correct? Do your menu links work on the local server?
Look for any mention of your live domain name in your .htacess file (e.g. in RewriteBase or in any RewriteCond) and in your settings.php files (e.g. in $base_url or in $cookie_domain).
Examine the cookies of your local sites in your browser (the session cookies, the ones with names like SESSxxxxxxxx). Do they exist? What "domain" and what "path" do they contain?
If you don't see any session cookies for your local sites, run a phpinfo() and check the values of "session.cookie_path" and "session.use_cookies".
I need to test the new dev version of gradebook module because it gives me the function I need to grade my students today, but I don't want to try this on my live site.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
-- [ Drupal support list | http://lists.drupal.org/ ]