db_fetch_object does not exist in v7
Can someone change line 29 of gmap_location.install to the foreach below?

- while ($row = db_fetch_object($result)) {
+ foreach($result as $row) {

Comments

mjgruta’s picture

I have this issue and your code works. thanks

mjgruta’s picture

Status: Active » Needs review
zabelc’s picture

I came across this issue and the code above fixes it

bdragon’s picture

Status: Needs review » Fixed

Fixed in c47d7ee6c32d440813d5bcb06926b1d129915b4a, thanks for the report!

Status: Fixed » Closed (fixed)

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

System Lord’s picture

Issue summary: View changes

What does "Fixed" mean here? Both the stable and Dev releases still have:

while ($row = db_fetch_object($result)) {

UPDATE: Well, I guess this could have been changed after looking closer. However, can't tell if the section RobKoberg was referring to.

In any case, I'm getting "Error 500" installing and uninstalling this module. Install and uninstall still do what they have to do after I refresh the WSOD. Could this be because Gmap is such a large file?

[20-May-2018 19:54:03 America/New_York] PHP Fatal error: Out of memory (allocated 54788096) (tried to allocate 165274 bytes) in /home/site/public_html/includes/theme.inc on line 1529