• 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
    • Fatal Error: attempted to instantiate non-existent class vw_Dependency_Model

    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: Fatal Error: attempted to instantiate non-existent class vw_Dependency_Model

    • Issue Tools
      • View Changes
    1. issueid=5282 October 18, 2017 6:44 PM
      SeToY SeToY is offline
      Junior Member
      Fatal Error: attempted to instantiate non-existent class vw_Dependency_Model
      Fatal Error: attempted to instantiate non-existent class vw_Dependency_Model

      Hi,

      I just updated to 4.0.20 from 4.0.19 and now I cannot access my forums:

      Code:
      Fatal Error: attempted to instantiate non-existent class vw_Dependency_Model
      [path]/vault/core/model/dependency/vw.php does not exist or does not contain the specified class.
    Issue Details
    Issue Number 5282
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.20
    Fixed Version 4.0.20
    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. October 19, 2017 9:21 AM
      pegasus pegasus is offline
      VaultWiki Team
      The ZIP contains this file and I do not receive this error on any of my XenForo sites that were uploaded.

      - You either did not upload vault/core/model/dependency/vw.php at all or part of it is missing (try uploading it again)
      - Or your PHP instance cached the file while it was being uploaded, rather than after it was uploaded. This is a known bug in PHP's Zend Opcache. Try restarting the PHP process.

      Either way this is not a bug in VaultWiki as there is nothing we can do on our end about either situation.
      Reply Reply  
    2. October 19, 2017 9:33 AM
      SeToY SeToY is offline
      Junior Member
      Did you check with IIS instead of apache? That was a common cause for errors on our site regarding VaultWiki. The file is present and is uploaded completely (header and footer are there). I already restarted the entire IIS, but to no avail.
      Reply Reply  
    3. October 19, 2017 10:10 AM
      pegasus pegasus is offline
      VaultWiki Team
      You were able to run the upgrade script without problems? This error appears only on the forums / not in the AdminCP?
      Do you use different subdomains for forum, AdminCP, or wiki?
      Do any of your subdomains go through symlinks on your file system?

      If you use subdomains and/or use symlinks, then you may need vw_config.php files in some, if not all, of the affected directories. You can find this file in the do_not_upload folder of the ZIP, in one of the "subdomain" sections. For each copy of this file you upload, edit the file to specify the canonical server paths for the forums and VaultWiki. I'm not sure why you would suddenly need these files after upgrading, unless you had them before and removed them / overwrote them by mistake when you were uploading.
      Reply Reply  
    4. October 19, 2017 10:18 AM
      SeToY SeToY is offline
      Junior Member
      Nope, as soon as I uploaded VaultWiki and enabled it in the AdminCP, the whole page was unavailable (even the frontend). I then had to disable the listeners via config and disable VaultWiki.

      I do not use different subdomains and I ain't got no symlinks.
      Reply Reply  
    5. October 19, 2017 11:31 AM
      pegasus pegasus is offline
      VaultWiki Team
      It sounds like VaultWiki is unable to automatically detect the path to itself, so defining the path manually should help.

      In your vault/config.php file, find the following line:
      Code:
      //define('VW_DEPOT_PATH', '/path/to/your/forum');
      And adjust as appropriate.
      Reply Reply  
    6. October 19, 2017 2:10 PM
      SeToY SeToY is offline
      Junior Member
      https://gyazo.com/7e261ad4dfb1a578968d70f57e4bd9b2
      That is the error message without the path.

      With the path specified, it just yields a 500 HTTP:
      Code:
      ErrorException: Fatal Error: syntax error, unexpected 'VW_DEPOT_PATH' (T_STRING) - vault\config.php:137
      Generated By: Unknown Account, 30 minutes ago
      Reply Reply  
    7. October 19, 2017 2:53 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please check the owner and file permissions on the vault/model/dependency/ directory and contents. You can also get this error if PHP does not have permission to reach the file in question.

      Do you have an open_basedir restriction in effect? I'm not sure what the correct path should be in IIS with open_basedir. If you have that setup, please submit a ticket so that we can find a solution that works on your server: https://www.vaultwiki.org/members/?do=tickets
      Reply Reply  
    8. October 19, 2017 2:56 PM
      SeToY SeToY is offline
      Junior Member
      Quote Originally Posted by pegasus
      Please check the owner and file permissions on the vault/model/dependency/ directory and contents. You can also get this error if PHP does not have permission to reach the file in question.
      Alright, is there a list for the appropriate permissions?
      Reply Reply  
    9. October 19, 2017 3:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      It varies by server. I don't know what users are on your server and you should not post them. The directory needs to be executable by whatever user PHP runs as and the file needs to be readable by that user. This can easily get messed up if you upload files via FTP using a different account than PHP's user. After uploading, it's a good idea to chown the directories you just changed.
      Reply Reply  
    10. October 19, 2017 3:03 PM
      SeToY SeToY is offline
      Junior Member
      Quote Originally Posted by pegasus
      Please check the owner and file permissions on the vault/model/dependency/ directory and contents.
      I just realized, that, when I re-downloaded VaultWiki (the full version), the folder was not present:
      https://gyazo.com/ccf65c3e45ca3d0f9bb7c6eeac67960f
      Reply Reply  
    11. October 19, 2017 3:07 PM
      pegasus pegasus is offline
      VaultWiki Team
      Sorry, I misspoke. The correct location is vault/core/model/dependency as specified in the error message. Make sure this location has the correct permissions.
      Reply Reply  
    12. October 19, 2017 3:11 PM
      SeToY SeToY is offline
      Junior Member
      This directory is readable by the IIS PHP user. I'll go ahead and create a ticket, then.
      Reply Reply  
    13. October 22, 2017 11:16 AM
      pegasus pegasus is offline
      VaultWiki Team
      Thank you for filing the ticket. Some new security measures we had added for 4.0.20 were too strict for IIS environments. I've made some changes to that protection and the non-existent class error has gone away. You should be able to complete the upgrade process now.

      Marking this as Fixed in build 002.
      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 6:49 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.