GMap and the White Screen Of Death
Hi there: I've installed drupal 6.17 whit gmap module, It's working fine, I proved the macro code on a node: [gmap|id=map|center=49.2,-123.1|zoom=7|width=600px|height=400px|control=Small|type=Map] And It shown a google map correctly. But when I proved this snippet: <?php $north = 38.897546; $east = -77.039394; $zoom = 16; $mywmss=array( array('name'=>'Terraserver', 'url'=>'http://terraservice.net/ogcmap6.ashx?', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'DOQ', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© terrasever', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), array('name'=>'Lizardtech', 'url'=>'http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'DC', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© lizardtech', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), array('name'=>'NASA_JPL', 'url'=>'http://wms.jpl.nasa.gov/wms.cgi?service=WMS', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'global_mosaic', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© NASA', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), ); $mymap=array('id' => 'map', 'control' => 'Large', 'tcontrol' => 'on', 'zoom' => $zoom, 'center' => $north.','.$east, 'width' => '100%', 'height' => '500px', 'type' => 'Satellite', 'wmss' => $mywmss, ); echo gmap_draw_map($mymap); ?> I got simply the famous white page of death. Can you please tell me what can I do to solve that problem? I'm working on my tesis work, so please help me. Thanks a lot. -- Linux es Libertad
The best thing to do is enable error reporting in php.ini and see what error is occurring. The white screen of death is from having reporting turned off but apache is hitting an error. Or try looking in the php logs, the location of which should be indicated in the php.ini -Don- On 7/30/2010 8:02 PM, Gustavo Cabral wrote:
Hi there: I've installed drupal 6.17 whit gmap module, It's working fine, I proved the macro code on a node:
[gmap|id=map|center=49.2,-123.1|zoom=7|width=600px|height=400px|control=Small|type=Map]
And It shown a google map correctly. But when I proved this snippet: <?php $north = 38.897546; $east = -77.039394; $zoom = 16; $mywmss=array( array('name'=>'Terraserver', 'url'=>'http://terraservice.net/ogcmap6.ashx?', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'DOQ', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© terrasever', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), array('name'=>'Lizardtech',
'url'=>'http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'DC', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© lizardtech', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), array('name'=>'NASA_JPL', 'url'=>'http://wms.jpl.nasa.gov/wms.cgi?service=WMS', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'global_mosaic', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© NASA', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), ); $mymap=array('id' => 'map', 'control' => 'Large', 'tcontrol' => 'on', 'zoom' => $zoom, 'center' => $north.','.$east, 'width' => '100%', 'height' => '500px', 'type' => 'Satellite', 'wmss' => $mywmss, ); echo gmap_draw_map($mymap); ?> I got simply the famous white page of death. Can you please tell me what can I do to solve that problem? I'm working on my tesis work, so please help me. Thanks a lot.
--
Linux es Libertad
2010/7/30 Don <donald@fane.com>
The best thing to do is enable error reporting in php.ini and see what error is occurring. The white screen of death is from having reporting turned off but apache is hitting an error. Or try looking in the php logs, the location of which should be indicated in the php.ini
-Don-
Hi again, After learn how to enable error reporting, I get this error:
Fatal error: Call to undefined function gmap_draw_map() in /var/www/sigrhi/includes/common.inc(1699) : eval()'d code on line 63 Can be posible that the function don't exists? Is there any replacement for this? Thanks a lot people, you guys really helped me -- Linux es Libertad
Minor correction: "White screen of death" occurs when there is nothing to write to the screen. This can occur in situations like you are seeing, but also when a function just doesn't write anything. "common.inc" does not call gmap_draw_map(). It looks like you might have a core hack in place. But however it got there, you need to take that error message to the module's issue queue now. Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. ________________________________ From: Gustavo Cabral <gmcabral@gmail.com> To: development@drupal.org Sent: Mon, August 2, 2010 8:10:28 PM Subject: Re: [development] GMap and the White Screen Of Death 2010/7/30 Don <donald@fane.com> The best thing to do is enable error reporting in php.ini and see what error is occurring. The white screen of death is from having reporting turned off but apache is hitting an error.
Or try looking in the php logs, the location of which should be indicated in the php.ini
-Don-
Hi again, After learn how to enable error reporting, I get this error:
Fatal error: Call to undefined function gmap_draw_map() in /var/www/sigrhi/includes/common.inc(1699) : eval()'d code on line 63 Can be posible that the function don't exists? Is there any replacement for this? Thanks a lot people, you guys really helped me -- Linux es Libertad
Whatever documentation you're looking at is out of date. The correct way to generate a map from PHP is now: echo theme('gmap', array('#settings' => $mymap)); All the Best, Matt Chapman Ninjitsu Web Development ph: 818-660-6465 (818-660-NINJA) fx: 888-702-3095 -- The contents of this message should be assumed to be Confidential, and may not be disclosed without permission of the sender. On Mon, Aug 2, 2010 at 5:10 PM, Gustavo Cabral <gmcabral@gmail.com> wrote:
2010/7/30 Don <donald@fane.com>
The best thing to do is enable error reporting in php.ini and see what
error is occurring. The white screen of death is from having reporting turned off but apache is hitting an error. Or try looking in the php logs, the location of which should be indicated in the php.ini
-Don-
Hi again, After learn how to enable error reporting, I get this error:
Fatal error: Call to undefined function gmap_draw_map() in /var/www/sigrhi/includes/common.inc(1699) : eval()'d code on line 63
Can be posible that the function don't exists? Is there any replacement for this?
Thanks a lot people, you guys really helped me
--
Linux es Libertad
2010/8/2 Matt Chapman <matt@ninjitsuweb.com>
Whatever documentation you're looking at is out of date. The correct way to generate a map from PHP is now:
echo theme('gmap', array('#settings' => $mymap));
Thanks Matt, that's the solution, but when I apply that, I get the message Javascript is required to draw the map. I can't solve that.
We have experienced the white screen of death on other LAMP apps, and it could be to do with the memory allocation in php.ini (its generally too low for some of these apps). On Sat, Jul 31, 2010 at 10:02 AM, Gustavo Cabral <gmcabral@gmail.com> wrote:
Hi there: I've installed drupal 6.17 whit gmap module, It's working fine, I proved the macro code on a node:
[gmap|id=map|center=49.2,-123.1|zoom=7|width=600px|height=400px|control=Small|type=Map]
And It shown a google map correctly. But when I proved this snippet: <?php $north = 38.897546; $east = -77.039394; $zoom = 16; $mywmss=array( array('name'=>'Terraserver', 'url'=>'http://terraservice.net/ogcmap6.ashx?', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'DOQ', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© terrasever', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), array('name'=>'Lizardtech',
'url'=>'http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'DC', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© lizardtech', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), array('name'=>'NASA_JPL', 'url'=>'http://wms.jpl.nasa.gov/wms.cgi?service=WMS', 'format'=>'image/jpeg', 'minresolution'=>'1', 'maxresolution'=>'17', 'layers'=>'global_mosaic', 'copyrights' => array(array( 'minzoom'=>'1', 'bounds'=>'-190,-90,180,90', 'text'=>'© NASA', )), 'overlaywith'=>'Hybrid', 'merczoomlevel'=>'5', ), ); $mymap=array('id' => 'map', 'control' => 'Large', 'tcontrol' => 'on', 'zoom' => $zoom, 'center' => $north.','.$east, 'width' => '100%', 'height' => '500px', 'type' => 'Satellite', 'wmss' => $mywmss, ); echo gmap_draw_map($mymap); ?> I got simply the famous white page of death. Can you please tell me what can I do to solve that problem? I'm working on my tesis work, so please help me. Thanks a lot.
--
Linux es Libertad
participants (5)
-
Devraj Mukherjee -
Don -
Gustavo Cabral -
Matt Chapman -
nan wich