By tbaxter on
I'm new to Drupal, (recently inherited a site) and have run into a problem:
Starting late last week, any attempt to access comments from any public-facing page leads to the user being logged out.
As far as I know, nothing remotely related to comments or logout has been touched.
If a user attempts to submit a comment, they are logged out and unable to submit.
If an admin attempts to delete or edit an existing comment, they are logged out.
Suggestions?
Comments
Check your Status Report
Administer -> Reports -> Status report
What do you see in your Status report? What is your Drupal version? What is your PHP version?
Not exactly sure what I'm
Not exactly sure what I'm looking for in the status report, but I am seeing related "access denied" errors.
Drupal is 6.13, I believe. Not sure on PHP version.
Edit: Actually, I just did it again and immediately went to the status log. There's nothing there at all.
=-=
PHP version shows in the status report as does the drupal version. Please report the information requested so that the issue can be better researched.
try clearing your sessions table in the database, logging everyone out, allowing for fresh logins.
check all tables to ensure none need repair.
did you at any time set a session lifetime in settings.php?
using any contrib modules that effect logout like autologout ?
Got it. Drupal is 6.13, PHP
Got it. Drupal is 6.13, PHP is 5.2.9.
I'll take a look at the DB/sessions suggestions.
No changes to settings.php, no new modules. It just started flaking out. Only change I can think of that MIGHT be related is that we turned on caching, but turning it back off made no difference.
=-=
after turning it off did you clear the cache tables?
yes
yes
=-=
no idea.
I'd check that all contrib modules are up to date. Considering core is a version behind, it's likely that some modules are also behind.
At this point it's guess work as there really isn't any debug information available.
Have you checked the user table for uid 0?
Your files may be corrupted or infected
Important: Completely backup your files and database(s) first.
You may need your backups if anything goes wrong.
Replace your Drupal installation using a fresh copy.
http://ftp.drupal.org/files/projects/drupal-6.13.tar.gz
See whether there is any nasty files in the "files" and "sites" directories.