• 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: Uncaught Error: Class 'vw_Hard_Core' not found

    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: Uncaught Error: Class 'vw_Hard_Core' not found

    • Issue Tools
      • View Changes
    1. issueid=5661 February 23, 2019 6:50 AM
      SeToY SeToY is offline
      Junior Member
      PHP Fatal error: Uncaught Error: Class 'vw_Hard_Core' not found
      PHP Fatal error: Uncaught Error: Class 'vw_Hard_Core' not found

      Hi there,

      after changing the file mentioned in my previous bug report (https://www.vaultwiki.org/issues/5660/#note31036) I resumed the upgrade. It went on for a few seconds and then yielded a HTTP500 that the entire forum (not only ACP, but entire website) is stuck on.

      PHP error log:
      Code:
      [23-Feb-2019 11:48:27 UTC] PHP Fatal error:  Uncaught Error: Class 'vw_Hard_Core' not found in D:\inetpub\wwwroot\test.domain.com\src\addons\vw\vw\XF\Entity\UserProfile.php:23
      Stack trace:
      #0 D:\inetpub\wwwroot\test.domain.com\src\XF\Mvc\Entity\Manager.php(70): vw\vw\XF\Entity\UserProfile::getStructure(Object(XF\Mvc\Entity\Structure))
      #1 D:\inetpub\wwwroot\test.domain.com\src\XF\Mvc\Entity\Manager.php(704): XF\Mvc\Entity\Manager->getEntityStructure('XF:UserProfile')
      #2 D:\inetpub\wwwroot\test.domain.com\src\XF\Repository\User.php(149): XF\Mvc\Entity\Manager->instantiateEntity('XF:UserProfile', Array, Array)
      #3 D:\inetpub\wwwroot\test.domain.com\src\XF\Repository\User.php(146): XF\Repository\User->_hydrateGuestUserData(Array)
      #4 D:\inetpub\wwwroot\test.domain.com\src\XF\Repository\User.php(99): XF\Repository\User->_hydrateGuestUserData(Array)
      #5 D:\inetpub\wwwroot\test.domain.com\src\XF\Repository\User.php(31): XF\Repository\User->getGue in D:\inetpub\wwwroot\test.domain.com\src\addons\vw\vw\XF\Entity\UserProfile.php on line 23
    Issue Details
    Issue Number 5661
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Infinite Loops
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 Alpha 1 Public
    Fixed Version 4.1.0 Alpha 2
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 23, 2019 12:38 PM
      pegasus pegasus is offline
      VaultWiki Team
      In src/addons/vw/vw/XF/Entity/UserProfile.php, find:
      Code:
      $structure = parent::getStructure($structure);
      BEFORE it, add:
      Code:
      \vw\vw\Core::init();
      Reply Reply  
    2. February 23, 2019 2:04 PM
      SeToY SeToY is offline
      Junior Member
      Now the entire board loads, but looks like this (completely without css, I assume): https://gyazo.com/781958c4e0093fd82c5fda74fc34f464
      Reply Reply  
    3. February 23, 2019 2:12 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please check the content of the CSS that was loaded and XenForo's server error log. There might be errors in it which are preventing the CSS from loading.
      Reply Reply  
    4. February 23, 2019 2:29 PM
      SeToY SeToY is offline
      Junior Member
      Code:
      [url]http://domain.com/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=15&l=2&d=1550922482&k=630041631bc94a27c628c6e0174bc187ce0fa2f7[/url]
      [url]http://domain.com/css.php?css=public%3Anotices.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Auix_megaMenu.less%2Cpublic%3Aextra.less&s=15&l=2&d=1550922482&k=d0383fa47bac332d333b9c216bc5a6d44933b464[/url]
      HTTP500

      Server Error Log:
      Code:
      Class 'vw_Hard_Core' not found
      src\addons\vw\vw\XF\CssRenderer.php
      Line 30
      #0 src\XF\CssRenderer.php(250): vw\vw\XF\CssRenderer->renderTemplate('public:normaliz...', NULL)
      #1 src\XF\CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
      #2 src\XF\CssWriter.php(53): XF\CssRenderer->render(Array)
      #3 css.php(30): XF\CssWriter->run(Array, 15, 2, '630041631bc94a2...')
      #4 {main}
      Reply Reply  
    5. February 23, 2019 2:53 PM
      pegasus pegasus is offline
      VaultWiki Team
      I would recommend that you rebuild the add-on data, as it seems like your forum has class extensions in memory but not code event listeners. Add-Ons > Add-Ons > Installed Add-Ons > VaultWiki > [dropdown] > Rebuild.

      If that doesn't work, you may have another add-on installed which uses code-event app_setup and returns false from its listener.
      Reply Reply  
    6. February 23, 2019 3:06 PM
      SeToY SeToY is offline
      Junior Member
      I cannot enter the AdminCP as it returns HTTP500 when logged in, too.
      Reply Reply  
    7. February 23, 2019 3:13 PM
      pegasus pegasus is offline
      VaultWiki Team
      You will need to add the following to the end of your src/config.php file:
      Code:
      $config['enableListeners'] = false;
      Once you perform the rebuild, you would remove this line to check whether it has worked.
      Reply Reply  
    8. February 23, 2019 3:20 PM
      SeToY SeToY is offline
      Junior Member
      Okay, initially I couldn't select "rebuild" as the upgrade was apparently still pending. So I re-ran the upgrade again with listeners disabled, then another error popped up:

      Code:
      Error: Class 'vw\vw\vw_DB' not found in src\addons\vw\vw\Setup.php at line 1053
      vw\vw\Setup->vwFinalRebuild() in src\addons\vw\vw\Setup.php at line 1033
      vw\vw\Setup->postUpgrade() in src\XF\AddOn\AddOn.php at line 574
      XF\AddOn\AddOn->postUpgrade() in src\XF\Admin\Controller\AddOn.php at line 698
      XF\Admin\Controller\AddOn->actionFinalize() in src\XF\Mvc\Dispatcher.php at line 321
      XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 248
      XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 100
      XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 50
      XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2177
      XF\App->run() in src\XF.php at line 390
      XF::runApp() in admin.php at line 13
      and:

      Code:
      Server error log
      ErrorException: Undefined variable: config src\addons\vw\vw\_install\lib\upgradepath\steps\4\1\0\alpha\2\XF21\xf2.php:59
      Generated by: SeToY 23 Feb 2019 at 21:16
      Stack trace
      #0 src\addons\vw\vw\_install\lib\upgradepath\steps\4\1\0\alpha\2\XF21\xf2.php(59): vw\vw\Setup\View->handle_php_error(8, 'Undefined varia...', 'D:\\inetpub\\wwwr...', 59, Array)
      #1 src\addons\vw\vw\Setup.php(280): vw_Install_UpgradePath_Steps_410alpha2_XF21_Controller_XF2->{closure}(Object(vw\vw\Setup\Caller\Upgrade), false)
      #2 src\addons\vw\vw\Setup.php(890): vw\vw\Setup->vwRunStep('upgrade', Object(vw_Install_UpgradePath_Steps_410alpha2_XF21_Controller_XF2), Array, 4)
      #3 src\XF\Admin\Controller\AddOn.php(575): vw\vw\Setup->upgrade(Array)
      #4 src\XF\Mvc\Dispatcher.php(321): XF\Admin\Controller\AddOn->actionUpgrade(Object(XF\Mvc\ParameterBag))
      #5 src\XF\Mvc\Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'Upgrade', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\AddOn), NULL)
      #6 src\XF\Mvc\Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\AddOn), NULL)
      #7 src\XF\Mvc\Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #8 src\XF\App.php(2177): XF\Mvc\Dispatcher->run()
      #9 src\XF.php(390): XF\App->run()
      #10 admin.php(13): XF::runApp('XF\\Admin\\App')
      #11 {main}
      and:

      Code:
      Server error log
      Error: Class 'vw\vw\vw_DB' not found src\addons\vw\vw\Setup.php:1053
      Generated by: SeToY 23 Feb 2019 at 21:18
      Stack trace
      #0 src\addons\vw\vw\Setup.php(1033): vw\vw\Setup->vwFinalRebuild(Array)
      #1 src\XF\AddOn\AddOn.php(574): vw\vw\Setup->postUpgrade(47, Array)
      #2 src\XF\Admin\Controller\AddOn.php(698): XF\AddOn\AddOn->postUpgrade(Array)
      #3 src\XF\Mvc\Dispatcher.php(321): XF\Admin\Controller\AddOn->actionFinalize(Object(XF\Mvc\ParameterBag))
      #4 src\XF\Mvc\Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'Finalize', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\AddOn), NULL)
      #5 src\XF\Mvc\Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\AddOn), NULL)
      #6 src\XF\Mvc\Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #7 src\XF\App.php(2177): XF\Mvc\Dispatcher->run()
      #8 src\XF.php(390): XF\App->run()
      #9 admin.php(13): XF::runApp('XF\\Admin\\App')
      #10 {main}
      Reply Reply  
    9. February 23, 2019 3:28 PM
      pegasus pegasus is offline
      VaultWiki Team
      In src/addons/vw/vw/Setup.php, find:
      Code:
      'where' => vw_DB::get()->query()->eq('hold', 1)
      Replace with:
      Code:
      'where' => \vw_DB::get()->query()->eq('hold', 1)
      In src/addons/vw/vw/_install/lib/upgradepath/steps/4/1/0/alpha/2/XF21/xf2.php, find:
      Code:
      $entity->option_value = $config;
      Replace with:
      Code:
      $entity->option_value = [];
      Reply Reply  
    10. February 23, 2019 3:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      As for the original cause of this issue, I believe I've figured it out and it involves XenForo installing Class Extensions first and in a different request from Code Event Listeners. This is only a problem during VaultWiki upgrades when it expects to remain active throughout the process.

      In src/addons/vw/vw/Setup/Caller/Upgrade.php, find:
      Code:
      $this->update_final();
      BEFORE it, add:
      Code:
      		$addon = $this->view->get('setup')->vwGetAddOn()->getInstalledAddOn();
      
      		if (!$addon->is_processing)
      		{
      			$addon->is_processing = true;
      			$addon->save();
      		}
      Reply Reply  
    11. February 23, 2019 4:47 PM
      SeToY SeToY is offline
      Junior Member
      Alright, changed everything you told me and re-ran the upgrade with disabled listeners again and it went through this time. Then I enabled the listeners again. So far it seems to have worked.

      Error 1: I have installed XenPorta 2 from Jaxel and the Home page (where the portal resides) now displays a generic error:
      An error occurred while the page was being generated. Please try again later.

      Nothing in PHP or XenForo error logs though

      Error 2: I try to open the Wiki (navigation entry to domain.com/wiki/) and it tells me "The requested page could not be found."

      Also neither PHP nor XenForo errors

      I'll try to run the upgrade again with a fresh test copy of my production board as soon as the new version is out

      Thanks and keep up the good work!

      Edit:
      Regarding error 2: I've now seen that it automatically redirects me to domain.com/wiki/ although I'm on test.domain.com. Changed the Wiki Base URL (and it's saying "in progress" since like 5 minutes after I saved) but it works now.
      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 12:34 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.