• 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
    • Invalid SQL: REPLACE INTO `vb4_vw_import`

    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: Invalid SQL: REPLACE INTO `vb4_vw_import`

    • Issue Tools
      • View Changes
    1. issueid=4553 February 23, 2016 2:50 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Invalid SQL: REPLACE INTO `vb4_vw_import`

      On importing wiki pages from VW3:
      Code:
      Database error in vBulletin 3.8.7:
      
      Invalid SQL:
      REPLACE INTO `vb4_vw_import` (`sourceid`, `targetid`, `name`, `hash`)  VALUES (232769,306,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(236271,307,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(236272,308,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(242920,309,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(246147,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(247495,321,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(247497,322,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(247498,323,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(247499,324,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(253437,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(255515,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260007,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260008,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260009,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260010,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260079,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260080,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260081,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(260082,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(261496,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(262332,325,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(262333,326,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(263059,327,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(263174,328,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(263675,329,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(263676,330,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(264516,331,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266799,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266801,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266802,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266804,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266807,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266808,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266809,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266810,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266811,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266812,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266813,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266814,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266815,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266816,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266817,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266818,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266819,,'redirect','874fff6e8130e533b9444f824da2423e'),
      	(266821,,'redirect','874fff6e8130e533b9444f824da2423e');
      
      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 ''redirect','874fff6e8130e533b9444f824da2423e'),
      	(247495,321,'redirect','874fff6' at line 5
      Error Number  : 1064
      Request Date  : Tuesday, February 23rd 2016 @ 08:48:05 PM
      Error Date    : Tuesday, February 23rd 2016 @ 08:48:09 PM
      Script        : /forum/admincp/wiki_cp.php?panel=impex&step=13&startat=1200&do=import&manual=0
      Referrer      : /forum/admincp/wiki_cp.php?panel=impex
      IP Address    : 
      Username      : Alfa
      Classname     : vB_Database
    Issue Details
    Issue Number 4553
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Importing
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.8
    Fixed Version 4.0.9
    Milestone (none)
    Software DependencyvBulletin 3.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 24, 2016 11:59 AM
      pegasus pegasus is offline
      VaultWiki Team
      I think this happens when trying to import redirects that have the same title as an article that was already imported.

      In vault/core/controller/import/handle/vw3/page/vw.php, find:
      Code:
      		$redirectid = $redirdm->save();
      		unset($redirdm);
      Replace with:
      Code:
      		$redirdm->save();
      		$redirectid = $redirdm->get('redirectid');
      		unset($redirdm);
      
      		if (!$redirectid)
      		{
      			return;
      		}
      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 11:34 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 © 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.