I get this error message when I visit the Google translate admin page:

Fatal error: require_once() [function.require]: Failed opening required 'sites/.../modules/gtrans/system.admin.inc' (include_path='.:/usr/share/php:/usr/share/pear') in .../drupal-6.15/includes/menu.inc on line 346

Any ideas?

Comments

rizqi’s picture

same issue, the problem is on hook_menu, below code will fix that

/**
 * Implements hook_menu().
 */
function gtrans_menu() {
  $items = array();

  $items['admin/settings/gtrans'] = array(
    'title' => t('Google translate'),
    'description' => t('Control Google Translate service.'),
    'access arguments' => array('administer Google translate'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array('gtrans_settings_form'),
    'type'             => MENU_NORMAL_ITEM,
  );

  return $items;
}
avpaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, since Drupal 5 and Drupal 6 are now not supported. A Drupal 9 version won't implement hook_menu(), which means this error cannot happen in Drupal 9.