• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • MySQL Error with Convert Legacy Code to BB-Code

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: MySQL Error with Convert Legacy Code to BB-Code

    • Issue Tools
      • View Changes
    1. issueid=489 April 9, 2009 6:24 AM
      Mokonzi Mokonzi is offline
      Senior Member
      MySQL Error with Convert Legacy Code to BB-Code
      MySQL Error with Convert Legacy Code to BB-Code for Mediawiki

      After initiating the option to Convert Legacy Code to BB-Code for Mediawiki and setting the limit to 50, I get the following SQL error:
      Code:
      Database error in vBulletin 3.7.6:
      
      Invalid SQL:
      
      		SELECT post.postid, post.pagetext, thread.forumid, thread.title,
      			thread.firstpostid, thread.threadid,
      			post.userid, user.usergroupid, user.membergroupids
      		FROM vb3_thread AS thread
      		LEFT JOIN vb3_post AS post ON (post.postid = thread.firstpostid)
      		LEFT JOIN vb3_user AS user ON (post.userid = user.userid)
      		WHERE thread.threadid IN ()
      		GROUP BY thread.threadid
      		ORDER BY post.postid DESC
      		LIMIT 50,50;
      
      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 ')
      		GROUP BY thread.threadid
      		ORDER BY post.postid DESC
      		LIMIT 50,50' at line 7
      Error Number  : 1064
      Request Date  : Thursday, April 9th 2009 @ 11:18:28 AM
      Error Date    : Thursday, April 9th 2009 @ 11:18:29 AM
      Script        : hxxp://www.mysite.com/forum/admincp/vaultwiki.php?do=convert&startat=50&pp=50
      Referrer      : hxxp://www.mysite.com/forum/admincp/vaultwiki.php?do=convert
      IP Address    : ????????
      Username      : ???????
      Classname     : vB_Database
      MySQL Version : 5.0.67-community
    Issue Details
    Issue Number 489
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Admin Panel
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 2.2.2
    Fixed Version 2.2.3
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 9, 2009 9:58 AM
      Mokonzi Mokonzi is offline
      Senior Member
      To add to this, once it was started, it ran through the first 50 posts... then the error occurred.

      Since that error, all the symbols have been replaced in the wiki entries, " becomes ".

      This breaks the BBCode that uses the " to create the options for that code.
      Reply Reply  
    2. April 9, 2009 1:46 PM
      pegasus pegasus is offline
      VaultWiki Team
      According to my understanding, the MySQL error would only occur when it has reached the end of all articles that need processing. Fixed for the next build.

      As for the ", this is a problem where HTML is disabled in the converted article's forum, yet it was at least partially enabled in MediaWiki. Since it does not actually parse the article, the " is left behind and becomes fair game for htmlspecialchars_uni().

      To fix this, in vault/special_class_bbcode.php, find:
      PHP Code:
      if (!$do_html AND !$vault->parser['fake_tag_list']) 
      Replace with:
      PHP Code:
      if (!$do_html AND !$vault->parser['fake_tag_list'] AND !$vault->parser['converted_text']) 
      Reply Reply  
    3. April 9, 2009 1:52 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Ok, that makes sense. I'll update the special_class_bbcode.php file and test it on a mediawiki article copied into the VaultWiki.
      Reply Reply  
    4. April 9, 2009 1:59 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Getting this error with Legacy Codes enabled after running the Convert Tool:

      Code:
      Warning: vB_WikiCodeParser::require_once([path]/vault/special_legacy_1.php) [vb-wikicodeparser.require-once]: failed to open stream: No such file or directory in [path]/vault/special_class_bbcode.php on line 455
      
      Fatal error: vB_WikiCodeParser::require_once() [function.require]: Failed opening required '/home/mysite/public_html/forum/vault/special_legacy_1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/forum/vault/special_class_bbcode.php on line 455
      Reply Reply  
    5. April 9, 2009 2:01 PM
      Mokonzi Mokonzi is offline
      Senior Member
      To add to that, the Settings, after the above is set, show all three options, Disabled, Nuwiki, Mediawiki all are not selected, not sure how it's possible, but none are.
      Reply Reply  
    6. April 14, 2009 1:55 PM
      pegasus pegasus is offline
      VaultWiki Team
      Make a selection and the error will go away. This is also fixed for the next build where a previous value of 1 will default to "MediaWiki".
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 10:20 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.