Errors when flushing cache using default configuration

lyricnz - September 13, 2009 - 12:47
Project:GeoNames
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When clicking on the "Clear Cache" link from /admin/settings/geonames I get the following errors:


warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/drupal6/includes/menu.inc on line 263.
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /Applications/MAMP/htdocs/drupal6/includes/menu.inc on line 328.

#1

lyricnz - September 13, 2009 - 14:33
Status:active» fixed

This is caused by:

<?php
  $items
['admin/settings/geonames/clear_cache'] = array(
   
'type' => MENU_CALLBACK,
   
'access arguments' => array('administer site configuration'),
   
'page callback' => 'geonames_cache_clear',
   
'page arguments' => TRUE,             //  not valid - should be array(TRUE)
 
);
?>

Fixed in 6.x-1.x-dev : http://drupal.org/cvs?commit=262342

#2

System Message - September 27, 2009 - 14:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.