• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Small Issue

    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.

    Results 1 to 4 of 4

    Thread: Small Issue

    • Thread Tools
      • Show Printable Version
    1. January 4, 2010 #1
      therock67
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      therock67 is offline
      Junior Member
      Join Date
      October 4, 2008
      Posts
      13
      Rep Power
      0

      Small Issue

      Hi

      I'm currently testing VB4 in a test directory so was waiting for vaultwiki before going live with update.

      Upgraded straight from 2.5.0 to 3.0 Beta which I probably shouldn't have done and got an error Table '[databasename].vbvault_upgradelog' doesn't exist. I guessed that was from skipping versions so I uninstalled vaultwiki and ran a fresh install on the test forum.

      Because it's just a copy of the database it has a few issues, like it's autolinking to the old wiki (which is still there on the live site) for some articles from the vb4 forums so I presume that's just caching issues and will disappear when I upgrade the live site. I then linked the new wiki back to the existing forums on the copy database. Apologies if that's just a stupid thing to do but I'm just testing things before upgrading.

      However for the articles that are linking to the v3 vaultwiki I'm getting the below error message (either from clicking through autolinks or from accessing the forum directly by typing in the URL) and then clicking on an article. Apologies if this is entirely related to testing the wiki on a test forum but I just thought I'd let you know in case it was something else:

      Error message:
      Code:
      Invalid SQL:
                             SELECT IF(thread.visible = 2, 1, 0) AS isdeleted,
                             post.pagetext AS description,
                             thread.*
                             , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed, emailupdate, folderid,
             commenter.usergroupid AS lastusergroupid,
             commenter.membergroupids AS lastmembergroupids,
             commenter.homepage AS lasthomepage, commenter.email AS lastemail,
             IF(commenter.displaygroupid > 0, commenter.displaygroupid, commenter.usergroupid) AS lastdisplaygroupid,
             protected.options AS protection
                             FROM vbthread AS thread
      
                             LEFT JOIN vbpost AS post ON(post.postid = thread.firstpostid)
             LEFT JOIN vbvault_article AS article ON (thread.threadid = article.threadid)
             LEFT JOIN vbdeletionlog AS deletionlog ON (deletionlog.primaryid = thread.threadid AND deletionlog.type = 'thread')
             LEFT JOIN vbsubscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = 32  AND subscribethread.canview = 1)
      LEFT JOIN vbuser AS commenter ON (article.lastposterid = commenter.userid)
      LEFT JOIN vbvault_protect AS protected ON (protected.targetid = 15439)
                             WHERE thread.threadid = 15439;
      
      MySQL Error   : Unknown column 'article.lastposterid' in 'on clause'
      Error Number  : 1054
      Reply With Quote Reply With Quote

    2. January 4, 2010 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      Did the upgradelog error message halt the upgrade or was it only in a log or report?

      As for your article.lastposterid error, in vault/special_plugins.php, find:
      Code:
      $hook_query_joins .= "\r\nLEFT JOIN " . TABLE_PREFIX . "user AS commenter ON (article.lastposterid = commenter.userid)";
      Replace with:
      Code:
      $hook_query_joins .= "\r\nLEFT JOIN " . TABLE_PREFIX . "user AS commenter ON (" . (VAULT_40X_COMPAT ? "thread" : "article") . ".lastposterid = commenter.userid)";
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. January 5, 2010 #3
      therock67
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      therock67 is offline
      Junior Member
      Join Date
      October 4, 2008
      Posts
      13
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      Did the upgradelog error message halt the upgrade or was it only in a log or report?

      As for your article.lastposterid error, in vault/special_plugins.php, find:
      Code:
      $hook_query_joins .= "\r\nLEFT JOIN " . TABLE_PREFIX . "user AS commenter ON (article.lastposterid = commenter.userid)";
      Replace with:
      Code:
      $hook_query_joins .= "\r\nLEFT JOIN " . TABLE_PREFIX . "user AS commenter ON (" . (VAULT_40X_COMPAT ? "thread" : "article") . ".lastposterid = commenter.userid)";
      The errorlog message appeared at the end. It said the upgrade had completed successfully but the version number in the product manager was 2.5

      When I clocked on the forums (not just on a wiki forum) I just got a blank page. Nothing else.

      Sorry I didn't spend any time checking for error messages or anything I just uninstalled it and did a fresh install.

      The fix for the second issue worked perfectly it seems.

      Thanks very much for your help.
      Reply With Quote Reply With Quote

    4. January 6, 2010 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      Hi, thought I would let you know that the first issue you reported has been fixed: http://www.vaultwiki.org/issues/975/
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Issue with Attachments
      By OKCTalk in forum VaultWiki Questions
      Replies: 9
      Last Post: June 14, 2012, 8:04 AM
    2. Create individual Wikis by users for teams of small sizes possible?
      By screenmates in forum Pre-Sales Questions
      Replies: 4
      Last Post: April 4, 2010, 10:12 PM
    3. 2.2.3 PL1 Upgrade Issue
      By Home Alone in forum VaultWiki Questions
      Replies: 17
      Last Post: May 12, 2009, 8:28 PM
    4. So how do I actually track down issue?
      By mickknutson in forum VaultWiki Questions
      Replies: 5
      Last Post: May 3, 2009, 2:14 PM
    5. No issue, just a note
      By stev in forum VaultWiki Questions
      Replies: 0
      Last Post: August 16, 2008, 10:41 PM

    Tags for this Thread

    able, any, are, been, before, but, case, description, did, disappear, does, existing, few, first, for, from, get, getting, going, has, have, help, here, homepage, hook, http, invalid, issue, know, left, like, linked, live, new, old, only, own, php, quote, second, should, small, some, something, stupid, that, the, there, things, this, type, user, very, was, when, where, will, with, worked, would, www, you, your

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 1:58 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.