You do a is_resource() check against the object returned by db_query(). This does not work on mysqli, which does not use resources for query objects.

(figured this out while trying to put together a patch to work with location 3.)

References:
http://bugs.php.net/bug.php?id=42797

CommentFileSizeAuthor
#3 kml_mysqli.patch702 bytesbdragon

Comments

geodaniel’s picture

Thanks bdragon. Hoping to sit down soon and spend some time on KML. Looking forward to getting it working with Location 3.

bdragon’s picture

Status: Active » Needs review

I believe something like this should help. It seemed to fix things for me...

bdragon’s picture

StatusFileSize
new702 bytes

Fighting with the attachment bug...

cglusky’s picture

this looks to be applied in the latest version?

geodaniel’s picture

Status: Needs review » Fixed

This is already in the 5.x version and now 6.x version. Thanks, bdragon.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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