2012-10-22 149 views
2

我們試圖梳理與draggableviews 7.x的一個觀點 - 2.0,但在嘗試保存時,我們得到以下錯誤:阿賈克斯錯誤draggableviews

An AJAX HTTP error occurred. 
HTTP Result Code: 500 
Debugging information follows. 
Path: /admin/structure/views/ajax/preview/jnytt_modul_nyhetsslider/panel_pane_2/387 
StatusText: error 
ResponseText: PDOException: SQLSTATE[HY000]: General error: 1364 Field 'nid'  
doesn't have a default value: INSERT INTO {draggableviews_structure} (view_name, 
view_display, args, entity_id, weight) VALUES (:db_insert_placeholder_0, 
:db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, 
:db_insert_placeholder_4); Array 
( 
[:db_insert_placeholder_0] => jnytt_modul_nyhetsslider 
[:db_insert_placeholder_1] => panel_pane_2 
[:db_insert_placeholder_2] => ["387"] 
[:db_insert_placeholder_3] => 9988 
[:db_insert_placeholder_4] => 0 
) 

其他人誰也有這個問題,並發現一個解決方案,因爲我肯定爲h ***不能找到一個:(

回答

1

看來,你的數據庫表draggableviews_structure有一個字段NID需要一個默認值。這是因爲過時的版本2.x draggableviews使用entity_id而不是。也許你從1.xt升級o 2.x這是不可能的。

There is no upgrade path from 7.x-1.x to 7.x-2.x branch http://drupal.org/project/draggableviews

因此,無論是重新安裝到模塊或手動編輯數據庫表。我會建議通過devel

+0

重新安裝謝謝你的答案Steff。將在星期三試用:) –