• 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 4.x Series
    • Bug
    • Import from vw3 fails with database error

    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: Import from vw3 fails with database error

    • Issue Tools
      • View Changes
    1. issueid=3589 February 17, 2014 7:04 AM
      gyro gyro is offline
      New Member
      Import from vw3 fails with database error
      Import from vw3 fails with database error

      When importing from VaultWiki 3, the import fails with the following error when importing the articles. This is now rendering our Wiki useless.
      Code:
      SELECT SQL_CALC_FOUND_ROWS `t`.`threadid` AS `threadid`,`t`.`prefixid` AS `prefixid`,`t`.`title` AS `title`,`t`.`dateline` AS `dateline`,`t`.`lastposter` AS `lastposter`,`t`.`replycount` AS `replycount`,`t`.`open` AS `open`,`t`.`visible` AS `visible`,`t`.`views` AS `views`,`t`.`lastpostid` AS `lastpostid`,`t`.`lastpost` AS `lastpost`,`t`.`forumid` AS `forumid`,`t`.`firstpostid` AS `firstpostid`,`t`.`lastposterid` AS `lastposterid`,`f`.`forumid` AS `forumid`,`f`.`title_clean` AS `title_clean`,`p`.`pagetext` AS `pagetext`,`p`.`postid` AS `postid`,`p`.`userid` AS `userid`,`p`.`parentid` AS `parentid`,`p`.`threadid` AS `threadid`,`u`.`userid` AS `userid`,`u`.`username` AS `username` FROM `thread` `t`  LEFT JOIN `forum` `f` ON (`t`.`forumid` = `f`.`forumid`) 
       LEFT JOIN `post` `p` ON (`t`.`threadid` = `p`.`threadid` AND `p`.`parentid` = 0) 
       LEFT JOIN `user` `u` ON (`p`.`userid` = `u`.`userid`)   WHERE  `f`.`forumid` IN (162)  AND `t`.`visible` = 1 AND  = 1 AND `t`.`open` <> 10 ORDER BY `t`.`title` ASC  LIMIT 0,200;
      It looks like the problem is with the "visible = 1 AND = 1" in the where clause. A field name seems to be missing.
    Issue Details
    Issue Number 3589
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Importing
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Gamma 2
    Fixed Version 4.0.0 Gamma 3
    Milestone VaultWiki 4 Gamma X
    Software DependencyvBulletin 4.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)


    Page 3 of 3 FirstFirst Previous 123


    1. May 15, 2014 8:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      Many issues with the uninstaller were fixed in Gamma 4 and 5, like it leaving behind data that would make re-install impossible. So you would need the gamma 5 version of the uninstall file at least in place, in order to uninstall VaultWiki 4 fully.

      I'm not sure what your particular reasons for uninstalling at this point are (the last I heard was about 3 months ago when a bug you had deleting comments was confirmed resolved by you), but it is unfortunate that you have not kept up with the new releases. There have been many fixes and improvements since Gamma 2:
      Code:
      4.0.0 Gamma 5
      =============
      - New Feature: Installer adds 1 public area to help get started
      - New Feature: Most Wiki Contributions tab for XenForo Members list
      - New Feature: Enable/Disable Reporting for Wiki content
      - New Feature: Enable/Disable Wiki Subscriptions
      - New Feature: Enable/Disable RSS Feeds
      - New Feature: Setting for Maximum Contributors Displayed
      - Changed: installer adds 1 system area for pre-sets
      - Changed: minimum packet requirement based on expected query size
      - Fixed Bug: Serious - can't delete subscriptions
      - Fixed Bug: missing descriptions of protect options
      - Fixed Bug: collaboration prevention blocks wiki moderators
      - Fixed Bug: fatal error with reputation enabled in vB
      - Fixed Bug: wiki items break "Activity Stream" forum block in vB
      - Fixed Bug: phrases missing for wiki block config in vB
      - Fixed Bug: fatal error removing book chapters
      - Fixed Bug: read more link points to forum home
      - Fixed Bug: wiki pages not showing in Activity Stream in vB
      - Fixed Bug: Create tab uses options from first area only
      - Fixed Bug: Create tab circumvents area's allowed prefixes
      - Fixed Bug: Preview button only works once in vB < 4.1.4
      - Fixed Bug: URL conflicts between attachments may appear ambiguous
      - Fixed Bug: formatting issues on Special:ImageList
      - Fixed Bug: message too long error in WYSIWYG mode in XF
      - Fixed Bug: moderator auth not showing in vB4
      - Fixed Bug: imported attachments from vB3 are empty
      - Fixed Bug: pagenav wraps to new line in XF
      - Fixed Bug: Settings > Notifications don't do anything
      - Fixed Bug: wiki integration shows anyway on some error pages
      - Fixed Bug: URLs with ASCII-range special characters are double-encoded
      - Fixed Bug: possible editor button conflicts in XF
      - Fixed Bug: file browser won't open after canceled upload
      - Fixed Bug: AJAX prefix delete doesn't update the list
      - Fixed Bug: IMG tags don't work in wiki pages in XF
      - Fixed Bug: BB-Codes not translated in pages during VW3 import
      - Fixed Bug: VaultWiki TABLE BB-Code overwrites vB4 TABLE on install
      - Fixed Bug: text with ASCII-range special characters is double-encoded in XF
      - Fixed Bug: subscriptions only use default notification type
      - Fixed Bug: changes on Subscribe tab don't save
      - Fixed Bug: invalid user ID on Special:Contributions
      - Fixed Bug: AJAX prefix edit form breaks after first dialog
      - Fixed Bug: database error entering BB-Code tag for prefix
      - Fixed Bug: no permission to tag wiki pages in vB4
      - Fixed Bug: reverting permissions redirects to non-existent page
      - Fixed Bug: file browser won't open in some browsers
      - Fixed Bug: area's content-related options don't save
      - Fixed Bug: user subscription preferences don't change default view
      - Fixed Bug: improper new line rendering for wiki index
      - Fixed Bug: after AJAX area edit, area doesn't reappear in the list
      - Fixed Bug: phrase missing for wiki disabled state
      - Fixed Bug: temporary tables not removed by uninstall
      - Fixed Bug: database error reverting CSS in vB4
      - Fixed Bug: invalid argument for pre-Gamma-4 wiki activity block if never edited
        
      
      4.0.0 Gamma 4
      =============
      - New Feature: Lite Mode
      - New Feature: Add First Post when Starting Discussion
      - New Feature: Use Wiki Sidebar Blocks as Forum Widgets
      - New Feature: Synonyms for Page Sections
      - New Feature: Check page existence with [VAR]id|Search for Title[/VAR]
      - New Feature: Language Icons Automatically Select
      - New Feature: File Health Check / Suspect File Versions
      - Changed: compatibility with [bd] Widget Framework
      - Changed: compatibility with dbSEO
      - Changed: reduced up to 3 queries in vB
      - Fixed Bug: can only choose Special for new pages
      - Fixed Bug: empty subscription mails in XF
      - Fixed Bug: subscription mails don't use user language
      - Fixed Bug: database error hard-deleting soft-deleted comments
      - Fixed Bug: page can be too long for editor switch in XF
      - Fixed Bug: bb-code options cache doesn't update in XF
      - Fixed Bug: cache doesn't rebuild if not currently loaded
      - Fixed Bug: extra line breaks in plainChildren blocks in XF
      - Fixed Bug: subscription mark is too large in XF
      - Fixed Bug: can't update text via URL Conflicts admin page
      - Fixed Bug: regression - wiki link previews don't work
      - Fixed Bug: list preview can be longer than list
      - Fixed Bug: 1 extra query due to common specials not cached
      - Fixed Bug: some caches never load from datastore
      - Fixed Bug: PLAIN doesn't work in wiki pages in XF
      - Fixed Bug: missing link to RSS feeds
      - Fixed Bug: CSS changes never apply in vB3
      - Fixed Bug: forum RSS feeds broken in XF
      - Fixed Bug: regression - all section edits are mismatches
      - Fixed Bug: empty sub-forum lists on forum list in XF
        
      
      4.0.0 Gamma 3
      =============
      - New Feature: Setting to Turn Wiki Sidebar On/Off
      - New Feature: Disable Individual Wiki Content-Types
      - New Feature: Headline Links
      - Changed: updated to YUI 3.15.0
      - Changed: moderation controls use standards (XF)
      - Changed: animated section jumps
      - Fixed Bug: XSS vulnerability (vB)
      - Fixed Bug: island pages inaccessible if pretty URLs on (vB)
      - Fixed Bug: collapse doesn't work for table of contents (vB)
      - Fixed Bug: uncached templates (vB)
      - Fixed Bug: top control doesn't jump to top
      - Fixed Bug: special page headlines don't use icons
      - Fixed Bug: editor double-encodes UTF-8 chars (XF)
      - Fixed Bug: Legacy code not parsed (XF)
      - Fixed Bug: search results not styled (vB4)
      - Fixed Bug: bb_attach.gif is missing
      - Fixed Bug: comments not imported from VW3
      - Fixed Bug: video & image buttons missing from editor (vB)
      - Fixed Bug: imported areas have comments disabled
      - Fixed Bug: island URLs break after upgrade from VW3
      - Fixed Bug: no permission to add attachments to comments (vB4)
      - Fixed Bug: page list eats up memory
      - Fixed Bug: autolink discovery slow for long page lists
      - Fixed Bug: database error viewing Special:MostContributions
      - Fixed Bug: install hangs on attach storage error
      - Fixed Bug: changing area root corrupts childlist cache
      - Fixed Bug: some integration types missing (vB)
      - Fixed Bug: vw_path needs index for path
      - Fixed Bug: template meta tags not working correctly (vB)
      More importantly, the Gamma 2 release was found to be insecure several months ago, and all VW4+vB users were advised to move to at least Gamma 3. The attack vector was very easy to exploit according to the announcement. So if you are not removing this completely, or are re-installing after getting your database clean, you really need to do so against the new version.

      Should you want to remove version 3.0.20, rather than just roll back to it, you need the patch from this blog entry: https://www.vaultwiki.org/blogs/56/#Over-Time
      If you have tried to remove version 3 without using this patch, a remaining VaultWiki 4 installation may become unusable. At this point in time version 3.0.20 has already reached its end of life. It is no longer receiving bug fixes or security updates, it is not compatible with vBulletin 4.2.1 or higher, or PHP 5.4 or higher.
      Reply Reply  
    2. May 26, 2014 2:39 AM
      nikosb nikosb is offline
      New Member
      When importing from VaultWiki 3, the import fails with the following error when importing

      Could not find phrase 'step_x'.

      Importing wiki permissions
      Code:
      Invalid SQL:
      SELECT `username` AS `username`,`userid` AS `userid` FROM `vb_user` WHERE  `username` LIKE 'Dr.Overflow'  OR LIKE 'Μαρακι'  OR LIKE 'geodon'  OR LIKE 'alfeios'  OR LIKE 'thiseas'  LIMIT 5;
      
      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 'LIKE 'Μαρακι'  OR LIKE 'geodon'  OR LIKE 'alfeios'  OR LIKE 'thiseas'  LIM' at line 1
      Error Number  : 1064
      Request Date  : Monday, May 26th 2014 @ 09:36:01 AM
      Error Date    : Monday, May 26th 2014 @ 09:36:01 AM
      Script        : [url]http://www.supa.gr/forums/admincp/wiki_cp.php?panel=impex&do=import&step=11&nostyle=1[/url]
      Referrer      : [url]http://www.supa.gr/forums/admincp/wiki_cp.php?panel=impex&do=import&step=10&nostyle=1[/url]
      IP Address    : 194.219.40.61
      Username      : Dr.Overflow
      Classname     : vB_Database
      MySQL Version : 5.5.37-cll-lve
      Reply Reply  
    3. May 26, 2014 10:58 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/db/mysql/vw.php, find:
      Code:
      	public function like($input, $keywords = null)
      	{
      		list($field, $keywords) = $this->like_format($input, $keywords);
      
      		$out = array();
      		$pre = ' ';
      
      		if ($field)
      		{
      			$pre .= $this->wrap($field) . ' ';
      		}
      
      		foreach ($keywords AS $keyword_info)
      		{
      			$like = "LIKE '";
      
      			if (!empty($keyword_info['left']))
      			{
      				$like .= '%';
      			}
      
      			$like .= $keyword_info['keyword'];
      
      			if (!empty($keyword_info['right']))
      			{
      				$like .= '%';
      			}
      
      			$like .= "' ";
      
      			$out[] = $like;
      		}
      
      		return $pre . implode(' OR ', $out);
      	}
      Replace with:
      Code:
      	public function like($input, $keywords = null)
      	{
      		list($field, $keywords) = $this->like_format($input, $keywords);
      
      		$out = array();
      
      		foreach ($keywords AS $keyword_info)
      		{
      			$like = ' ';
      
      			if ($field)
      			{
      				$like .= $this->wrap($field) . ' ';
      			}
      
      			$like .= "LIKE '";
      
      			if (!empty($keyword_info['left']))
      			{
      				$like .= '%';
      			}
      
      			$like .= $keyword_info['keyword'];
      
      			if (!empty($keyword_info['right']))
      			{
      				$like .= '%';
      			}
      
      			$like .= "' ";
      
      			$out[] = $like;
      		}
      
      		return implode(' OR ', $out);
      	}
      Reply Reply  
    4. May 26, 2014 1:09 PM
      nikosb nikosb is offline
      New Member
      thank you.
      process proceeded as 70%

      and after....
      Could not find phrase 'step_x'.

      Could not find phrase 'vw_importing_super_moderators'.
      Reply Reply  
    5. May 26, 2014 1:13 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please go to the new Members area, and check under the Services menu for "Ticket Support". If you can fill one of these out, I would be happy to get this resolved for you right away.
      Reply Reply  
    6. May 26, 2014 1:46 PM
      nikosb nikosb is offline
      New Member
      thank you

      Can not find the Services menu in the members area

      edit
      i found
      Reply Reply  
    7. May 26, 2014 2:33 PM
      pegasus pegasus is offline
      VaultWiki Team
      You should be able to see it now. It wasn't showing for users who didn't buy a service yet, but Ticket Support is free anyway. So I made the menu show all the time now.
      Reply Reply  
    8. May 26, 2014 2:43 PM
      nikosb nikosb is offline
      New Member
      button (Ticket Support, Use Service Ticket Support) does not work
      Reply Reply  
    9. May 26, 2014 3:03 PM
      nikosb nikosb is offline
      New Member
      ok
      support ticket is open
      but
      Once you click the submit....


      Oops!
      arsenal_invalid_purchase
      Reply Reply  
    10. May 26, 2014 3:21 PM
      nikosb nikosb is offline
      New Member
      ok
      was sent ticket

      thank you for the time !!
      Reply Reply  
    11. This petition for a change to Awaiting Feedback was rejected
      June 18, 2014 10:02 PM
      gyro gyro is offline
      New Member
      Pegasus we need your help with the uninstall. We tried to upgrade to the latest and failed right away. We need to get back to a format issue free forum and it's really causing a lot of embarrassment as all of our (h1) (h2) tags a are all messed up. I have paying sponsors that support our site and need to get this resolved. Would you please coordinate with us so we can give you access to uninstall it all and get us back to a site we can be proud of and then if we are able to do that we will come back to vaultwiki once you've got the bugs worked out. I think ou have a great product but for us it's just messed us all up for the last 5 months.

      Thank you!
      Mike
       
    12. June 19, 2014 12:21 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please fill out a ticket support service via the Members area. Mention anything else that we need to look for and also the error you received when the upgrade failed. You mentioned there were formatting issues that led to this decision. I'm not aware of any in the product currently so please also provide an example post so we can make sure these kind of issues in fact go away after removal.
      Reply Reply  
    Page 3 of 3 FirstFirst Previous 123
    + 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 1:47 PM.
    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 © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.