function menu_execute_active_handler


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 menu_execute_active_handler($path = NULL, $deliver = TRUE)
cle7 menu_execute_active_handler($path = NULL, $deliver = TRUE)
elmsmedia7 menu_execute_active_handler($path = NULL, $deliver = TRUE)
icor7 menu_execute_active_handler($path = NULL, $deliver = TRUE)
meedjum_blog7 menu_execute_active_handler($path = NULL, $deliver = TRUE)
mooc7 menu_execute_active_handler($path = NULL, $deliver = TRUE)

Execute the page callback associated with the current path.


$path: The drupal path whose handler is to be be executed. If set to NULL, then the current path is used.

$deliver: (optional) A boolean to indicate whether the content should be sent to the browser using the appropriate delivery callback (TRUE) or whether to return the result to the caller (FALSE).

Related topics

7 calls to menu_execute_active_handler()
bakery_user_page in sites/all/modules/ulmus/bakery/bakery.module
Access callback for path /user.
comment_permalink in modules/comment/comment.module
Redirects comment links to the correct page depending on comment settings.
drupal_deliver_html_page in includes/
Packages and sends the result of a page callback to the browser as HTML.
http.php in modules/simpletest/tests/http.php
Fake an HTTP request, for use during testing.
https.php in modules/simpletest/tests/https.php
Fake an HTTPS request, for use during testing.

... See full list


includes/, line 500
API for the Drupal menu system.


function menu_execute_active_handler($path = NULL, $deliver = TRUE) {
  // Check if site is offline.
  $page_callback_result = _menu_site_is_offline() ? MENU_SITE_OFFLINE : MENU_SITE_ONLINE;

  // Allow other modules to change the site status but not the path because that
  // would not change the global variable. hook_url_inbound_alter() can be used
  // to change the path. Code later will not use the $read_only_path variable.
  $read_only_path = !empty($path) ? $path : $_GET['q'];
  drupal_alter('menu_site_status', $page_callback_result, $read_only_path);

  // Only continue if the site status is not set.
  if ($page_callback_result == MENU_SITE_ONLINE) {
    if ($router_item = menu_get_item($path)) {
      if ($router_item['access']) {
        if ($router_item['include_file']) {
          require_once DRUPAL_ROOT . '/' . $router_item['include_file'];
        $page_callback_result = call_user_func_array($router_item['page_callback'], $router_item['page_arguments']);
      else {
        $page_callback_result = MENU_ACCESS_DENIED;
    else {
      $page_callback_result = MENU_NOT_FOUND;

  // Deliver the result of the page callback to the browser, or if requested,
  // return it raw, so calling code can do more processing.
  if ($deliver) {
    $default_delivery_callback = (isset($router_item) && $router_item) ? $router_item['delivery_callback'] : NULL;
    drupal_deliver_page($page_callback_result, $default_delivery_callback);
  else {
    return $page_callback_result;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.