Results 1 to 12 of 12

vBSEO Sitemap 2.5: PHP Deprecated: Function set_magic_quotes_runtime() is deprecated

This is a discussion on vBSEO Sitemap 2.5: PHP Deprecated: Function set_magic_quotes_runtime() is deprecated within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I updated to latest PHP stable version which is PHP 5.3.1 and i'm getting a lot of these errors in ...

  1. #1
    Junior Member
    Real Name
    Juan
    Join Date
    Dec 2008
    Posts
    28
    Liked
    0 times

    vBSEO Sitemap 2.5: PHP Deprecated: Function set_magic_quotes_runtime() is deprecated

    I updated to latest PHP stable version which is PHP 5.3.1 and i'm getting a lot of these errors in logs:

    2010/01/08 09:53:32 [error] 10593#0: *998646 FastCGI sent in stderr: "PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/html/vbseo_sitemap/vbseo_getsitemap.php on line 70" while reading response header from upstream, client: 66.xxx.xx.xx. request: "GET /sitemap_10.xml.gz HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000"

    How can fix this?

    Thanks.

  2. #2
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    Hello,

    I do not think that we have release a new sitemap generator since 5.3 came out. I will flag this for a developer and be sure that it is fixed for our 2.6 version.
    The Forum Hosting - Forum Hosting from the Forum Experts

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    As a temporary fix, please try this:

    in vbseo_getsitemap.php

    find
    Code:
    error_reporting(E_ALL&~E_NOTICE);
    replace with

    Code:
    @error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);

  4. #4
    Senior Member
    Real Name
    Hemanth Jose
    Join Date
    Dec 2006
    Location
    UK
    Posts
    116
    Liked
    0 times
    Thanks Brian. You saved my day.

    But this should be properly documented for others. I was banging my head on the 'incorrect site map error' for quite long time.

  5. #5
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    Glad I found this thread, worked for me also. That was a good exercise to get to the bottom of this problem.
    Maybe put a conditional there in a future version of that file so its automatically detected to switch?
    I would imagine many have this problem.

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    This is already fixed in 2.6

  7. #7
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    OK, thanks for the info.
    On this particular site, I had just downloaded and installed the latest stable version, 2.5.
    I notice 2.6 is still Beta and as such, not advised for production sites, nor with support.
    When it's released as stable, I will install it.
    But thank you for clarifying.
    Even though you are working on 2.6 maybe a 2.5.2 is in order as quick patch? Something to think about..
    Anyway keep up the great work on a great product. Thanks again.

  8. #8
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    If you're using vbseo 3.5.x, you should be using sitemap 2.6, beta or not. 2.5 is likely giving you improper urls /a/ in them. While beta, it is a fairly stable product and recommended for use in production.

  9. #9
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    Thanks, I followed all instructions and never got that memo, off to upgrade now, sigh.

  10. #10
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    There are two different rewrite rules, glad I noticed (instructions say that rewrite is in place already if you use vbseo, which I do, but the vbseo installed rewrite rule is different). Which should I use? Thanks in advance.

    Code:
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

  11. #11
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    They are basically the same thing. one just has an _ in it (which all files have) and is the one you should use so as to be more specific in case you have other sitemap files from another system, etc.

  12. #12
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    Hi Brian, thanks for all this info, you guys rock.

Similar Threads

  1. Custom Rewrite Function (VBSEO Like)
    By 2005 in forum General Discussion
    Replies: 1
    Last Post: 10-15-2009, 07:09 PM
  2. Replies: 1
    Last Post: 11-14-2008, 03:08 AM
  3. Replies: 1
    Last Post: 12-12-2006, 07:21 AM
  4. Sitemap Function to Map vBPicGallery
    By noppid in forum Sitemap Features Archive
    Replies: 1
    Last Post: 11-02-2006, 05:07 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
  •