I am having a PHP problem

Discussion in 'PHP' started by ethanator1088, Jul 10, 2009.

  1. #1
    Hello all. I just changed themes on my blog http://PWNEDvideo.com . I am trying to update my blog posts and this is the error I am getting. Do you know how i can fix it?


    Warning: fsockopen() [function.fsockopen]: unable to connect to submissions.ask.com:80 (Connection refused) in /home/secfootb/public_html/pwnedvideo/wp-includes/class-snoopy.php on line 1142

    Warning: Cannot modify header information - headers already sent by (output started at /home/secfootb/public_html/pwnedvideo/wp-includes/class-snoopy.php:1142) in /home/secfootb/public_html/pwnedvideo/wp-includes/pluggable.php on line 770
     
    ethanator1088, Jul 10, 2009 IP
  2. ashraful88

    ashraful88 Active Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    fsockopen() function initiates a socket connection to domain.
    like fsockopen("host", Port number, $errno(string), $errstr(error string), connection time out);
    e.g fsockopen("www.yourdomain.com", 80, $errno, $errstr, 30);

    So, check your file
    /home/secfootb/public_html/pwnedvideo/wp-includes/class-snoopy.php on line 1142

    there u can see the function fsockopen(), see ur parameters are set according to your host or not.
     
    ashraful88, Jul 10, 2009 IP
  3. websea

    websea Peon

    Messages:
    572
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This error is because you are getting output before the line of redirecting page. You can use java script refractors code instead.
     
    websea, Jul 12, 2009 IP
  4. sweet67

    sweet67 Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm getting the same message. I checked my sitemap and it seems that submissions.ask.com is down. I even typed in the url and it couldn't connect to the server. That's probably why that message popped up. Usually when I publish post it's fine. This is the second time this message popped up when I tried to publish a post. Does your posts still publish on the site? Mine does.
     
    sweet67, Jul 12, 2009 IP
  5. zahidraf

    zahidraf Well-Known Member

    Messages:
    450
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #5
    I checked and it is working fine no issue at all
     
    zahidraf, Jul 12, 2009 IP