The geoip_language.module is using the LANGUAGE_NEGOTIATION_NONE from Druapl 6. the New constant in 7.x is LANGUAGE_NONE.

Substitution fixes the error message.

Can the commiters confirm this is OK?

CommentFileSizeAuthor
#4 1407850-4.patch2.22 KBjoelpittet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

revnoah’s picture

Priority: Normal » Major

I can confirm this issue. It's an easy fix that hasn't made it into the project since you reported it over a year ago.

Harald.Winzer’s picture

Hello,

when I use a replace in file geoip_language.module on LANGUAGE_NEGOTIATION_NONE to LANGUAGE_NONE or I do it manually in line 63 I receive afterwards the following error:
Fatal error: Call to undefined function db_fetch_object() in /homepages/8/nnn/htdocs/xxx/sites/all/modules/geoip/geoip_language/geoip_language.module on line 253

Please assist, thanks!

joelpittet’s picture

I believe it should be LANGUAGE_NEGOTIATION_DEFAULT

@see https://drupal.org/comment/6879722#comment-6879722

joelpittet’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
2.22 KB

Not sure if this the solution but it's on the way.

joelpittet’s picture

Status: Needs review » Closed (duplicate)

Actually this is all solved in #887268-67: Port GeoIP API to D7