Opened 6 years ago
Last modified 11 days ago
#47305 reopened defect (bug)
PHP Warning with PHP 7.3
Reported by: | onlanka | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.2 |
Component: | HTTP API | Keywords: | reporter-feedback close |
Focuses: | Cc: |
Description
My PHP version: 7.3
I can see following error in the error_log
[17-May-2019 11:09:51 UTC] PHP Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /home/onnetsri/public_html/wp-includes/Requests/Transport/cURL.php on line 508
Please make a fix for this issue
Attachments (1)
Change History (10)
#2
follow-up:
↓ 3
@
6 years ago
- Component changed from General to HTTP API
- Keywords reporter-feedback close added
Hi @onlanka,
Thanks for this report!
Can you provide more details? How can someone reproduce this issue to debug further? Does a certain plugin or theme cause the issue? This may be an issue that needs to be reported upstream to the Requests repository on GitHub, but it would help to have more details first.
#3
in reply to:
↑ 2
@
6 years ago
- Resolution set to worksforme
- Status changed from new to closed
I updgraded MySQL 5.7 into MariaDB 10.3.
Still not resolved
#4
@
6 years ago
- Keywords needs-patch reporter-feedback close removed
- Milestone Awaiting Review deleted
#5
@
6 years ago
- Keywords needs-patch added
- Resolution worksforme deleted
- Status changed from closed to reopened
Sad to say error_log came back
[19-May-2019 02:23:28 UTC] PHP Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /home/onlanka/public_html/wp-includes/Requests/Transport/cURL.php on line 508
How this could be happened?
#7
@
5 years ago
- Keywords reporter-feedback added; needs-patch dev-feedback needs-dev-note removed
- Milestone set to Awaiting Review
- Severity changed from critical to normal
Hi @onlanka,
The questions in my previous comment still remain. There is not enough information here to debug or take any action.
Can you provide more details? How can someone reproduce this issue to debug further? Does a certain plugin or theme cause the issue?
Any information that would help someone trigger the issue on their install.
#8
@
5 years ago
I'm not sure if this is relevant so please forgive me if not. I'm using php 7.0 and WordPress 5.4 at the moment and noticed something interesting.
When calling wp_remote_post()
with the POST
method, the body
of the request needs to be json_encode
d or fields are not properly transferred.
When calling wp_remote_post()
with the GET
method, the body
of the request seems to work either as an array *or* a json object, but when it is json_encode
d, it returns the above mentioned warning.
#9
@
11 days ago
- Keywords close added
Is anyone still experiencing this issue?
If so, please provide steps to reproduce it. A unit test or example code that shows the issue would be very helpful.
It's been quite a bit of time, so I'll plan to circle back and close this if additional details are not provided in a few weeks.
error_log