• 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
    • XF\Db\Exception: MySQL query error [1271]: Illegal mix of collations for operation 'in' src\XF\Db\AbstractStatement.php:217

    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: XF\Db\Exception: MySQL query error [1271]: Illegal mix of collations for operation 'in' src\XF\Db\AbstractStatement.php:217

    • Issue Tools
      • View Changes
    1. issueid=5853 September 11, 2019 8:03 AM
      SeToY SeToY is offline
      Junior Member
      XF\Db\Exception: MySQL query error [1271]: Illegal mix of collations for operation 'in' src\XF\Db\AbstractStatement.php:217

      This appears to have happened when a user visited a forum:

      Code:
      Stack trace
      SELECT `p`.*,`i`.`itemtypeid`,`i`.`itemid`,`i`.`itemkey` AS `key`,`i`.`stackids` AS `stack` FROM `vw_path` `p`  LEFT JOIN `vw_route` `i` ON (`i`.`pathid` = `p`.`pathid`)   WHERE  `p`.`path` IN ('domain.com','forums','forum-name.124','????','????')  ORDER BY `p`.`pathid` ASC 
      ------------
      
      #0 src\XF\Db\Mysqli\Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1271, 'HY000')
      #1 src\XF\Db\Mysqli\Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1271, 'HY000')
      #2 src\XF\Db\AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
      #3 src\addons\vw\vw\_core\controller\db\xf2.php(148): XF\Db\AbstractAdapter->query('SELECT `p`.*,`i...')
      #4 src\addons\vw\vw\_core\model\db\mysql\vw.php(25): vw_DB_Controller_XF2->query_read('SELECT `p`.*,`i...')
      #5 src\addons\vw\vw\_core\controller\route\vw.php(1110): vw_DB_MySQL_Model->select(Array)
      #6 src\addons\vw\vw\_core\controller\route\vw.php(330): vw_Route_Controller->fetch_routes(Array)
      #7 src\addons\vw\vw\Pub\Router.php(208): vw_Route_Controller->resolve_path(Array, 1)
      #8 src\addons\vw\vw\Pub\Router.php(33): vw\vw\Pub\Router::preProcessWiki(Object(vw\vw\XF\Mvc\Router), 'forums/team-bew...', Object(XF\Mvc\RouteMatch), Object(XF\Http\Request), false)
      #9 [internal function]: vw\vw\Pub\Router::preProcess(Object(vw\vw\XF\Mvc\Router), 'forums/team-bew...', Object(XF\Mvc\RouteMatch), Object(XF\Http\Request))
      #10 src\XF\Mvc\Router.php(219): call_user_func(Array, Object(vw\vw\XF\Mvc\Router), 'forums/team-bew...', Object(XF\Mvc\RouteMatch), Object(XF\Http\Request))
      #11 src\addons\vw\vw\XF\Mvc\Router.php(71): XF\Mvc\Router->routeToController('forums/team-bew...', Object(XF\Http\Request))
      #12 src\XF\Mvc\Dispatcher.php(60): vw\vw\XF\Mvc\Router->routeToController('forums/team-bew...', Object(XF\Http\Request))
      #13 src\XF\Mvc\Dispatcher.php(42): XF\Mvc\Dispatcher->route('forums/team-bew...')
      #14 src\XF\App.php(2178): XF\Mvc\Dispatcher->run()
      #15 src\XF.php(390): XF\App->run()
      #16 index.php(20): XF::runApp('XF\\Pub\\App')
      #17 {main}
    Issue Details
    Issue Number 5853
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 Beta 3
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 11, 2019 10:01 AM
      pegasus pegasus is offline
      VaultWiki Team
      Since this is related to VaultWiki's ability to parse an incoming request, what is the URL of the request that caused this? If you prefer to keep it private, PM me.
      Reply Reply  
    2. September 11, 2019 10:21 AM
      SeToY SeToY is offline
      Junior Member
      Ah, I think I see the problem. I'll PM you the link.
      Reply Reply  
    3. September 11, 2019 11:13 AM
      pegasus pegasus is offline
      VaultWiki Team
      If you try to preview a new page with an emoji in the title, something similar will happen. Nice find.
      Reply Reply  
    4. September 11, 2019 11:17 AM
      SeToY SeToY is offline
      Junior Member
      Isn't VW Unicode compatible? I'd think this is a necessity because users don't know the difference between "XF" and "VW" and assume VW offers the same kind of unicode integration as XF2 does.
      Reply Reply  
    5. September 11, 2019 12:27 PM
      pegasus pegasus is offline
      VaultWiki Team
      It is unicode compatible, but support for XF2's $config['fullUnicode'] (which is utf8mb4 rather than just utf8) is missing. This should be fixed in the next release.
      Reply Reply  
    6. September 11, 2019 12:31 PM
      SeToY SeToY is offline
      Junior Member
      Understood. Thanks for the clarification and for fixing it
      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 2:34 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.