Results 1 to 6 of 6

Warning: gzwrite(): not a valid stream resource

This is a discussion on Warning: gzwrite(): not a valid stream resource within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; Warning : gzopen(/home/ domain /public_html/vbforum/vbseo_sitemap/data/sitemap_1.xml.gz) [ function.gzopen ]: failed to open stream: Permission denied in /home/domain/public_html/vbforum/vbseo_sitemap/vbseo_sitemap_functions.php on line 579 Warning ...

  1. #1
    Junior Member ddolliver's Avatar
    Real Name
    Doug Boss
    Join Date
    Mar 2007
    Location
    TX
    Posts
    8
    Liked
    0 times

    Warning: gzwrite(): not a valid stream resource

    Warning: gzopen(/home/domain/public_html/vbforum/vbseo_sitemap/data/sitemap_1.xml.gz) [function.gzopen]: failed to open stream: Permission denied in /home/domain/public_html/vbforum/vbseo_sitemap/vbseo_sitemap_functions.php on line 579

    Warning: gzopen(/home/domain/public_html/vbforum/vbseo_sitemap/data/urllist.txt.gz) [function.gzopen]: failed to open stream: Permission denied in /home/domain/public_html/vbforum/vbseo_sitemap/vbseo_sitemap_functions.php on line 583

    When running the generator I get a ton of errors starting with

    Warning
    : gzwrite(): supplied argument is not a valid stream resource in /home/domain/public_html/vbforum/vbseo_sitemap/vbseo_sitemap_functions.php on line 593

    Warning: gzwrite(): supplied argument is not a valid stream resource in /home/domain/public_html/vbforum/vbseo_sitemap/vbseo_sitemap_functions.php on line 604

    Warning: gzwrite(): supplied argument is not a valid stream resource in /home/domain/public_html/vbforum/vbseo_sitemap/vbseo_sitemap_functions.php on line 607


    the map runs and generates an entry in the log but when I click it I get

    You don't have permission to access /vbforum/vbseo_sitemap/data/sitemap_index.xml.gz on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    Make sure that you have set 0777 permissions to vbseo_sitemap/data/ folder.

  3. #3
    Junior Member ddolliver's Avatar
    Real Name
    Doug Boss
    Join Date
    Mar 2007
    Location
    TX
    Posts
    8
    Liked
    0 times
    Yes I confirmed that after searching here

    By the way any search conducted on your forum with an error number in it results in 497 + results - and NONE of them really contain that number - at least not the first few pages

    We just moved the domain to a new centos 5 php 5 server - although I cant be sure this wasnt happening on old server

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    If you have any files inside data/ folder, set their permissions to 0666 as well.
    By the way any search conducted on your forum with an error number in it results in 497 + results - and NONE of them really contain that number - at least not the first few pages
    That number is excluded from the search, that's why you can't find it.

  5. #5
    Junior Member ddolliver's Avatar
    Real Name
    Doug Boss
    Join Date
    Mar 2007
    Location
    TX
    Posts
    8
    Liked
    0 times
    they were all 777

    Just changed them to 666

    still same problem

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Please open a support ticket with FTP access for troubleshooting.

Similar Threads

  1. failed to open stream
    By Rukas in forum Custom Rewrite Rules
    Replies: 13
    Last Post: 01-11-2008, 07:53 AM
  2. gzwrite problem
    By Lazer in forum Troubleshooting
    Replies: 3
    Last Post: 10-23-2006, 07:23 PM
  3. Failed to open stream messages
    By azarl in forum Troubleshooting
    Replies: 1
    Last Post: 07-24-2006, 11:38 AM
  4. Error open stream
    By TraumTeam in forum Troubleshooting
    Replies: 9
    Last Post: 07-07-2006, 08:07 AM

Posting Permissions

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