• 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
    • Can't connect different language versions of the same page

    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: Can't connect different language versions of the same page

    • Issue Tools
      • View Changes
    1. issueid=6024 April 22, 2020 6:44 AM
      Sunshine Sunshine is offline
      New Member
      Can't connect different language versions of the same page

      • XF\Db\Exception: MySQL query error [1054]: Unknown column 'langitemid' in 'field list'
      • src/XF/Db/AbstractStatement.php:228

      Stack trace
      INSERT IGNORE INTO `vw_langevent` (`langeventid`,`langitemid`) ( SELECT 10 AS `langeventid`,`source`.`langitemid` AS `langitemid` FROM `vw_langitem` `source` LEFT JOIN `vw_langitem` `target` ON (`target`.`langgroupid` = 6294 AND `target`.`languageid` = `source`.`languageid`) WHERE `source`.`langgroupid` = 3506 AND `target`.`languageid` IS NULL )
      ------------

      #0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1054, '42S22')
      #1 src/XF/Db/Mysqli/Statement.php(78): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1054, '42S22')
      #2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
      #3 src/addons/vw/vw/_core/controller/db/xf2.php(117): XF\Db\AbstractAdapter->query('INSERT IGNORE ...')
      #4 src/addons/vw/vw/_core/model/db/mysql/vw.php(1339): vw_DB_Controller_XF2->query_write('INSERT IGNORE ...')
      #5 src/addons/vw/vw/_core/model/db/mysql/vw.php(1084): vw_DB_MySQL_Model->shutdown_or_run('INSERT IGNORE ...', false)
      #6 src/addons/vw/vw/_core/controller/ui/assign/language/vw.php(633): vw_DB_MySQL_Model->insert(Array)
      #7 src/addons/vw/vw/_core/controller/ui/assign/vw.php(66): vw_UI_Assign_Language_Controller->save_assignments(Object(vw_UI_Page_Controller), Array, Array)
      #8 src/addons/vw/vw/_core/controller/ui/page/vw.php(781): vw_UI_Assign_Controller->do_assign(Object(vw_UI_Page_Controller))
      #9 src/addons/vw/vw/_core/controller/ui/page/vw.php(192): vw_UI_Page_Controller->do_assign()
      #10 src/addons/vw/vw/_core/controller/ui/stack/vw.php(294): vw_UI_Page_Controller->execute()
      #11 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #12 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #13 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controlle r\Wiki\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #14 src/XF/Mvc/Dispatcher.php(350): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #15 src/XF/Mvc/Dispatcher.php(262): XF\Mvc\Dispatcher->dispatchClass('\\vw\\vw\\Pub\\Cont...', 'index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #16 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #17 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #18 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #19 src/XF.php(391): XF\App->run()
      #20 index.php(20): XF::runApp('XF\\Pub\\App')
      #21 {main}

      Request state
      array(4) {
      ["url"] => string(62) "/shops/wiki/?title= -en&do=assign"
      ["referrer"] => string(84) "shops/wiki/?title= -en&do=translate"
      ["_GET"] => array(2) {
      ["title"] => string(33) " -en"
      ["do"] => string(6) "assign"
      }
      ["_POST"] => array(11) {
      ["itemlangid"] => string(1) "1"
      ["query"] => string(2) "ez"
      ["data-from"] => string(4) "none"
      ["translateid"] => array(1) {
      [0] => string(4) "1336"
      }
      ["assigntype"] => array(1) {
      [0] => string(1) "2"
      }
      ["do"] => string(6) "assign"
      ["_xfToken"] => string(8) "********"
      ["ct_checkjs"] => string(4) "2020"
      ["_xfRequestUri"] => string(65) "/shops/wiki/?title= -en&do=translate"
      ["_xfWithData"] => string(1) "1"
      ["_xfResponseType"] => string(4) "json"
    Issue Details
    Issue Number 6024
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.1.0 RC 2
    Fixed Version 4.1.0 RC 2
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 22, 2020 11:07 AM
      pegasus pegasus is offline
      VaultWiki Team
      In src/addons/vw/vw/_core/controller/ui/assign/language/vw.php, find:
      Code:
      							'table' => 'vw_langevent',
      							'ignore' => 1,
      							'subquery' => array(
      Replace with:
      Code:
      							'table' => 'vw_langeventitem',
      							'ignore' => 1,
      							'subquery' => array(
      Due to the timing of this error, it is likely that the new page was successfully created, but was not linked as a translation. To link it as a translation, visit the new page and use Options > Translate this page.
      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 8:08 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.