• 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
    • PHP Fatal Error prevents creating new pages

    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: PHP Fatal Error prevents creating new pages

    • Issue Tools
      • View Changes
    1. issueid=3179 July 8, 2013 10:03 PM
      rizwank rizwank is offline
      New Member
      PHP Fatal Error prevents creating new pages

      Code:
      [Mon Jul 08 05:37:07 2013] [error] [client  xxxx] PHP Fatal error:  Call to a member function setFetchMode() on a non-object in /var/www/html/forum/vault/core/controller/db/xf.php on line 133
      Code:
      xxxx - - [08/Jul/2013:05:37:01 -0700] "POST /wiki_ajax.php?c=create HTTP/1.1" 200 97 "http://mysiteurl/wiki_tools.php?do=integrate&action=edit&nodetypeid=21&nodeid=3625" "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0"
      xxxx - - [08/Jul/2013:05:37:07 -0700] "GET /wiki_tools.php?do=integrate&action=edit&nodetypeid=21&nodeid=3625 HTTP/1.1" 200 138 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36"
    Issue Details
    Issue Number 3179
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.0 Beta 2
    Fixed Version 4.0.0 Beta 3
    Milestone VaultWiki 4 Beta X
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)


    Page 3 of 3 FirstFirst Previous 123


    1. July 13, 2013 1:28 AM
      rizwank rizwank is offline
      New Member
      I can reliably get the errors to occur so I don't need the conditional.
      Reply Reply  
    2. July 13, 2013 2:32 AM
      pegasus pegasus is offline
      VaultWiki Team
      There is no loop, I just misread some class names that are similar. Still don't know what's causing it. At some point either XenForo's DB connection gets closed or the reference to it is severed.

      You do need the conditional. If you don't have one it will throw an exception even if the DB connection is working. You only want one when it's not working. Even if you get the setFetchMode error all the time, the function might only be failing one time out of a hundred calls during the same page load. It's the failed call that we're trying to debug.

      Are you unable to fill out the Install Service in the Members area? If you submitted that, I could do all this relatively quickly (we will probably need dumps from many functions within the backtrace) and have a fix for you in a few hours.
      Reply Reply  
    3. July 13, 2013 2:43 AM
      rizwank rizwank is offline
      New Member
      I can't give you access to the live production site anymore. But I've got a backup site. I'll verify that the bug presents there and give you access. 3 moments.
      Reply Reply  
    4. July 13, 2013 2:54 AM
      rizwank rizwank is offline
      New Member
      Done. The dev site details have been provided. A fresh install of the latest build showed the same error immediately.
      Reply Reply  
    5. July 13, 2013 2:55 AM
      rizwank rizwank is offline
      New Member
      I'm up for a bit if you want to chat or need help.
      Reply Reply  
    6. July 13, 2013 12:20 PM
      pegasus pegasus is offline
      VaultWiki Team
      I can now reliably reproduce this on your site but only if my XenForo account is not logged in. It seems like it only happens for guests or if a cookie is expired.
      Reply Reply  
    7. July 13, 2013 12:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      I can now reproduce this reliably on my site.

      • The user must not be logged in, or their session must be expired, AND
      • The board must be turned off to guest viewing "Options: Board Active", AND
      • The user must attempt to view any of the wiki_* PHP scripts except wiki_index.php, which will correctly show a login error.
      Reply Reply  
    8. July 13, 2013 12:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. The user should now see the login error.
      Reply Reply  
    9. July 13, 2013 1:58 PM
      rizwank rizwank is offline
      New Member
      Hmm, I was doing this when logged in, but I can't reproduce it today on the test site.
      Reply Reply  
    10. July 13, 2013 1:59 PM
      rizwank rizwank is offline
      New Member
      site/wiki_css.php?file=vw.css doesn't return anything but

      /**
      * VaultWiki 4.0.0 Beta 2 CSS
      * Style: 'Default Style', ID: 1
      **/

      though
      Reply Reply  
    11. July 13, 2013 4:12 PM
      rizwank rizwank is offline
      New Member
      Does that mean that Beta3 is ungated?
      Reply Reply  
    Page 3 of 3 FirstFirst Previous 123
    + 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 6:02 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.