Results 1 to 12 of 12

db error and sitemap don't generated

This is a discussion on db error and sitemap don't generated within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; hi i recently install vbseo and sitemap in a vb 4.1.5 install and I saw sitemap don't works and when ...

  1. #1
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    125
    Liked
    0 times

    Question db error and sitemap don't generated

    hi
    i recently install vbseo and sitemap in a vb 4.1.5 install and I saw sitemap don't works and when i visit vbseo admin [sitemap reports], and try generate a sitemap I receive this error

    Database error in vBulletin 4.1.5:

    Invalid SQL:

    SELECT COUNT(*) as cnt,max(lastpost) as lastupdate
    FROM vbbeta_thread AS thread
    INNER JOIN vbbeta_tagcontent AS tagcontent ON
    (tagcontent.tagid = 1 AND tagcontent.contentid = thread.threadid)
    WHERE thread.forumid IN()
    AND thread.visible = 1
    AND thread.sticky IN (0, 1)
    AND thread.open <> 10
    GROUP BY tagcontent.tagid;

    MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
    AND thread.visible = 1
    AND thread.sticky IN (0, 1)' at line 5
    Error Number : 1064

    Request Date : Thursday, August 11th 2011 @ 07:56:13 PM
    Error Date : Thursday, August 11th 2011 @ 07:56:13 PM
    Script : http://beta.riofotografico.com.br/vb...eo_sitemap.php

    Referrer : http://beta.riofotografico.com.br/vb...eo_sitemap.php
    - Show quoted text -
    the
    http://beta.riofotografico.com.br/sitemap_index.xml
    don't exist!

    probably I'm making something wrong
    really I need help
    thank you in advance

  2. #2
    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
    PLease try re-importing the sitemap product file with over write
    then disable tags
    re-genreate
    then re-enable tages
    and re-generate

    it should complete at this point.

  3. #3
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    125
    Liked
    0 times
    hi brian

    i do all steps
    - when I do first time [without tag pages ] works
    - when I enable tags page error again

    Database error in vBulletin 4.1.5:


    Invalid SQL:


    SELECT COUNT(*) as cnt,max(lastpost) as lastupdate
    FROM vbbeta_thread AS thread
    INNER JOIN vbbeta_tagcontent AS tagcontent ON
    (tagcontent.tagid = 1 AND tagcontent.contentid = thread.threadid)
    WHERE thread.forumid IN()
    AND thread.visible = 1
    AND thread.sticky IN (0, 1)
    AND thread.open &lt;&gt; 10
    GROUP BY tagcontent.tagid;


    MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
    AND thread.visible = 1
    AND thread.sticky IN (0, 1)' at line 5
    Error Number : 1064
    Request Date : Thursday, August 11th 2011 @ 09:02:35 PM
    Error Date : Thursday, August 11th 2011 @ 09:02:35 PM
    Script : http://beta.riofotografico.com.br/vb...eo_sitemap.php
    Referrer : vBSEO Search Engine XML Sitemap for vBulletin
    IP Address : 177.40.167.53
    Username : Não Registrado(s)
    Classname : vB_Database
    MySQL Version :

  4. #4
    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
    do you have a tags file in the /data/ folder? it may be one particular invald tag that is causing the issue.

  5. #5
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    125
    Liked
    0 times
    hi brian
    no - I don't have sitemap_tag_xml.gz
    i need create one? if yes ... you can told me how?
    thanks

  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
    Do you have publicly available forums? It looks like its trying to find forumIds, but returning nothing.

  7. #7
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    125
    Liked
    0 times
    no
    but I can create a admin login to you
    I previously use impex to import data from phpbb - this can afect tags?

  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
    I don't beleive tags are imported from impex, but i could be wrong. Do you HAVE tags?

  9. #9
    Senior Member
    Real Name
    joao barroca
    Join Date
    Apr 2006
    Location
    rio de janeiro
    Posts
    125
    Liked
    0 times
    Yes Brian,
    I have tags13-08-2011-07-49-30.jpg

  10. #10
    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
    Please open a ticket with login details for further troubleshooting.

  11. #11
    Junior Member
    Real Name
    Peter
    Join Date
    Feb 2008
    Posts
    22
    Liked
    0 times
    Hi,

    Any update on resolution for this issue? I have the same problem.

    <!-- Database error in vBulletin 3.8.7: Invalid SQL: SELECT COUNT(*) as cnt,max(lastpost) as lastupdate FROM thread AS thread INNER JOIN tagthread AS tagthread ON (tagthread.tagid = 1 AND tagthread.threadid = thread.threadid) WHERE thread.forumid IN() AND thread.visible = 1 AND thread.sticky IN (0, 1) AND thread.open &lt;&gt; 10 GROUP BY tagthread.tagid; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND thread.visible = 1 AND thread.sticky IN (0, 1)' at line 5 Error Number : 1064 Request Date : Tuesday, November 29th 2011 @ 01:42:28 PM Error Date : Tuesday, November 29th 2011 @ 01:42:28 PM Script : http://xxxxxxxxxxxxx/vbseo_sitemap/vbseo_sitemap.php Referrer : IP Address : xxxxxxxxxxxxx Username : Unregistered Classname : vB_Database_MySQLi MySQL Version : -->

  12. #12
    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
    RE- import the product file. The sitemap generator, although not version specific, needs to be updated with the product re-import after moving to vb4 as well, as the db table names have changed.

    clear out the xml.gz files, and progress.dat, and it should then regenerate.

Similar Threads

  1. vBulletin 4.x Url error generated
    By Nichiren in forum Troubleshooting
    Replies: 1
    Last Post: 04-28-2011, 02:40 PM
  2. vBulletin 3.x Moved to a new host - Sitemap is not generated - Page Not found Error
    By thorptech in forum Troubleshooting
    Replies: 3
    Last Post: 08-16-2010, 08:07 AM
  3. vBulletin 4.x Archive Links In Sitemap Generated are .html/ - gives 404 error
    By CedricFP in forum Troubleshooting
    Replies: 2
    Last Post: 07-01-2010, 04:14 AM
  4. Replies: 1
    Last Post: 11-11-2009, 01:57 AM
  5. SQL Error generated possibly by Sitemap cron job
    By JWL in forum Bug Reporting
    Replies: 4
    Last Post: 12-11-2008, 09:48 PM

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
  •