PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar janschoenherr
janschoenherr
3 Jul 2024

Fixes the error: parse_url(): Argument #1 ($url) must be of type string, array given

Summary of Changes

This PR fixes the same issue that was fixed for the CurlTransport:
a406543

Pull Request for Issue ##42769.

From the Laminas\Diactoros\MessageTrait::getHeaders() doc

@return array Returns an associative array of the message's headers. Each key MUST be a header name, and each value MUST be an array of strings.

PR https://github.com/joomla/joomla-cms/pull/43130/files#diff-eaa7b598c95837c0e0230852d37007e28938d2bfe13048b42462ce106803447fL133 fixes the same issue, but this PR isolates the fix for the above mentioned error.

Testing Instructions

The same testing Instructions as in #42769 but instead of 'curl' use 'socket'.

Actual result BEFORE applying this Pull Request

error: parse_url(): Argument #1 ($url) must be of type string, array given

Expected result AFTER applying this Pull Request

no error

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar janschoenherr janschoenherr - open - 3 Jul 2024
avatar janschoenherr janschoenherr - change - 3 Jul 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2024
Category Libraries
avatar janschoenherr janschoenherr - change - 3 Jul 2024
The description was changed
avatar janschoenherr janschoenherr - edited - 3 Jul 2024
avatar janschoenherr janschoenherr - change - 3 Jul 2024
The description was changed
avatar janschoenherr janschoenherr - edited - 3 Jul 2024
avatar janschoenherr janschoenherr - change - 3 Jul 2024
The description was changed
avatar janschoenherr janschoenherr - edited - 3 Jul 2024
avatar janschoenherr janschoenherr - change - 3 Jul 2024
The description was changed
avatar janschoenherr janschoenherr - edited - 3 Jul 2024
avatar janschoenherr janschoenherr - change - 3 Jul 2024
Labels Added: PR-5.1-dev
avatar janschoenherr janschoenherr - change - 3 Jul 2024
The description was changed
avatar janschoenherr janschoenherr - edited - 3 Jul 2024
avatar janschoenherr janschoenherr - change - 3 Jul 2024
The description was changed
avatar janschoenherr janschoenherr - edited - 3 Jul 2024
avatar bembelimen bembelimen - test_item - 3 Jul 2024 - Tested successfully
avatar bembelimen
bembelimen - comment - 3 Jul 2024

I have tested this item ✅ successfully on e13b1cf


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43734.

avatar LadySolveig LadySolveig - merge - 3 Jul 2024
avatar LadySolveig LadySolveig - change - 3 Jul 2024
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-07-03 12:38:55
Closed_By LadySolveig
avatar LadySolveig LadySolveig - close - 3 Jul 2024
avatar LadySolveig
LadySolveig - comment - 3 Jul 2024

Thank you @janschoenherr ? and also for testing @bembelimen

avatar LadySolveig LadySolveig - change - 3 Jul 2024
Title
Change redirect url (from headers['Location']) from array to string
[5.1] Change redirect url (from headers['Location']) from array to string
avatar LadySolveig LadySolveig - edited - 3 Jul 2024

Add a Comment

Login with GitHub to post a comment