• 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 1 of 3 123 Next LastLast


    1. July 8, 2013 10:05 PM
      rizwank rizwank is offline
      New Member
      Bingo.

      http://site/wiki_ajax.php?c=create

      returns
      vw_invalid_action

      and
      Code:
      [Mon Jul 08 19:04:50 2013] [error] [client 23.22.158.186] 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
      [Mon Jul 08 19:04:50 2013] [error] [client 23.22.158.186] 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
      [Mon Jul 08 19:04:51 2013] [error] [client 23.22.158.186] 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
      Reply Reply  
    2. July 8, 2013 10:37 PM
      pegasus pegasus is offline
      VaultWiki Team
      I was able to duplicate the "invalid" return using this method to create pages. While I work on a fix, please try to only create pages using the Create New Page link on area pages.
      Reply Reply  
    3. July 8, 2013 10:47 PM
      rizwank rizwank is offline
      New Member
      Okay. Halts my testing because I don't know how to associate a particular wiki document to a thread. The layout is so bad right now that it's pretty much impossible to use easily anyhow.
      Reply Reply  
    4. July 8, 2013 10:51 PM
      pegasus pegasus is offline
      VaultWiki Team
      I think associating threads might need a forum field that we forgot to add to the database.
      Reply Reply  
    5. July 8, 2013 10:57 PM
      rizwank rizwank is offline
      New Member
      heh. Well my plane is landing in a bit, so I've got about ten minutes for any additional patches, then I guess I'll see you tomorrow =)
      Reply Reply  
    6. July 9, 2013 11:36 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed all the stop errors in the AJAX create path, but I'm unable to duplicate the setFetchMode error. I'm guessing you were using the form via Tapatalk on the plane. I've tried installing Tapatalk on my forum and phone, but currently the app doesn't appear to let me visit my forum at all.
      Reply Reply  
    7. July 9, 2013 5:42 PM
      pegasus pegasus is offline
      VaultWiki Team
      The Tapatalk app is working for me now, and I still can't duplicate the fatal error. It seems you can't browse the forum normally via the app.
      Reply Reply  
    8. July 9, 2013 8:23 PM
      rizwank rizwank is offline
      New Member
      No, wasn't using Tapatalk, was using Chrome.

      Click manage above a thread, type in a new name into the search bar (that is sort of hidden) - select a wiki space, and then hit create.
      Reply Reply  
    9. July 10, 2013 1:42 AM
      rizwank rizwank is offline
      New Member
      Can you release a new build with this fix so I can try to replicate?
      Reply Reply  
    10. July 10, 2013 10:52 AM
      pegasus pegasus is offline
      VaultWiki Team
      At this point there are too many changes in the product to create a new build without doing a full version release or it might cause problems.

      While most of the issues in the first post are resolved, the primary one "setFetchMode" has not yet been encountered by us in relation to the Integration Controls and thus has not been addressed. I used to encounter it on Beta 1 using Tapatalk's test file but that was resolved in Beta 2.

      Are there style issues or Javascript errors on the page? If a style issue, please send a screenshot.
      Reply Reply  
    11. July 10, 2013 1:40 PM
      rizwank rizwank is offline
      New Member
      Sent 3.
      Reply Reply  
    12. July 10, 2013 9:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please visit /wiki_css.php?file=vw.css and let me know if there are errors.
      Reply Reply  
    13. July 11, 2013 12:36 AM
      pegasus pegasus is offline
      VaultWiki Team
      This may give more information. In library/vw/XenForo/Application.php, find:
      Code:
      if (file_exists(self::$_configDir . '/config.php'))
      Add before:
      Code:
      if (!file_exists(self::$_configDir . '/config.php'))
      {
      trigger_error(self::$_configDir . '/config.php not found');
      }
      else
      {
      echo self::$configDir . '/config.php';
      }
      Please remove this code after you get some output as it may leave you unable to login to your forums.
      Reply Reply  
    14. July 11, 2013 12:41 AM
      pegasus pegasus is offline
      VaultWiki Team
      Also in vault/core/controller/db/xf.php, find:
      Code:
      	public function query_read_slave($sql, $buffer = true)
      	{
      Add after:
      Code:
      		if (!is_object($this->instance))
      		{
      			print_debug_backtrace();
      		}
      Reply Reply  
    15. July 11, 2013 1:38 AM
      rizwank rizwank is offline
      New Member
      the url given seems to trigger
      Code:
      Call to a member function setFetchMode() on a non-object in /var/www/html/forum/vault/core/controller/db/xf.php on line 133
      First option returned
      Code:
      Fatal error: Access to undeclared static property: vw_XenForo_Application::$configDir in /var/www/html/forum/library/vw/XenForo/Application.php on line 52
      Second option did not return an error
      Reply Reply  
    Page 1 of 3 123 Next LastLast
    + 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:41 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.