Welcome to Geeklog, Anonymous Monday, May 06 2024 @ 07:29 pm EDT

Geeklog Forums

Site down - Cookie errors?!?


Narf

Anonymous
Hi guys, hope you can help!

Recently my site went down with a sql error, so I checked for everthing obvious I could think of...the DB login still works, everything seems to be up and running (SQL wise)

Anyway this is the error I get when I enable error reporting:

Notice: Undefined variable: _USER in /home/powellri/public_html/system/lib-sessions.php on line 206

I looked in lib-sessions.php and it appears to be related to cookies. Anyone have any ideas? I'm stuck!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That's only a notice, not an error. But it may prevent you from logging in.

You shouldn't be seeing notices, actually. Make sure you still have this line near the top in lib-common.php:
Text Formatted Code
error_reporting( E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR );
 


bye, Dirk
 Quote

Narf

Anonymous
I enabled it to try to figure out what was happening in the site.

I changed it to 'All'
 Quote

Narf

Anonymous
I misread that! Embarassed

How can I enable error logging? Or perhaps you can point me in the right direction

That error comes up when I visit any php page on the site...
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Narf: I enabled it to try to figure out what was happening in the site.

I changed it to 'All'

That's what I suspected. Change it back to what I quoted above.

bye, Dirk
 Quote

Narf

Anonymous
I changed it back the error now reads

An SQL error has occured. Please see error.log for details.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So what is the SQL error?

bye, Dirk
 Quote

Narf

Anonymous
The error is as follows:

Text Formatted Code

Wed Aug 31 12:00:55 2005 - 1016: Can't open file: 'gl_sessions.MYI'. (errno: 145). SQL in question: DELETE FROM gl_sessions WHERE remote_ip = '24.6x.2x3.204' AND uid = 1

 


The IP varies but the error remains the same
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Your sessions table is corrupted. Try repairing it in phpMyAdmin.

bye, Dirk
 Quote

Narf

Anonymous
That did it! Big Celebration

You rock! Thanks man! Now to find the cause of it...
 Quote

All times are EDT. The time is now 07:29 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content