Server Error Upgrading To Latest Version

Ozzy47

Well-known member
Affected version
2.2.15
Received an error upgrading to 2.2.15 running PHP 8.2.14

Code:
ErrorException: [E_DEPRECATED] Creation of dynamic property GuzzleHttp\Psr7\LazyOpenStream::$stream is deprecated src/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php:33
Generated by: Ozzy47 Jan 31, 2024 at 2:53 PM

Stack trace

#0 src/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php(33): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/snogssite...', 33)
#1 src/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php(138): GuzzleHttp\Psr7\LazyOpenStream->__get('stream')
#2 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(395): GuzzleHttp\Psr7\LazyOpenStream->write([invalid])
#3 [internal function]: GuzzleHttp\Handler\CurlFactory->GuzzleHttp\Handler\{closure}(Object(CurlHandle), [invalid])
#4 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(40): curl_exec(Object(CurlHandle))
#5 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(29): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/vendor/guzzlehttp/guzzle/src/Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/vendor/guzzlehttp/guzzle/src/Client.php(351): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#13 src/vendor/guzzlehttp/guzzle/src/Client.php(162): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#14 src/vendor/guzzlehttp/guzzle/src/Client.php(182): GuzzleHttp\Client->requestAsync('post', Object(GuzzleHttp\Psr7\Uri), Array)
#15 src/vendor/guzzlehttp/guzzle/src/Client.php(95): GuzzleHttp\Client->request('post', 'https://xenforo...', Array)
#16 src/XF/Service/Upgrade/Downloader.php(52): GuzzleHttp\Client->__call('post', Array)
#17 src/XF/Admin/Controller/Tools.php(513): XF\Service\Upgrade\Downloader->download(2021570, 1706572980, NULL)
#18 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionUpgradeXf(Object(XF\Mvc\ParameterBag))
#19 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'UpgradeXf', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#20 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#21 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#22 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#23 src/XF.php(524): XF\App->run()
#24 admin.php(13): XF::runApp('XF\\Admin\\App')
#25 {main}

Request state

array(4) {
  ["url"] => string(27) "/admin.php?tools/upgrade-xf"
  ["referrer"] => string(46) "https://ozzmodz.com/admin.php?tools/upgrade-xf"
  ["_GET"] => array(1) {
    ["tools/upgrade-xf"] => string(0) ""
  }
  ["_POST"] => array(2) {
    ["_xfToken"] => string(8) "********"
    ["confirm_version_id"] => string(7) "2021570"
  }
}
 
Thanks for reporting. I assume the upgrade ran successfully and this was just logged, and you were running debug mode?

If so, safe to ignore this for now but we'll be able to fix in a future release.
 
It is only because of that.

No need to report if you’re seeing/not seeing this.

It’s just a very minor compatibility issue that we may need to address in the future but nothing will be affected until a future PHP release.
 
Top Bottom