• 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 Discussion
    • General Discussion
    • Issue running Forumrunner with Vault Wiki

    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 9 of 9

    Thread: Issue running Forumrunner with Vault Wiki

    • Thread Tools
      • Show Printable Version
    1. March 31, 2011 #1
      mickknutson
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      mickknutson is offline
      Regular Member
      Join Date
      April 29, 2009
      Posts
      91
      Rep Power
      189

      Exclamation Issue running Forumrunner with Vault Wiki

      http://www.forumrunner.net/forum/showthread.php?p=2710


      Basically I am getting these issues viewing threads in my forum with forumrunner if vault wiki is NOT disabled:

      I was able to find in the logs the errors:


      Access logs:
      Code:
      174.252.76.27 - - [31/Mar/2011:14:16:04 -0700] "GET /forum/customavatars/avatar2743_1.gif HTTP/1.1" 200 3345 "-" "Dalvik/1.2.0 (Linux; U; Android 2.2.1; DROIDX Build/VZW)"
      174.252.76.27 - - [31/Mar/2011:14:16:04 -0700] "GET /forum/customavatars/avatar2743_1.gif HTTP/1.1" 200 3345 "-" "Dalvik/1.2.0 (Linux; U; Android 2.2.1; DROIDX Build/VZW)"
      174.252.76.27 - - [31/Mar/2011:14:16:11 -0700] "POST /forum/forumrunner/request.php HTTP/1.1" 500 - "-" "Forum Runner for Android"
      error logs:

      Code:
      [Thu Mar 31 14:16:11 2011] [error] [client 174.252.76.27] PHP Fatal error:  Call to a member function fetch_instance() on a non-object in ~/public/forum/forumrunner/include/get_thread.php(810) : eval()'d code on line 5
      Here is line 810:

      Code:
      ($hook = vBulletinHook::fetch_hook('showthread_query')) ? eval($hook) : false;
      Any ideas?

      Is there anyway we can work on the integration so I can use both?
      Reply With Quote Reply With Quote

    2. March 31, 2011 #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,934
      Blog Entries
      18
      Rep Power
      659
      Yeah, make sure forum runner calls the init_startup hook otherwise the classes aren't going to be loaded and you'll get fatal errors.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. March 31, 2011 #3
      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,934
      Blog Entries
      18
      Rep Power
      659
      Okay, I reviewed the ForumRunner code, and it DOES call init_startup, but it wraps showthread_query inside a function. showthread_query is not inside a function in stock vBulletin and thus all variables and objects in the global scope are available to it.

      This is not the case with the ForumRunner code design. If they are going to take normally global hooks out of global context, then they need to create local references to every $GLOBALS key before calling the hook. I suspect this issue probably exists wherever they re-used default hooks.

      However, it's probably best if they either took out the hooks or made their own. Postbit factory plugins had to be agnostic already anyway, so there shouldn't be fatal errors with them caused by removals.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    4. March 31, 2011 #4
      mickknutson
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      mickknutson is offline
      Regular Member
      Join Date
      April 29, 2009
      Posts
      91
      Rep Power
      189
      Quote Originally Posted by pegasus View Post
      Yeah, make sure forum runner calls the init_startup hook otherwise the classes aren't going to be loaded and you'll get fatal errors.
      So if I added this before line 810 it might work:

      Code:
      ($hook = vBulletinHook::fetch_hook('init_startup')) ? eval($hook) : false;
      Reply With Quote Reply With Quote

    5. March 31, 2011 #5
      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,934
      Blog Entries
      18
      Rep Power
      659
      This is not a good idea. As per my previous post, it would be better to add this before line 810:
      Code:
      global $vault;
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    6. March 31, 2011 #6
      mickknutson
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      mickknutson is offline
      Regular Member
      Join Date
      April 29, 2009
      Posts
      91
      Rep Power
      189
      Sorry I was impatient, but I did what I asked above
      Code:
      ($hook = vBulletinHook::fetch_hook('init_startup')) ? eval($hook) : false;
      and it worked!
      Reply With Quote Reply With Quote

    7. March 31, 2011 #7
      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,934
      Blog Entries
      18
      Rep Power
      659
      Okay, but you should probably forward my explanation of the cause to the Forum Runner people: http://www.vaultwiki.org/threads/5037/#post13089
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    8. March 31, 2011 #8
      ClemsonJeeper
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ClemsonJeeper is offline
      New Member
      Join Date
      March 31, 2011
      Posts
      1
      Rep Power
      0
      Greetings, Rob from Forum Runner here.

      Your analysis is correct. We use functions so any globals added by hooks will need to be added to our code.

      I'll go ahead and add the global $vault to the add-on. Are there any other places where this would make a difference?
      Reply With Quote Reply With Quote

    9. March 31, 2011 #9
      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,934
      Blog Entries
      18
      Rep Power
      659
      It appears for now that this is the only location. I expect that this will no longer be an issue when we release our new version, since we fully move to PHP 5 and call our functions statically.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Vault Wiki for IPBoard
      By John Morris in forum Pre-Sales Questions
      Replies: 2
      Last Post: February 9, 2017, 11:16 AM
    2. Export data from vault wiki in a vb3 forum to import in a vault wiki vb4 forum after
      By levimatt in forum VaultWiki Questions
      Replies: 22
      Last Post: March 18, 2016, 7:02 PM
    3. Vault Wiki and vB5 Cloud
      By tommythejoat in forum General Discussion
      Replies: 2
      Last Post: February 18, 2016, 8:41 PM
    4. Can Vault Wiki use the CMS GRID Layout?
      By mickknutson in forum VaultWiki Questions
      Replies: 3
      Last Post: August 7, 2010, 12:39 PM
    5. Vault Wiki 3.1
      By CedricFP in forum General Discussion
      Replies: 0
      Last Post: June 23, 2010, 6:09 AM

    Tags for this Thread

    can, code, errors, fatal, find, function, include, integration, issue, issues, member, post, run, running, show, showthread, there, threads, url, use, vault, viewing, wiki, with, work

    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 3:52 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.