• 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
    • ErrorException: Undefined variable: patch - vault\core\model\version\vw.php:342

    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: ErrorException: Undefined variable: patch - vault\core\model\version\vw.php:342

    • Issue Tools
      • View Changes
    1. issueid=5363 February 18, 2018 4:01 PM
      SeToY SeToY is offline
      Junior Member
      ErrorException: Undefined variable: patch - vault\core\model\version\vw.php:342
      ErrorException: Undefined variable: patch - vault\core\model\version\vw.php:342

      Code:
      Server Error Log
      Error Info
      ErrorException: Undefined variable: patch - vault\core\model\version\vw.php:342
      Generated By: Unknown Account, 47 minutes ago
      Stack Trace
      #0 D:\inetpub\wwwroot\domain.com\vault\core\model\version\vw.php(342): XenForo_Application::handlePhpError(8, 'Undefined varia...', 'D:\\inetpub\\wwwr...', 342, Array)
      #1 D:\inetpub\wwwroot\domain.com\vault\core\model\cron\cleanup\xf.php(43): vw_Version_Model->patch(':XF 1.3.0 Beta ...', 'proxy')
      #2 D:\inetpub\wwwroot\domain.com\vault\core\model\cron\deferred\cleanup\vw.php(52): vw_Cron_Cleanup_Model_XF->clean_proxied_images(1518984766)
      #3 D:\inetpub\wwwroot\domain.com\vault\core\model\cron\deferred\vw.php(65): vw_Cron_Deferred_Cleanup_Model->run(Array)
      #4 D:\inetpub\wwwroot\domain.com\library\vw\XenForo\Deferred\vw.php(28): vw_Cron_Deferred_Model->exec()
      #5 D:\inetpub\wwwroot\domain.com\library\XenForo\Model\Deferred.php(295): vw_XenForo_Deferred_vw->execute(Array, Array, 7.9999971389771, '')
      #6 D:\inetpub\wwwroot\domain.com\library\XenForo\Model\Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999971389771, '', false)
      #7 D:\inetpub\wwwroot\domain.com\library\XenForo\Model\Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
      #8 D:\inetpub\wwwroot\domain.com\deferred.php(23): XenForo_Model_Deferred->run(false)
      #9 {main}
      Request State
      array(3) {
        ["url"] => string(49) "https://domain.com/deferred.php"
        ["_GET"] => array(0) {
        }
        ["_POST"] => array(4) {
          ["_xfRequestUri"] => string(45) "/categories/los-santos-police-department.138/"
          ["_xfNoRedirect"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["_xfResponseType"] => string(4) "json"
        }
      }
    Issue Details
    Issue Number 5363
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.21
    Fixed Version 4.0.21
    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. February 18, 2018 4:08 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/version/vw.php, find (around line 342 only):
      Code:
      'label' => "'" . vw_DB::get()->func()->escape_string($patch) . "'"
      Replace with:
      Code:
      'label' => "'" . vw_DB::get()->func()->escape_string($entry) . "'"
      Reply Reply  
    2. February 20, 2018 3:39 PM
      SeToY SeToY is offline
      Junior Member
      Didn't quite fix that issue.

      Code:
      Server Error Log
      Error Info
      ErrorException: Undefined variable: patch - vault\core\model\version\vw.php:342
      Generated By: Unknown Account, 26 minutes ago
      Stack Trace
      #0 D:\inetpub\wwwroot\domain.com\vault\core\model\version\vw.php(342): XenForo_Application::handlePhpError(8, 'Undefined varia...', 'D:\\inetpub\\wwwr...', 342, Array)
      #1 D:\inetpub\wwwroot\domain.com\vault\core\model\cron\cleanup\xf.php(43): vw_Version_Model->patch(':XF 1.3.0 Beta ...', 'proxy')
      #2 D:\inetpub\wwwroot\domain.com\vault\core\model\cron\deferred\cleanup\vw.php(52): vw_Cron_Cleanup_Model_XF->clean_proxied_images(1519157522)
      #3 D:\inetpub\wwwroot\domain.com\vault\core\model\cron\deferred\vw.php(65): vw_Cron_Deferred_Cleanup_Model->run(Array)
      #4 D:\inetpub\wwwroot\domain.com\library\vw\XenForo\Deferred\vw.php(28): vw_Cron_Deferred_Model->exec()
      #5 D:\inetpub\wwwroot\domain.com\library\XenForo\Model\Deferred.php(295): vw_XenForo_Deferred_vw->execute(Array, Array, 7.9999971389771, '')
      #6 D:\inetpub\wwwroot\domain.com\library\XenForo\Model\Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999971389771, '', false)
      #7 D:\inetpub\wwwroot\domain.com\library\XenForo\Model\Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
      #8 D:\inetpub\wwwroot\domain.com\deferred.php(23): XenForo_Model_Deferred->run(false)
      #9 {main}
      Request State
      array(3) {
        ["url"] => string(49) "https://domain.com/deferred.php"
        ["_GET"] => array(0) {
        }
        ["_POST"] => array(4) {
          ["_xfRequestUri"] => string(74) "/threads/was-suchen-wir-wann-und-warum-und-was-benoetige-ich-dafuer.11136/"
          ["_xfNoRedirect"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["_xfResponseType"] => string(4) "json"
        }
      }
      Reply Reply  
    3. February 27, 2018 3:44 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you are still experiencing this issue, please post lines 340-345 from your version of that file.
      Reply Reply  
    4. February 28, 2018 2:55 PM
      SeToY SeToY is offline
      Junior Member
      336-345

      Code:
      		vw_DB::get()->query()->insert(array(
      			'table' => 'vw_patchinfo',
      			'ignore' => 1,
      			'values' => array(
      				array(
      					vw_DB::get()->query()->wrap('version') => "'" . vw_DB::get()->func()->escape_string($future) . "'",
      					'label' => "'" . vw_DB::get()->func()->escape_string($patch) . "'"
      				)
      			)
      		));
      Reply Reply  
    5. March 1, 2018 3:25 PM
      pegasus pegasus is offline
      VaultWiki Team
      These lines do not reflect the edit suggested in the second post. The lines still contain the "find" code which needs to be replaced. That is why you are still receiving the notice.
      Reply Reply  
    6. March 1, 2018 3:26 PM
      SeToY SeToY is offline
      Junior Member
      Is this fixed in Build 002? Then I'll just update from 001 to 002 :P

      There's also an:
      Code:
      'label' => "'" . vw_DB::get()->func()->escape_string($patch) . "'"
      on line 296
      Reply Reply  
    7. March 2, 2018 9:37 AM
      pegasus pegasus is offline
      VaultWiki Team
      Yes, this looks to be 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 4:40 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.