Page 2 of 2 FirstFirst 1 2
Results 16 to 26 of 26

Database Error when running generator

This is a discussion on Database Error when running generator within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; Which one Ceri, the root directory or the data directory .htaccess?...

  1. #16
    Junior Member
    Real Name
    Rolf
    Join Date
    Jun 2008
    Location
    Reading, Berkshire
    Posts
    24
    Liked
    0 times
    Which one Ceri, the root directory or the data directory .htaccess?

  2. #17
    Junior Member
    Real Name
    Rolf
    Join Date
    Jun 2008
    Location
    Reading, Berkshire
    Posts
    24
    Liked
    0 times
    This is the one from the root directory

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    RewriteEngine On
    RewriteRule ^view_(.*).htm$ view.php?pg=$1
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    deny from 92.100.81.210
    The one in the data directory says "deny from all", what should it read.?

  3. #18
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Quote Originally Posted by rolfw View Post
    This is the one from the root directory

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    RewriteEngine On
    RewriteRule ^view_(.*).htm$ view.php?pg=$1
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    deny from 92.100.81.210
    The one in the data directory says "deny from all", what should it read.?
    Hi,

    No both of these are looking fine, if I am honest I am not sure what the problem is but when I view http://www.thamesvalleybirds.co.uk/sitemap_index.xml.gz I get a 404 error then redirected to your forum homepage, Marco has confirmed he doesn't get this problem and that it loads find. But then when checking with HTTP Header Viewers also some get 301 others get 200..

    By the error that google is showing it seems they are being redirected to your forum home also which is why its complaining about the HTML content.

  4. #19
    Junior Member
    Real Name
    Rolf
    Join Date
    Jun 2008
    Location
    Reading, Berkshire
    Posts
    24
    Liked
    0 times
    Could it be a folder permissions problem perhaps?

    For example what permissions should the tar.gz have, they are 666 at the moment, the data folder is 777

  5. #20
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Please make sure vbseo_sitemap folder is set to chmod 755 and vbseo_sitemap/data folder is set to chmod 777
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  6. #21
    Junior Member
    Real Name
    Rolf
    Join Date
    Jun 2008
    Location
    Reading, Berkshire
    Posts
    24
    Liked
    0 times
    Yep, just checked, both are as you have suggested already.

    Not knowing how Google operate, do they download the tar.gz, or do they execute it and download the contents? In which case, should the tar.gz files be something other than 666?

  7. #22
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Can you please try using the following .htaccess in root

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    RewriteRule ^view_(.*).htm$ view.php?pg=$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    deny from 92.100.81.210
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  8. #23
    Junior Member
    Real Name
    Rolf
    Join Date
    Jun 2008
    Location
    Reading, Berkshire
    Posts
    24
    Liked
    0 times
    Thanks Mert, have uploaded your revised .htaccess and resubmitted, looks promising, as it's been 20 minutes or so and no error message yet, still showing the clock

  9. #24
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Your sitemap files started to work correct after the .htaccess change. Hopefully this should resolve the issue.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  10. #25
    Junior Member
    Real Name
    Rolf
    Join Date
    Jun 2008
    Location
    Reading, Berkshire
    Posts
    24
    Liked
    0 times
    Thanks Mert and everyone, much appreciated, hopefully this has done the trick.

  11. #26
    Junior Member
    Real Name
    Rolf
    Join Date
    Jun 2008
    Location
    Reading, Berkshire
    Posts
    24
    Liked
    0 times
    Just to confirm that it's all up and working, thanks again.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Database Error When Running SiteMap Generator
    By ozmazdaclub in forum Troubleshooting
    Replies: 5
    Last Post: 01-01-2010, 10:26 PM
  2. Database error after running sitemap
    By Big-Pete in forum Troubleshooting
    Replies: 1
    Last Post: 07-01-2009, 02:26 PM
  3. Database error when running sitemap generator.
    By Lilmikeishere in forum Troubleshooting
    Replies: 3
    Last Post: 03-22-2009, 09:32 AM
  4. Database error when running sitemap generator
    By Kaos in forum Troubleshooting
    Replies: 6
    Last Post: 08-22-2008, 05:13 PM
  5. Running sitemap generator gives database error
    By T2DMan in forum Troubleshooting
    Replies: 2
    Last Post: 07-01-2008, 08:39 AM

Tags for this Thread

Posting Permissions

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