Page 1 of 5 1 2 3 4 5 LastLast
Results 1 to 15 of 65

sitemap no more pinging since upgrade 2.0 => 2.1

This is a discussion on sitemap no more pinging since upgrade 2.0 => 2.1 within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; We are some people here : vBSEO Google/Yahoo Sitemap Generator - Page 32 - vBulletin.org Forum we have just upgraded ...

  1. #1
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times

    sitemap no more pinging since upgrade 2.0 => 2.1

    We are some people here :

    vBSEO Google/Yahoo Sitemap Generator - Page 32 - vBulletin.org Forum

    we have just upgraded to 2.0 to 2.1 and

    Code:
    Google ping: FAILED.
    Yahoo ping: FAILED.
    Ask ping: FAILED.
    Moreover ping: FAILED.
    known bug ? I have just uploaded new files and imported the xml as usual..

  2. #2
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    fixed it,

    had to change

    allow_url_fopen = Off to On

    I guess the ping method changed.

  3. #3
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Yes. That option is also required to be On for vBulletin's option of upload an avatar (or a post attachment) from a URL to work.

  4. #4
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    ho ok thanks for the info Keith, reason I did not caught it previously was probably my board is actually off under construction with VPS under setting up, thanks for the clarification

  5. #5
    Member fide's Avatar
    Real Name
    Markus Jung
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    68
    Liked
    4 times
    My provider does not allow allow_url_fopen = On - even for Managed Servers. Is there any alternative - the pings worked well with the old sitemap version.

    Markus

  6. #6
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    CURL - DreamHost but I think you'll needd some code changes, cant' help you unfortunely to mod the sitemap PHP code, no enough knowledge, you may look at a VPS solution to administrate yourself you httpd smtp etc that's free of restrictions
    Have been like you in a shared environment some times ago and have been bored of all restrictions that didnt run my site as I want, since VPS all is so better

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    you can copy'n'paste vbseo_query_http() function code in vbseo_sitemap_functions.php file from older Sitemap Generator version.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #8
    Member fide's Avatar
    Real Name
    Markus Jung
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    68
    Liked
    4 times
    I replaced

    PHP Code:
        function vbseo_query_http($url)
        {
            return @
    implode(''file($url));
        } 
    in the new version with

    PHP Code:
        function vbseo_query_http($url$retcont false)
        {
               
    ini_set('default_socket_timeout'5);
               
    $purl parse_url($url);
            
    $connsocket = @fsockopen($purl['host'], 80$errno$errstr5);
               
    $start 0;
               
    $timeout 50;
               while(
    $start $timeout)
               {
                
    $start++;
                if (
    $connsocket)
                {
                 
    $start 100;
                 
    $out "GET ".$url." HTTP/1.0\n";
                 
    $out .= "Host: ".$purl['host']."\n";
                    
    $out .= "Referer: http://".$purl['host']."/\n";
                 
    $out .= "Connection: Close\n\n";
                  
    $inp '';
                 @
    fwrite($connsocket$out);
                 while (!
    feof($connsocket)) {
                    
    $inp .= @fread($connsocket4096);
                 }
                 @
    fclose($connsocket);
                }

            }

            
    preg_match("#^(.*?)\r?\n\r?\n(.*)$#s",$inp,$hm);
            
    $headersstr $hm[1] ? $hm[1] : $inp;
            
    $headers split("\r?\n"$headersstr);
             list(
    $proto$code) = sscanf($headers[0], '%s %s');

            return (
    $code==200) ? ($retcont $hm[2] : true) : false;
        } 
    from the old one.

    The ping result is still "FAILED".

    Markus

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Try to replace the last line with:
    PHP Code:
            return $hm[2] ; 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  10. #10
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    Oleg I think you should introduce in a next version the possibility to switch from the new url pinging to the old one, I see a few peoples on vbulletin.org having problems with v2.1 due to some crap shared hosters restrictions on this php.ini setting.

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Yes, both methods will be included in the next version.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  12. #12
    Member fide's Avatar
    Real Name
    Markus Jung
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    68
    Liked
    4 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Try to replace the last line with:
    PHP Code:
            return $hm[2] ; 
    Thank you - that worked:

    Google ping: Successful.
    Yahoo ping: Successful.
    Ask ping: Successful.
    Moreover ping: FAILED.
    Moreover ist not that important to me...

    Markus

  13. #13
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    someone could help me please sitemap is no more PINGING again but this time I have allow_url_fopen still on On and I notice my RSS urls feeds that are being autoposted on the forum are no more parsed and posted, should be related to the same issue I have with sitemap but I do not seewhat's happening, what I changed is blocking sitemap llinks and rss feeds links being checked but there's nothing in my lighttpd logs and php_logs, I'm in a chroot I have probably changed something wronlgy but cant see what yet , chmods are oks

  14. #14
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Did you apply the modification mentioned above?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  15. #15
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    no not needed , I have changed something other I think not related to sitemap but probably to PHP or lighttpd because the vbulletin RSS feeds systems is also no more posting new feeds but can't find out why yet

Page 1 of 5 1 2 3 4 5 LastLast

Similar Threads

  1. vBSEO Sitemap Generator 2.0 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 18
    Last Post: 12-11-2007, 02:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •