https://site/ip_geoloc/current_location|Fatal Error: Unknown: Use of mbstring.http_output is deprecated in %function (line 0 of Unknown).

I am running php 5.6+.

mbstring.http.output is deprecated for php above 5.6.

I am not sure why it is being called

Comments

SocialNicheGuru created an issue. See original summary.

RdeBoer’s picture

Thanks for reporting SocialNicheGuru.

But hold on... That function isn't used in ip_geoloc. Must be another module that is involved in the process of obtaining the current location. Maybe JS, Smart IP ?

Are you on PHP 7?

Rik

SocialNicheGuru’s picture

Hi

I am using php5.6

when I goto the page mysite.com/js/ip_geoloc/current_location

I do have the js module enabled

I get this:

{"response":{"code":500,"message":"Internal Server Error"},"title":"Method Not Allowed","messages":{"error":["A request was made of a resource using a request method not supported by that resource; for example, using GET on a form which requires data to be presented via POST, or using PUT on a read-only resource. Please contact the site administrator if this problem persists.","\u003Cem class=\u0022placeholder\u0022\u003EFatal Error\u003C\/em\u003E: Unknown: Use of mbstring.http_output is deprecated (line \u003Cem class=\u0022placeholder\u0022\u003E0\u003C\/em\u003E of \u003Cem class=\u0022placeholder\u0022\u003EUnknown\u003C\/em\u003E)."]},"settings":[]}

SocialNicheGuru’s picture

this string does occur in 7.x-1.30 version:

grep -in 'ip_geoloc/current_location' -d recurse *
ip_geoloc_api.inc:381:    $menu_callback = "$base_url/" . (variable_get('clean_url', 0) ? 'js/ip_geoloc/current_location' : '?q=js/ip_geoloc/current_location');
ip_geoloc_blocks.inc:680:  $menu_callback = variable_get('clean_url', 0) ? 'js/ip_geoloc/current_location' : '?q=js/ip_geoloc/current_location';
ip_geoloc.module:177:  $items['js/ip_geoloc/current_location'] = array(
ip_geoloc.module:219:  // received on "js/ip_geoloc/current_location".
ip_geoloc.module:289:    // '/js/ip_geoloc/current_location', which receives the geolocation data
ip_geoloc.module:352: * Comes in via menu callback js/ip_geoloc/current_location, see function
SocialNicheGuru’s picture

aarrgghhhh I think this might be due to an incompatibility to http://drupal.org/project/js 7.x-2.x versions.
When I removed js, it all worked.

SocialNicheGuru’s picture

Title: PHP Error: ip_geoloc_current_location.js error: Internal Server Error (500) » JS module no longer works: PHP Error: ip_geoloc_current_location.js error: Internal Server Error (500)