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).

Comments

mikeytown2’s picture

Could 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.

mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new656 bytes

Looks 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.

mikeytown2’s picture

StatusFileSize
new1.08 KB

This 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.

pasive’s picture

Thanks@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.

mikeytown2’s picture

Patches 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 :)

pasive’s picture

Thanks for the pointer @mikeytown2 to latest dev version

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

hongpong’s picture

Still getting this when i do drush cron, using the linkchecker module and the latest dev. Seems ok on the web side tho.

biswajitroy’s picture

Hey mikeytown2,
Patch "httprl-2165853-2-use-drupal_is_cli.patch" worked for me.

howdytom’s picture

Hello,

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]

howdytom’s picture

Status: Closed (fixed) » Needs review
crane_cio’s picture

Thanks this fixed things for me.

mikeytown2’s picture

Status: Needs review » Closed (fixed)

@howdytom
The get_headers function call was removed from the latest dev version of httprl some time ago.
setting this back to closed.

dadderley’s picture

Hi 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?