2011-04-09 46 views
0

我有一個Drupal 7網站,並且想要爲其添加投票。我啓用了投票模塊並打開添加材料 - >投票頁面。當我按下「添加變體」按鈕,我得到一個錯誤,說明Drupal在嘗試創建投票時顯示「node_form_validate()undefined」錯誤

AJAX HTTP error. 
HTTP response code: 200 
Debugging information follows. 
Path: /system/ajax 
Text status: OK 
ResponseText: 
Fatal error: Call to undefined function node_form_validate() in /*/public_html/includes/form.inc on line 1390 

它如何被固定?我對Drupal的經驗很少,很難想象從哪裏開始。

+0

[My solution to this problem](http://mindwired.blogspot.com/2011/08/fatal-error-call-to-undefined-function.html「My solution to this problem」) – ram4nd 2011-08-04 10:27:41

回答

0

嗯......看來我必須通過增加

require_once(DRUPAL_ROOT . "/modules/node/node.pages.inc"); 

描述here到/modules/poll/poll.module固定它自己。原來,這個Drupal並不是一個可怕的CMS。