drupal ajax taxonomy

Evitar errors en el callback de l'ajax de drupal

---------------- Better not to use

a includes /menu.inc

        $page_callback_result = MENU_ACCESS_DENIED;
      }

    }

    else {
      $page_callback_result = MENU_NOT_FOUND;
    }
  }

// Carles 11/11/2012 - Avoid AJAX Callback bug
if( strpos( $_SERVER['REQUEST_URI'], '?q=taxonomy/autocomplete') != FALSE )
return;

  // 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);
  }

 

Subscribe to RSS - drupal ajax taxonomy
Error | Bitacoles

Error

The website encountered an unexpected error. Please try again later.

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/bitacoles/includes/common.inc:2726) in drupal_send_headers() (line 1233 of /var/www/bitacoles/includes/bootstrap.inc).
  • PDOException: SQLSTATE[HY000]: General error: 14 unable to open database file: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); Array ( [0] => 0 [1] => cron [2] => Attempting to re-run cron while it is already running. [3] => a:0:{} [4] => 4 [5] => [6] => http://bitacoles.enging.com/taxonomy/term/27 [7] => [8] => 54.80.146.251 [9] => 1511305253 ) in dblog_watchdog() (line 160 of /var/www/bitacoles/modules/dblog/dblog.module).