• 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
    • Undefined Variables with new VaultWiki installation

    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: Undefined Variables with new VaultWiki installation

    • Issue Tools
      • View Changes
    1. issueid=4903 February 4, 2017 5:22 AM
      ACL ACL is offline
      Regular Member
      Undefined Variables with new VaultWiki installation
      As reported by Xenforo Admin CP

      Just in the past day I have installed VaultWiki Premium on a currently in-development closed Xenforo forum (I plan to import a data from another active forum at a later stage). Since installing VaultWiki I have noticed growing entries in the server error log in the Xenforo Admin CP.

      These are the errors I'm getting, as a result of changing various settings in the admin area:

      Code:
      ErrorException: Undefined variable: bbcode - vault/core/controller/dm/prefix/vw.php:285[/B]
      
      array(3) {
        ["url"] => string(77) "https://path/to/admin.php?wiki/&panel=prefix&do=save"
        ["_GET"] => array(3) {
          ["wiki/"] => string(0) ""
          ["panel"] => string(6) "prefix"
          ["do"] => string(4) "save"
        }
        ["_POST"] => array(8) {
          ["panel"] => string(6) "prefix"
          ["do"] => string(4) "save"
          ["_xfToken"] => string(8) "********"
          ["generic"] => string(4) "wiki"
          ["title"] => string(8) "Template"
          ["bbcodetag"] => string(0) ""
          ["sbutton"] => string(4) "Save"
          ["url"] => string(69) "https://path/to/admin.php?wiki/&panel=prefix"
        }
      }
      Code:
      ErrorException: Undefined variable: filename - library/vw/XenForo/Option/Seo.php:26[/B]
      
      array(3) {
        ["url"] => string(82) "https://path/to/admin.php?options/save/vw_server_settings"
        ["_GET"] => array(1) {
          ["options/save/vw_server_settings"] => string(0) ""
        }
        ["_POST"] => array(3) {
          ["options"] => array(12) {
            ["vw_enabled"] => string(1) "1"
            ["vw_bburl"] => string(41) "https://path/to/"
            ["vw_cdn_url"] => string(0) ""
            ["vw_filename"] => string(4) "wiki"
            ["vw_protocol"] => string(1) "2"
            ["vw_titlevar"] => string(5) "title"
            ["vw_spaces"] => string(1) "0"
            ["vw_seo"] => string(1) "1"
            ["vw_languageid"] => string(1) "1"
            ["vw_wiki_name"] => string(4) "Wiki"
            ["vw_apikey"] => string(16) "[removed from support post]"
            ["vw_cache_life"] => string(1) "7"
          }
          ["options_listed"] => array(12) {
            [0] => string(10) "vw_enabled"
            [1] => string(8) "vw_bburl"
            [2] => string(10) "vw_cdn_url"
            [3] => string(11) "vw_filename"
            [4] => string(11) "vw_protocol"
            [5] => string(11) "vw_titlevar"
            [6] => string(9) "vw_spaces"
            [7] => string(6) "vw_seo"
            [8] => string(13) "vw_languageid"
            [9] => string(12) "vw_wiki_name"
            [10] => string(9) "vw_apikey"
            [11] => string(13) "vw_cache_life"
          }
          ["_xfToken"] => string(8) "********"
        }
      }
      I was also seeing two other errors caused when editing wiki pages, one fatal, but they seem to be solved after applying the code edit offered in issue 4888. Nevertheless I've included the error messages for reference.
      Code:
      ErrorException: Fatal Error: Call to a member function free() on null - vault/core/controller/db/xf.php:367
      Appears to be fixed using code edit from issue 4888
      Code:
      ErrorException: Undefined variable: subscriptions - vault/core/model/cron/deferred/instantsubalert/vw.php:212
      Appears to be fixed using code edit from issue 4888
    Issue Details
    Issue Number 4903
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category General
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.0.16
    Fixed Version 4.0.17
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 4, 2017 8:59 AM
      pegasus pegasus is offline
      VaultWiki Team
      Thanks. These first two errors are now fixed in the next release. The first only occurred when creating a new wiki-prefix with certain values, and the second occurred whenever a specific one of the add-on's options was changed - this allowed the admin to sometimes select an options combination that was invalid. Your selected combination looks fine to me, though, so you shouldn't have to worry about that.
      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 7:05 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.