Author |
Message |
doffer83
Worker


Joined: Apr 17, 2011
Posts: 117
Location: Amsterdam
|
Posted:
Sun May 22, 2011 7:17 pm |
|
in the root of my site I see a error_log file 2 MB.. so I made it open and I could read this lines..many many times
Code:[15-Feb-2011 00:08:57] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/saintt18/public_html/mysite_com/header.php:32) in /home/saintt18/public_html/mysite_com/includes/sessions.php on line 254
|
and
Code:[15-Feb-2011 04:07:03] PHP Fatal error: Call to undefined function htmlspecialcharshtmlspecialchars() in /home/saintt18/public_html/mysite_com/modules/Web_Links/index.php on line 1246
|
can someone just tell me what does that mean... |
|
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Sun May 22, 2011 8:42 pm |
|
Has this site been running previously? It sounds to me like you may not have FTP'd the files correctly. What version are you running? When did you install? How? |
|
|
|
 |
doffer83

|
Posted:
Mon May 23, 2011 2:34 am |
|
I have writen it here because i saw bugs fix for nuke. I have a phpnuke site and it is online version 7.9 with patch 3.3 and forum 2.23
Let me thank you for your attention, please tell me what can be those error? The file is auto generated |
|
|
|
 |
killing-hours
RavenNuke(tm) Development Team

Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx
|
Posted:
Mon May 23, 2011 11:53 am |
|
1) The first error is something tryin to modify the headers after they have already been established. (error is being triggered @ /home/saintt18/public_html/mysite_com/includes/sessions.php on line 254 )
2) htmlspecialcharshtmlspecialchars() <-------- this is not a function. Looks like a nice ol' typo. should read:
"htmlspecialchars"
The error log itself is used to give you information on error that happen so you can track down the problems and fix them. |
_________________ Money is the measurement of time - Me
"You can all go to hell…I’m going to Texas" -Davy Crockett |
|
|
 |
fkelly

|
Posted:
Mon May 23, 2011 2:54 pm |
|
The headers already sent message happens often when there are extra blank lines at the bottom of your program(s). As Killing-hours said the other error is a typo in your file. But how you would get a typo or extra blank lines is what has to concern you. There are quite literally thousands of files in a Nuke distribution. I don't know what you mean by "auto-generated" -- perhaps you have something like an automatic install on your server? At any rate it appears to be installed with errors. Did this site ever work? You need to go back to who ever installed it and get it done right. If there are errors like this, there are probably other errors and unless you get everything done right you are just going to drive yourself nuts with constant problems like this. |
|
|
|
 |
killing-hours

|
Posted:
Mon May 23, 2011 3:03 pm |
|
@ fkelly... the first error states in other words... "the headers were already sent by header.php on line 32, but sessions.php is trying to send a new header @ line 254" if i'm understanding the error correctly.
The second error is pretty blatant... look at the function... I know that it's a typo because the function is "htmlspecialcharshtmlspecialchars" instead of "htmlspecialchars" in the index.php on line 1246.
The second error is easily corrected by finding the line in the index.php and correcting the typo... however, I don't really understand how the headers are handled and what all can trigger that error. Thanks for the info about the blank space.
I also believe they aren't sure what the error_log is used for... hence they are seemingly having a hard time explaining what they are trying to get across. |
|
|
|
 |
doffer83

|
Posted:
Mon May 23, 2011 3:08 pm |
|
Quote: |
The error log itself is used to give you information on error that happen so you can track down the problems and fix them.
|
yes I want fix it but I don't know what does the error mean. where come the error from !!!
This is my last try.. I dont know if I am not clear any way...
Today I have delete the file.. after few day I will find it again in the root of my site.. and yes the site is online for years ago, installed by me. so it is not a file of the site (not a phpnuke text file).
My quistion is.. is this somthing bad of my site? do I have to do somthing?
thanks for the info/advices |
|
|
|
 |
fkelly

|
Posted:
Mon May 23, 2011 5:34 pm |
|
My only point is that errors like this don't happen randomly. "Htmlspecialchars" does not get transformed into "htmlspecialcharshtmlspecialchars" by chance. Blank lines don't get inserted by chance. If two files are corrupted then it is likely that a lot are.
If you have a site backup you could try restoring it. If you have the distribution files on a PC and you haven't changed the files on the server you could try reloading them. If you have software like Beyond Compare you could do a file by file compare between the original distribution and your server. In any event, you appear to have corrupted files and they will need to be corrected for your site to work correctly.
Yes, something is bad on your site. Yes, you have to do something if you want it to work. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Thu May 26, 2011 8:33 pm |
|
I also do not understand "today I have delete the file... after few day I will find it again"... that, to me, sounds like someone has hacked your site. How else is that file being placed out there again without you, or another site admin, putting it back out there? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
doffer83

|
Posted:
Fri May 27, 2011 4:07 am |
|
montego wrote: | I also do not understand "today I have delete the file... after few day I will find it again"... that, to me, sounds like someone has hacked your site. How else is that file being placed out there again without you, or another site admin, putting it back out there? |
Today I founded it again.. it was deleted by me 2 days ago and it is there now but the error is a little bit different. I think the fix of one of the errors (weblinks module) was okey..
now it looks like this:
Code:[25-May-2011 20:40:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/saintt18/public_html/mysite_org/header.php:32) in /home/saintt18/public_html/mysite_org/includes/sessions.php on line 239
[25-May-2011 20:40:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/saintt18/public_html/mysite_org/header.php:32) in /home/saintt18/public_html/mysite_org/includes/sessions.php on line 240
[25-May-2011 20:40:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/saintt18/public_html/mysite_org/header.php:32) in /home/saintt18/public_html/mysite_org/includes/page_header.php on line 563
[25-May-2011 20:40:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/saintt18/public_html/mysite_org/header.php:32) in /home/saintt18/public_html/mysite_org/includes/page_header.php on line 569
[25-May-2011 20:40:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/saintt18/public_html/mysite_org/header.php:32) in /home/saintt18/public_html/mysite_org/includes/page_header.php on line 570
|
no one has the right to upload files to the server (root ) except me. I feel a little bit worry now about the site.. it is a good running site |
|
|
|
 |
killing-hours

|
Posted:
Fri May 27, 2011 6:49 am |
|
Montego, What this person is "finding" is the error_log that is created by php / nuke. What they are not understanding is the it is "AUTO GENERATED" by php / nuke itself.
No one is uploading files to your server. It is an ERROR LOG to help YOU find the errors with your particular nuke distro.
Quote: | Sends an error message to the web server's error log or to a file. |
http://www.php.net/manual/en/function.error-log.php |
Last edited by killing-hours on Fri May 27, 2011 6:55 am; edited 1 time in total |
|
|
 |
montego

|
Posted:
Fri May 27, 2011 6:55 am |
|
killing-hours, how do you explain this piece:
Quote: |
Today I founded it again.. it was deleted by me 2 days ago and it is there now but the error is a little bit different.
|
This is the one which concerns me. |
|
|
|
 |
killing-hours

|
Posted:
Fri May 27, 2011 6:56 am |
|
easy... "if(!exists { create"
Why would anyone who hacked the account only upload and error log?? That would be odd. As fkelly stated... it could be that the distro is jacked up from the upload. somehow and is causing the errors... but the error_log itself is of no concern. It's what we "turn on" to catch and errors so we can fix them.
Simple test... go to your test site... delete the error_log file in your root folder... create a simple module with some weird made up function name and see if the error_log is regenerated with the new error. |
|
|
|
 |
montego

|
Posted:
Fri May 27, 2011 7:18 am |
|
Good grief... why I had it stuck in my craw that he was deleting one of his "offending" php scripts is beyond me. Not sure what I need to do, but probably a head examination is in order for me... so sorry to cause confusion. I'm outta here... |
|
|
|
 |
killing-hours

|
Posted:
Fri May 27, 2011 7:21 am |
|
Lol... it's no problem. He/she speaks broken english and I don't think they are following what we are suggesting correctly.
I had ya figured and thought you might be missing the entire point... it's been a long week for me too!! So ready for this weekend.
 |
|
|
|
 |
doffer83

|
Posted:
Fri May 27, 2011 7:41 am |
|
Yes my english is not well but no thank to him . He mad me scared and i did much because of his conclution. Any way it is better to think before submite a warning
Quote: |
I don't think they are following what we are suggesting correctly. |
are you sure?  |
|
|
|
 |
killing-hours

|
Posted:
Fri May 27, 2011 7:50 am |
|
So you got it fixed??
Also, what is your language? |
|
|
|
 |
doffer83

|
Posted:
Fri May 27, 2011 7:57 am |
|
a part of is sloved... I am dutch what is your point.. I am not single and I just like girls.. so no time to introduce my self.
back to the error. I have tried to change the session file in the include directory and I will wait untill tomorrow |
|
|
|
 |
killing-hours

|
Posted:
Fri May 27, 2011 8:00 am |
|
doffer83 wrote: | a part of is sloved... I am dutch what is your point.. I am not single and I just like girls.. so no time to introduce my self.
back to the error. I have tried to change the session file in the include directory and I will wait untill tomorrow |
Meow... feisty one. The "point" would have been to translate any other suggestions into your native language... but nvm... no time for that. Hope it all works out. |
|
|
|
 |
montego

|
Posted:
Fri May 27, 2011 11:08 am |
|
doffer83 wrote: | but no thank to him . He mad me scared and i did much because of his conclution. Any way it is better to think before submite a warning
|
I agree and all I can do is apologize, which I have. As you can see from my forum badge, I've been around these forums and *nuke for quite a while. My issue this time was not reading carefully enough due to lack of time - my fault. Sorry for your troubles. |
|
|
|
 |
|