Hi,
After upgrading to 7.x-1.14, the following errors appear on /admin/config and /admin/reports/status . I did have cleared cache, logged out and logged in, still persists, thanks
Warning: get_headers() [function.get-headers]: This function may only be used against URLs in httprl_build_url_self() (line 365 of /sites/all/modules/httprl/httprl.module).
Warning: get_headers() [function.get-headers]: This function may only be used against URLs in httprl_build_url_self() (line 365 of /sites/all/modules/httprl/httprl.module).
Warning: get_headers() [function.get-headers]: This function may only be used against URLs in httprl_build_url_self() (line 365 of /sites/all/modules/httprl/httprl.module).
Warning: get_headers() [function.get-headers]: This function may only be used against URLs in httprl_build_url_self() (line 365 of /sites/all/modules/httprl/httprl.module).
Warning: get_headers() [function.get-headers]: This function may only be used against URLs in httprl_build_url_self() (line 365 of /sites/all/modules/httprl/httprl.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | httprl-2165853-3-more-cli-fixes.patch | 1.08 KB | mikeytown2 |
| #2 | httprl-2165853-2-use-drupal_is_cli.patch | 656 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedCould you tell me what
echo _httprl_build_drupal_root(); print_r($_SERVER);gives you? Wondering why it's not returning a valid URL. Change comes from #1878454-52: When does something happen? onwards.Comment #2
mikeytown2 commentedLooks like https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal... is what I need. It should prevent the errors from happening until you try to run httprl via the command line. Following patch has been committed but I still need more info to hopefully fully fix the issue.
Comment #3
mikeytown2 commentedThis patch prevents double slashes from happening & makes sure get_headers will work with URLs. Still would like info on what
echo _httprl_build_drupal_root(); print_r($_SERVER);outputs.Comment #4
pasive commentedThanks@mikeytown2
httprl-2165853-3-more-cli-fixes.patch fails(
patching file httprl.module
Hunk #2 FAILED at 357.
), but your previous httprl-2165853-2-use-drupal_is_cli.patch works and solves the problem.
Comment #5
mikeytown2 commentedPatches in this issue are cumulative as each one has been applied. Downloading the latest dev will have all patches in this issue applied. If you look at the git short log you can see the 7.x-1.14 yellow tag and the 3 commits since then where the green 7.x-1.x is the latest dev. All 3 commits since 1.14 are for this issue :)
Comment #6
pasive commentedThanks for the pointer @mikeytown2 to latest dev version
Comment #8
hongpong commentedStill getting this when i do drush cron, using the linkchecker module and the latest dev. Seems ok on the web side tho.
Comment #9
biswajitroyHey mikeytown2,
Patch "httprl-2165853-2-use-drupal_is_cli.patch" worked for me.
Comment #10
howdytom commentedHello,
I’ve successfully applied the patch. Unfortunately I am still getting the warning message when I update Drupal („drush up“). PHP 5.5.26 and allow_url_fopen is enabled
get_headers(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 httprl.module:365 [warning]
Comment #11
howdytom commentedComment #12
crane_cio commentedThanks this fixed things for me.
Comment #13
mikeytown2 commented@howdytom
The get_headers function call was removed from the latest dev version of httprl some time ago.
setting this back to closed.
Comment #14
dadderley commentedHi all,
I am getting these errors with the 7.x-1.14 version.
As a matter of fact, this brought down my Site 5 server.
Below is from Site 5
> Investigating the logs, one of our Server Health admins have spotted these requests:
>
> 174.121.79.2 - - [30/Sep/2015:12:47:55 -0500] "GET /home/actenumc/public_html/httprl_async_function_callback HTTP/1.0" 503 - "-" "-"
> 174.121.79.2 - - [30/Sep/2015:12:48:00 -0500] "GET /home/actenumc/public_html/httprl_async_function_callback HTTP/1.0" 503 - "-" "-"
> 174.121.79.2 - - [30/Sep/2015:12:48:00 -0500] "GET /home/actenumc/public_html/httprl_async_function_callback HTTP/1.0" 503 - "-" "-"
So, I guess I should get on the bandwagon and get the dev version.
Why not just push all the commits to the next version and just be done with it?