Error in header.php
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> Nuke Blocks / Modules Support

#1: No icon Error in header.php Author: Sp0rAdiC PostPosted: Fri May 15, 2015 8:33 am
    —
I keep getting this error showing up in my security tracker. It's an sql error in header.php. any ideas?

Date              Time         IP                        Message
---------[SQL Error]------------------------------------------------------------------------------------------------------------
  - [15 May 2015 - 09:16:58] -
User: ******
IP: ******
URL: /index.php

File: /home/aahqcom/public_html/header.php
Line: 187
Message:
Code:
Query: UPDATE nuke_session SET uname="*******", time="1431699418", guest="0", module="", url="/index.php" WHERE host_addr="********"


Also, people are getting some kind of file compression error.  Could this be related??

#2: No icon Re: Error in header.php Author: Teo PostPosted: Fri May 15, 2015 11:02 am
    —
delete that table in your database and re submit the query for that table in your sql.

#3: No icon Re: Error in header.php Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri May 15, 2015 11:39 am
    —
Open:
header.php

On or around line 170
FIND:

PHP:  [ Select all ]

       $result $db->sql_query('UPDATE '.$prefix.'_session SET uname="'.$uname.'", time="'.$ctime.'", guest="'.$guest.'", module="'.$custom_title.'", url="'.$url.'" WHERE host_addr="'.$ip.'"'); 

 
Replace With:

PHP:  [ Select all ]

       $result $db->sql_query('UPDATE '.$prefix.'_session SET time="'.$ctime.'", guest="'.$guest.'", module="'.$custom_title.'", url="'.$url.'" WHERE uname="'.$uname.'" OR host_addr="'.$ip.'"'); 

 
That possibly should fix that error.

#4: No icon Re: Error in header.php Author: Sp0rAdiC PostPosted: Fri May 15, 2015 2:22 pm
    —
— coRpSE wrote
Open:
header.php

On or around line 170
FIND:

PHP:  [ Select all ]

       $result $db->sql_query('UPDATE '.$prefix.'_session SET uname="'.$uname.'", time="'.$ctime.'", guest="'.$guest.'", module="'.$custom_title.'", url="'.$url.'" WHERE host_addr="'.$ip.'"'); 

 
Replace With:

PHP:  [ Select all ]

       $result $db->sql_query('UPDATE '.$prefix.'_session SET time="'.$ctime.'", guest="'.$guest.'", module="'.$custom_title.'", url="'.$url.'" WHERE uname="'.$uname.'" OR host_addr="'.$ip.'"'); 

 
That possibly should fix that error.


TY sir, will give it a go!



HeadShot Extreme -> Nuke Blocks / Modules Support


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1