Bug 1935879 - Call to undefined function GuzzleHttp\Psr7\stream_for()
Summary: Call to undefined function GuzzleHttp\Psr7\stream_for()
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: mediawiki
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Michael Cronenworth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-05 17:29 UTC by Xhan
Modified: 2021-11-30 18:15 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 2097578 (view as bug list)
Environment:
Last Closed: 2021-11-30 18:15:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Xhan 2021-03-05 17:29:33 UTC
Description of problem:

Error from line 41 of /usr/share/mediawiki/includes/http/MWCallbackStream.php: Call to undefined function GuzzleHttp\Psr7\stream_for()

Version-Release number of selected component (if applicable):

mediawiki-1.35.1-1.fc33.noarch

How reproducible:


Steps to Reproduce:
1.create or edit a page
2.write [http://www.google.com]
3.save

Actual results:

[YEJg4zxCH6EgJGEZhN0fKAAAAIM] /wiki/index.php?title=Test&action=submit Error from line 41 of /usr/share/mediawiki/includes/http/MWCallbackStream.php: Call to undefined function GuzzleHttp\Psr7\stream_for()

Backtrace:

#0 /usr/share/mediawiki/includes/http/GuzzleHttpRequest.php(110): MWCallbackStream->__construct()
#1 /usr/share/mediawiki/includes/http/GuzzleHttpRequest.php(261): GuzzleHttpRequest->doSetCallback()
#2 /usr/share/mediawiki/includes/http/GuzzleHttpRequest.php(120): GuzzleHttpRequest->prepare()
#3 /usr/share/mediawiki/includes/http/HttpRequestFactory.php(186): GuzzleHttpRequest->execute()
#4 /usr/share/mediawiki/includes/http/Http.php(46): MediaWiki\Http\HttpRequestFactory->request()
#5 /usr/share/mediawiki/includes/http/Http.php(74): Http::request()
#6 /usr/share/mediawiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(369): Http::get()
#7 /usr/share/mediawiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(329): BaseBlacklist->getHttpText()
#8 /usr/share/mediawiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(294): BaseBlacklist->buildSharedBlacklists()
#9 /usr/share/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1529): BaseBlacklist->{closure}()
#10 /usr/share/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate()
#11 /usr/share/mediawiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(295): WANObjectCache->getWithSetCallback()
#12 /usr/share/mediawiki/extensions/SpamBlacklist/includes/BaseBlacklist.php(224): BaseBlacklist->getSharedBlacklists()
#13 /usr/share/mediawiki/extensions/SpamBlacklist/includes/SpamBlacklist.php(89): BaseBlacklist->getBlacklists()
#14 /usr/share/mediawiki/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(41): SpamBlacklist->filter()
#15 /usr/share/mediawiki/includes/HookContainer/HookContainer.php(320): SpamBlacklistHooks::filterMergedContent()
#16 /usr/share/mediawiki/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#17 /usr/share/mediawiki/includes/HookContainer/HookRunner.php(1529): MediaWiki\HookContainer\HookContainer->run()
#18 /usr/share/mediawiki/includes/EditPage.php(1904): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent()
#19 /usr/share/mediawiki/includes/EditPage.php(2232): EditPage->runPostMergeFilters()
#20 /usr/share/mediawiki/includes/EditPage.php(1724): EditPage->internalAttemptSave()
#21 /usr/share/mediawiki/includes/EditPage.php(680): EditPage->attemptSave()
#22 /usr/share/mediawiki/includes/actions/EditAction.php(71): EditPage->edit()
#23 /usr/share/mediawiki/includes/actions/SubmitAction.php(38): EditAction->show()
#24 /usr/share/mediawiki/includes/MediaWiki.php(527): SubmitAction->show()
#25 /usr/share/mediawiki/includes/MediaWiki.php(313): MediaWiki->performAction()
#26 /usr/share/mediawiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
#27 /usr/share/mediawiki/includes/MediaWiki.php(543): MediaWiki->main()
#28 /usr/share/mediawiki/index.php(53): MediaWiki->run()
#29 /usr/share/mediawiki/index.php(46): wfIndexMain()
#30 {main}

Expected results:

No errors and page saved.

Additional info:

MWCallbackStream.php seems to use deprecated functions ( "stream_for ()" instead of "Utils::streamFor" )

Comment 1 Xhan 2021-03-09 12:20:22 UTC
Hi,

I installed "composer" ( https://getcomposer.org/) in version 1.10.20 and run "composer update --no-dev " in the mediawiki directory.
After updating several modules, the problem no longer seems present.

Is this normal, the package update does not provide component update or did I miss something when updating to Fedora 33? (I was previously in Fedora 31, and I switched to 32 then 33.)

Comment 2 Michael Cronenworth 2021-03-13 17:38:12 UTC
I cannot reproduce the problem.

If you have manually modified your mediawiki installation I cannot support that. I suggest you remove any modifications from /usr/share/mediawiki.

Comment 3 Ben Cotton 2021-11-04 14:55:47 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2021-11-04 15:54:22 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2021-11-30 18:15:20 UTC
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.