I just had to disable VaultWiki. Upgraded from 3.0.0 to 3.0.2, but there were database errors viewing some (but not all?) forums.
Code:
Database error in vBulletin 3.8.5:
Invalid SQL:
SELECT forumid, vopt.options AS vault_options
FROM post AS post
INNER JOIN thread AS thread ON (thread.threadid = post.threadid)
LEFT JOIN vault_options AS vopt ON (vopt.contentid = post.postid AND vopt.contenttypeid = 1)
WHERE post.threadid=145 AND post.visible=1
ORDER BY post.dateline
LIMIT ,;
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 '' at line 7
Error Number : 1064
Do you have any other plugins at hook location printthread_start? If not, is there a modification that calls the parser on every page (perhaps in one of the parse_templates or global_* hooks, and runs even on printable thread pages)? I can only see this happening if there is a mod conflict that triggers the VaultWiki code BEFORE all the variables have been set.
This might un-conflict it. In vault/plugins/bbcode.php, find:
Code:
if (THIS_SCRIPT == 'printthread' AND $forumid == 'nonforum')
Replace with:
Code:
if (THIS_SCRIPT == 'printthread' AND $forumid == 'nonforum' AND $parser_class == 'vb_bbcodeparser_printablethread')
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.