Posted: Mon Jun 11, 2007 11:59 am
Hi!
No, the geotag plugin shouldn't use that much memory!
Maybe you could edit the serendipity_event_geotag.php file, go to around line 255 and you should see this:
change that to:
And then reload your page - you should see the memory usage before the geotag plugin is actually executed, and that should tell us how much memory it really needs at that place?
Regards,
Garvin
No, the geotag plugin shouldn't use that much memory!
Maybe you could edit the serendipity_event_geotag.php file, go to around line 255 and you should see this:
Code: Select all
case 'entry_display':
$i = 0;
foreach($eventData AS $event) {
// Check if geo_lat and geo_long are both set
$props = &$eventData[$i]['properties'];
$geotagged = true;
foreach($this->supported_properties AS $prop_key) {
if (!isset($props[$prop_key])) {
$geotagged = false;
}
}
Code: Select all
case 'entry_display':
echo 'Current memory usage is: ' . memory_get_usage() . '<br />';
$i = 0;
foreach($eventData AS $event) {
echo 'New memory usage is: ' . memory_get_usage() . '<br />';
// Check if geo_lat and geo_long are both set
$props = &$eventData[$i]['properties'];
$geotagged = true;
foreach($this->supported_properties AS $prop_key) {
if (!isset($props[$prop_key])) {
$geotagged = false;
}
}
Regards,
Garvin