![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
Php problem... WTF!
ok, i've been working my ass off trying to get this damn site working.. then finally, it's done! finally fixed all the bugs.. or so i thought!
I try to login to my admin section, and when i get to the index.php of the admin directory, i get this message: Warning: Cannot send session cookie - headers already sent by (output started at /home/virtual/site5/fst/var/www/get_env.php:1) in /home/virtual/site5/fst/var/www/html/tagadmin/index.php on line 14 What in fuck's name does that mean! And how do i fix it? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Nov 2001
Posts: 2,531
|
What script(s) are you using?
__________________
This Space for Rent |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
It's called kDDL. It's a direct downloads script (intended for warez)
I got it back when i was a warez webmaster. But it's pretty much idealy suited for the TGP i wanna run, so i figured.. hey.. why not.. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jan 2002
Location: Europe
Posts: 422
|
It probably sent some text or blank space before you do a header("location"); redirect or similair..
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
hmm.. any idea how to fix it though? :D
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jan 2002
Location: Europe
Posts: 422
|
Check the html source in your browser if it outputs some strange text before the php warning, could even be " " blank space etc that you miss at first.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
This is the source (after i've attempted to login, so there's another error)
PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Nov 2001
Posts: 2,531
|
http://www.faqts.com/knowledge_base/...d/14388/fid/51
Quote:
__________________
This Space for Rent |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jan 2002
Location: Europe
Posts: 422
|
Yep seems like you put the stuff in wrong order.. set session cookie first then html output.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
Cheers guys. I'll see if i can fix it now
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
ok.. i'm stumped..
this is from the index.php of the admin directory: PHP Code:
PHP Code:
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Nov 2001
Posts: 2,531
|
What's on line 14 of index.php?
__________________
This Space for Rent |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Jan 2002
Location: Europe
Posts: 422
|
No errors in config.php or db.inc.php that outputs something?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
Hey.. i dunno how it happened.. but the admin index.php was modified.. i'm not sure if that's supposed to happen.. but anyways. i just replaced hte index.php from admin and the get_env.php from the originals on my hard disk, and it's fixed the problem..
Any idea why this happened in the first place? and how do i prevent it from happening. cheers |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Jan 2002
Location: Europe
Posts: 422
|
![]() No idea. But if you have any more php problems hit me up on icq.
|
![]() |
![]() ![]() ![]() ![]() ![]() |