• 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
    • oo few arguments to function vw_Curl_Instance::limit_check(), 4 passed and exactly 5 expected

    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: oo few arguments to function vw_Curl_Instance::limit_check(), 4 passed and exactly 5 expected

    • Issue Tools
      • View Changes
    1. issueid=6148 December 20, 2020 12:26 PM
      expanserpb expanserpb is offline
      Junior Member
      oo few arguments to function vw_Curl_Instance::limit_check(), 4 passed and exactly 5 expected

      I've had 100 of these this week:

      Server error log
      ArgumentCountError: Too few arguments to function vw_Curl_Instance::limit_check(), 4 passed and exactly 5 expected src/addons/vw/vw/_core/instance/curl/vw.php:120
      Generated by: Itra Dec 19, 2020 at 7:02 AM
      Stack trace
      #0 [internal function]: vw_Curl_Instance->limit_check(0, 0, 0, 0)
      #1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(469): call_user_func_array(Array, Array)
      #2 [internal function]: GuzzleHttp\Handler\CurlFactory->GuzzleHttp\Handler\{closure}(Resource id #7, 0, 0, 0, 0)
      #3 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(40): curl_exec(Resource id #7)
      #4 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
      #5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(37): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Ob ject(GuzzleHttp\Psr7\Request), Array)
      #6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
      #7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(54): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(Guzzle Http\Psr7\Request), Array)
      #8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(60): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
      #9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(Guzzle Http\Psr7\Request), Array)
      #10 src/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
      #11 src/vendor/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
      #12 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Client->requestAsync('get', Object(GuzzleHttp\Psr7\Uri), Array)
      #13 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('get', 'https://i.imgur...', Array)
      #14 src/addons/vw/vw/_core/instance/curl/xf2.php(162): GuzzleHttp\Client->__call('get', Array)
      #15 src/addons/vw/vw/_core/controller/dm/base/vw.php(1259): vw_Curl_Instance_XF2->exec()
      #16 src/addons/vw/vw/_core/controller/dm/revision/xf2.php(129): vw_DM_Base_Controller->verify_icon('https://i.imgur...')
      #17 [internal function]: vw_DM_Revision_Controller_XF2->verify_icon('https://i.imgur...', 'icondata', 5, Array, Object(vw_DM_Revision_Controller_XF2))
      #18 src/XF/Mvc/Entity/Entity.php(779): call_user_func_array(Array, Array)
      #19 src/addons/vw/vw/XF/Entity/EntityBase.php(415): XF\Mvc\Entity\Entity->_verifyValueCustom('https://i.imgur...', 'icondata', 5, Array)
      #20 src/XF/Mvc/Entity/Entity.php(632): vw\vw\XF\Entity\EntityBase->_verifyValueCustom('https://i.imgur...', 'icondata', 5, Array)
      #21 src/addons/vw/vw/XF/Entity/EntityBase.php(400): XF\Mvc\Entity\Entity->set('icondata', 'https://i.imgur...', Array)
      #22 src/addons/vw/vw/_core/controller/dm/xf2.php(208): vw\vw\XF\Entity\EntityBase->set('icondata', 'u|https://i.img...')
      #23 src/addons/vw/vw/_core/controller/dm/page/vw.php(995): vw_DM_Controller_XF2->set('icondata', 'u|https://i.img...')
      #24 src/addons/vw/vw/_core/controller/dm/page/vw.php(811): vw_DM_Page_Controller->process_revision()
      #25 src/addons/vw/vw/XF/Entity/EntityBase.php(485): vw_DM_Page_Controller->pre_save(true)
      #26 src/XF/Mvc/Entity/Entity.php(1355): vw\vw\XF\Entity\EntityBase->_preSave()
      #27 src/addons/vw/vw/XF/Entity/EntityBase.php(476): XF\Mvc\Entity\Entity->preSave()
      #28 src/addons/vw/vw/_core/controller/dm/xf2.php(348): vw\vw\XF\Entity\EntityBase->vwPreSave()
      #29 src/addons/vw/vw/_core/controller/ui/edit/page/vw.php(602): vw_DM_Controller_XF2->pre_save()
      #30 src/addons/vw/vw/_core/controller/ui/edit/page/xf0.php(21): vw_UI_Edit_Page_Controller->start_dm(Object(vw_UI_Page_Controller), Array, Array)
      #31 src/addons/vw/vw/_core/controller/ui/edit/vw.php(171): vw_UI_Edit_Page_Controller_XF0->start_dm(Object(vw_UI_Page_Controller), Array, Array)
      #32 src/addons/vw/vw/_core/controller/ui/page/vw.php(472): vw_UI_Edit_Controller->save(Array)
      #33 src/addons/vw/vw/_core/controller/ui/page/vw.php(170): vw_UI_Page_Controller->save()
      #34 src/addons/vw/vw/_core/controller/ui/stack/vw.php(294): vw_UI_Page_Controller->execute()
      #35 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #36 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #37 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controlle r\Wiki\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #38 src/XF/Mvc/Dispatcher.php(350): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #39 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('\\vw\\vw\\Pub\\Cont...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #40 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #41 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #42 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
      #43 src/XF.php(488): XF\App->run()
      #44 index.php(20): XF::runApp('XF\\Pub\\App')
      #45 {main}
      Request state
      array(4) {
      ["url"] => string(32) "/Folklore/Itra?do=save&preview=1"
      ["referrer"] => string(72) "https://chroniclesrp.net/Folklore/Itra?do=edit&etid=1&ecid=2130&eaid=136"
      ["_GET"] => array(3) {
      ["/Folklore/Itra"] => string(0) ""
      ["do"] => string(4) "save"
      ["preview"] => string(1) "1"
      }
      ["_POST"] => array(25) {
      ["message_html"] => string(5229) "<p data-xf-p="1">[template]Infobox_character</p><p data-xf-p="1">|image=https://i.imgur.com/v9YYisY.jpg</p><p data-xf-p="1">|name=Itra</p><p data-xf-p="1">|birthplace=Astral Valley</p><p data-xf-p="1">|age=Eternal</p><p data-xf-p="1">|home=Astral Valley</p><p data-xf-p="1">|race=Demi-Deity(Lesser)</p><p data-xf-p="1">|domain=Insight</p><p data-xf-p="1">|occupation=Goddess</p><p data-xf-p="1">|writer=Kiros Rahnel</p><p data-xf-p="1">|created=Sept 4, 2020</p><p data-xf-p="1">|avatar=Julie Fain</p><p data-xf-p="1">[/template]</p><p data-xf-p="1"><span style="font-size: 18px;"><span style="color: rgb(41, 105, 176);"><span style="font-family: 'Courier New';"><strong>"I DO NOT EXIST</strong></span></span></span></p><p data-xf-p="1"><br></p><p data-xf-p="1"><span style="font-size: 18px;"><span style="color: rgb(41, 105, 176);"><span style="font-family: 'Courier New';"><strong>I AM NO ONE</strong></span></span></span></p><p data-xf-p="1"><br></p><p data-xf-p="1"><span style="font-size: 18px;"><span style="color: rgb(41, 105, 176);"><span style="font-family: 'Courier New';"><strong>BEGONE"</strong></span></span></span></p><p data-xf-p="1"><span style="color: rgb(41, 105, 176);"><em><span style="font-size: 12px;">-Itra, before smiting Her last attempted follower some centuries prior</span></em></span></p><p data-xf-p="1"><br></p><p data-xf-p="1">

      Appearance

      </p><p data-xf-p="1">Speaks with a divine and feminine voice. Form unknown.</p><p data-xf-p="1"><br></p><p data-xf-p="1">Her holy symbol is depicted as the icon used here.</p><p data-xf-p="1"><br></p><p data-xf-p="1"><br></p><p data-xf-p="1">

      Skills and Abilities

      </p><p data-xf-p="1">Itra is an <a href="https://chroniclesrp.net/Folklore/Core-Lore:The-Annunaki-Pantheon">Annunaki&nbsp;</a>goddess of insight. Identifying and dispelling magic is considered Her specialty, reflected in the powers She bestows.</p><p data-xf-p="1"><br></p><p data-xf-p="1">She is master of Her own realm, and has no true ability to influence Arethil aside from using Her lone high priest <a href="https://chroniclesrp.net/Folklore/Kiros-Rahnel">Kiros Rahnel</a> as a proxy for Her will.</p><p data-xf-p="1"><br></p><p data-xf-p="1">As far as deities go, Itra sits near the bottom of the power scale; due to both a refusal of worshippers and Her low position within the pantheon. She can do little to affect other gods and tends to avoid them.</p><p data-xf-p="1"><br></p><p data-xf-p="1"><br></p><p data-xf-p="1">

      Personality

      </p><p data-xf-p="1">Evasive and reclusive. <em><strong>Loathes&nbsp;</strong></em>worship.</p><p data-xf-p="1"><br></p><p data-xf-p="1">Itra is furthermore asocial, inattentive, and two-faced. An eternity of ignoring divine duty has left Her immature and clueless as to the actual responsibilities involved. Kiros will usually be blamed for any failure; regardless of who is actually at fault (Almost always, it's <em>Her</em>). <a href="https://chroniclesrp.net/threads/the-war-of-the-kinniger-dutchy-outriders.2744/post-65675">An example</a></p><p data-xf-p="1"><br></p><p data-xf-p="1">She may exude a sense of contentment when pleased; but Her mood can sharply drop at even the most minor annoyance. She can hardly be considered a pleasant personality, not even among the inhuman divines themselves. Itra is a deity too egotistical to realize Her own inexperience, too inept to recognize Her own faults, and too lazy to gain any significant power.</p><p data-xf-p="1"><br></p><p data-xf-p="1">She is petty; again to levels remarkable even by divine standards. Neither blame nor responsibility tend to be properly shouldered. She is without flaw in Her own mind, and any threat to Her cognitive dissonance tends to result in wrath.</p><p data-xf-p="1"><br></p><p data-xf-p="1">Despite these failings, and many others, Itra remains a holy deity among the hundreds. She will never kill for entertainment, condone needless torture, nor ever knowingly aid any forces of darkness. She is a goddess of good, but also of intolerable disposition.</p><p data-xf-p="1"><br></p><p data-xf-p="1">

      Biography &amp; Lore

      </p><p data-xf-p="1">Itra is a long forgotten deity. What little might exist in ancient texts tells of a deity that took interest in neither followers nor worshippers. Of no known need or use to those people of the era, She became all but unknown.</p><p data-xf-p="1"><br></p><p data-xf-p="1">Itra Herself only knows so much about Her own origins. It it so far thought that She has a connection to Lunis, another ancient Annunaki deity. Given Her lunar association and specialty in ‘insight’, it’s likely that this existence as a deity comes from being a lesser aspect of the higher lunar deity. This is presently unconfirmed by Her.</p><p data-xf-p="1"><br></p><p data-xf-p="1">Kiros is the only priest She has ever anointed, for purposes he does not truly understand.</p><p data-xf-p="1">

      References

      </p><p data-xf-p="1"><a href="https://chroniclesrp.net/threads/the-battle-of-the-kinniger-dutchy-outriders.2744/">The Battle of the Kinniger Dutchy: Outriders</a> - Itra sends Kiros out to investigate an oddity, before ultimately deeming it a quest.</p><p data-xf-p="1"></p>"
      ["prefixid"] => string(1) "0"
      ["edittitle"] => string(4) "Itra"
      ["summary"] => string(0) ""
      ["reason"] => string(0) ""
      ["minor"] => string(1) "1"
      ["query"] => string(0) ""
      ["fonticon"] => string(4) "f15b"
      ["fontstyle"] => string(1) "r"
      ["icontype"] => string(1) "u"
      ["iconurl"] => string(31) "https://i.imgur.com/VVdSnrr.png"
      ["untabbed"] => string(1) "0"
      ["autolink"] => string(2) "-2"
      ["notifytype"] => string(2) "-1"
      ["do"] => string(4) "save"
      ["section"] => string(1) "0"
      ["posthash"] => string(0) ""
      ["poststarttime"] => string(10) "1608361293"
      ["revparentid"] => string(5) "15310"
      ["loggedinuser"] => string(4) "3150"
      ["from_draft"] => string(10) "1:2130:0:0"
      ["_xfToken"] => string(8) "********"
      ["_xfRequestUri"] => string(48) "/Folklore/Itra?do=edit&etid=1&ecid=2130&eaid=136"
      ["_xfWithData"] => string(1) "1"
      ["_xfResponseType"] => string(4) "json"
      }
      }
    Issue Details
    Issue Number 6148
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.1
    Fixed Version 4.1.2
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. December 20, 2020 4:31 PM
      pegasus pegasus is offline
      VaultWiki Team
      This can happen if you are using PHP 8 with XenForo 2.x. Even in XenForo 2.2.2, the version supposedly supporting PHP 8, its CURL client has not been updated for a PHP 8 breaking change.

      In src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php, find:
      Code:
                      // PHP 5.5 pushed the handle onto the start of the args
                      if (is_resource($args[0])) {
                          array_shift($args);
                      }
      This code is intended to add support for a breaking change from PHP < 5.5, where the CURLOPT_PROGRESSFUNCTION increased from 4 arguments to 5, by adding the CURL object's resource as the first argument. In PHP 8, however, the first argument is no longer a resource, but a CurlHandle object. Based on its code, this causes the behavior of the XenForo function to revert to the PHP 5.4 behavior, which is wrong for PHP 8 which still needs all 5 arguments.

      Reference for PHP 8 change: https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.res ource2object

      Therefore, provided you are using PHP 8, this is a bug in XenForo, and should be reported to them (they may appreciate my notes from this post).

      If you are using PHP 8, note that, as of writing, there is no available version of VaultWiki which is stated to be compatible with it. That will not occur until the next release.
      Reply Reply  
    2. December 20, 2020 4:44 PM
      expanserpb expanserpb is offline
      Junior Member
      PHP Version 7.3.24-3+ubuntu16.04.1+deb.sury.org+1
      Reply Reply  
    3. December 20, 2020 5:37 PM
      pegasus pegasus is offline
      VaultWiki Team
      Now that I re-read the code, I see that XenForo is actively removing the handle from the argument list, and reducing the number of arguments from 5 to 4 for all versions under PHP 8. Not accounting for this is a bug in VaultWiki, but there is still a bug in XenForo because it does not perform the same change under PHP 8.

      For VaultWiki, we have to avoid using XenForo's progress-function wrapper, since VaultWiki expects all 5 arguments. In src/addons/vw/vw/_core/instance/curl/xf2.php, find and remove:
      Code:
      			case 'progressfunction':
      				return 'progress';
      Find:
      Code:
      case 'nobody':
      AFTER it, add:
      Code:
      			case 'noprogress':
      			case 'progressfunction':
      Reply Reply  
    4. February 11, 2021 12:11 PM
      expanserpb expanserpb is offline
      Junior Member
      Had to make this change again after the patch, did it not get merged into the right branch?
      Reply Reply  
    5. February 12, 2021 7:14 AM
      pegasus pegasus is offline
      VaultWiki Team
      You appear to be correct. Thanks, I will update the patch.
      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 2:33 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.