補充一下我現在的環境
Drupal 6.22
Apache 版本 2.2.20
MySQL 版本 5.1.56
PHP 版本 5.2.17
views-6.x-2.16
panels-6.x-3.9
ctools-6.x-1.8
之前運作好一段時間了,突然出現的訊息,重新安裝views模組也沒用,也參考國外網友修改common.inc,只能透過views工具關掉javascript,但這樣蠻不方便的,請問有先進遇到這個問題嗎?詳細錯誤訊息如下。
An error occurred at /admin/build/views/ajax/config-item/coupon/default/field/title.
Error Description: { "display": "\x3cdiv class=\"views-messages\"\x3e\x3cdiv class=\"messages status\"\x3e\n\x3ca href=\"/admin/settings/site-maintenance\"\x3e以離線模式運作。\x3c/a\x3e\x3c/div\x3e\n\x3c/div\x3e\x3cform action=\"/admin/build/views/ajax/config-item/coupon/default/field/title\" accept-charset=\"UTF-8\" method=\"post\" id=\"views-ui-config-item-form\"\x3e\n\x3cdiv\x3e\x3cdiv class=\"form-item description\"\x3e節點的標題。\x3c/div\x3e\x3cdiv class=\"form-item\" id=\"edit-options-label-wrapper\"\x3e\n \x3clabel for=\"edit-options-label\"\x3e標籤:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[label]\" id=\"edit-options-label\" size=\"60\" value=\"標題\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3eThe label for this field that will be displayed to end users if the style requires it.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-exclude-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-exclude\"\x3e\x3cinput type=\"checkbox\" name=\"options[exclude]\" id=\"edit-options-exclude\" value=\"1\" class=\"form-checkbox\" /\x3e 排除在顯示之外\x3c/label\x3e\n \x3cdiv class=\"description\"\x3eCheck this box to not display this field, but still load it in the view. Use this option to not show a grouping field in each record, or when doing advanced theming.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-alter-text-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-alter-alter-text\"\x3e\x3cinput type=\"checkbox\" name=\"options[alter][alter_text]\" id=\"edit-options-alter-alter-text\" value=\"1\" class=\"form-checkbox\" /\x3e 重寫此欄位的輸出\x3c/label\x3e\n \x3cdiv class=\"description\"\x3eIf checked, you can alter the output of this field by specifying a string of text with replacement tokens that can use any existing field output.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-text-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-text\"\x3e文字:\x3c/label\x3e\n \x3ctextarea cols=\"60\" rows=\"5\" name=\"options[alter][text]\" id=\"edit-options-alter-text\" class=\"form-textarea resizable\"\x3e\x3c/textarea\x3e\n \x3cdiv class=\"description\"\x3eThe text to display for this field. You may include HTML. You may enter data from this view as per the \"Replacement patterns\" below.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-make-link-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-alter-make-link\"\x3e\x3cinput type=\"checkbox\" name=\"options[alter][make_link]\" id=\"edit-options-alter-make-link\" value=\"1\" checked=\"checked\" class=\"form-checkbox\" /\x3e 將此欄位輸出成為連結\x3c/label\x3e\n \x3cdiv class=\"description\"\x3eIf checked, this field will be made into a link. The destination must be given below.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-path-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-path\"\x3e連結路徑:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"255\" name=\"options[alter][path]\" id=\"edit-options-alter-path\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3eThe Drupal path or absolute URL for this link. You may enter data from this view as per the \"Replacement patterns\" below.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-absolute-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-alter-absolute\"\x3e\x3cinput type=\"checkbox\" name=\"options[alter][absolute]\" id=\"edit-options-alter-absolute\" value=\"1\" class=\"form-checkbox\" /\x3e Use absolute path\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-link-class-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-link-class\"\x3e連結類別:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[alter][link_class]\" id=\"edit-options-alter-link-class\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3e套用至連結的 CSS 類別。\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-alt-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-alt\"\x3eAlt 文字:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[alter][alt]\" id=\"edit-options-alter-alt\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3eText to place as \"alt\" text which most browsers display as a tooltip when hovering over the link.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-rel-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-rel\"\x3eRel Text:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[alter][rel]\" id=\"edit-options-alter-rel\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3eInclude Rel attribute for use in lightbox2 or other javascript utility.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-prefix-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-prefix\"\x3e前置文字:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[alter][prefix]\" id=\"edit-options-alter-prefix\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3e此連結之前顯示的所有文字,可包含 HTML。\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-suffix-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-suffix\"\x3e後置文字:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[alter][suffix]\" id=\"edit-options-alter-suffix\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3e此連結之後顯示的所有文字,可包含 HTML。\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-target-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-target\"\x3eTarget:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[alter][target]\" id=\"edit-options-alter-target\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3eTarget of the link, such as _blank, _parent or an iframe\'s name. This field is rarely used.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv\x3e\x3cfieldset id=\"views-tokens-help\"\x3e\x3clegend\x3e替換匹配模式\x3c/legend\x3e\x3cp\x3eThe following tokens are available for this field. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.\nIf you would like to have the characters %5B and %5D please use the html entity codes \'%5B\' or \'%5D\' or they will get replaced with empty space.\x3c/p\x3e\x3cdiv class=\"item-list\"\x3e\x3ch3\x3e欄位\x3c/h3\x3e\x3cul\x3e\x3cli class=\"first last\"\x3e[title] == 節點: 標題\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e\x3c/fieldset\x3e\x3c/div\x3e\x3cinput type=\"hidden\" name=\"options[alter][help]\" id=\"views-tokens-help\" value=\"\" /\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-trim-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-alter-trim\"\x3e\x3cinput type=\"checkbox\" name=\"options[alter][trim]\" id=\"edit-options-alter-trim\" value=\"1\" class=\"form-checkbox\" /\x3e Trim this field to a maximum length\x3c/label\x3e\n \x3cdiv class=\"description\"\x3eIf checked, this field be trimmed to a maximum length in characters.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-max-length-wrapper\"\x3e\n \x3clabel for=\"edit-options-alter-max-length\"\x3e最大長度:\x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[alter][max_length]\" id=\"edit-options-alter-max-length\" size=\"60\" value=\"\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3eThe maximum number of characters this field can be.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-alter-word-boundary-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-alter-word-boundary\"\x3e\x3cinput type=\"checkbox\" name=\"options[alter][word_boundary]\" id=\"edit-options-alter-word-boundary\" value=\"1\" checked=\"c
Re: 無法修改views的資料會出現An error occurred at ...
那個「coupon」是cck的欄位嗎?
Re: 無法修改views的資料會出現An error occurred at ...
是Views的名稱。
Re: 無法修改views的資料會出現An error occurred at ...
啊喔@@a
通常這個問題應該是他回傳的資料裡有不正確的資料,
所以沒辦法解開他需要的資料,
可能要用firebug檢查一下回傳的內容= =a
是每個欄位都會這樣嗎?
是裝了什麼模組之後會造成這個問題?
Re: 無法修改views的資料會出現An error occurred at ...
印象出錯之前並沒有安裝其他模組,目前參考http://drupal.org/node/914360算是暫時解了,之前只有改一半(只改了common.inc),會在views儲存時出錯,上面那個網址還需要改ajax_view.js,原理我不清楚,但主要是json的內容有誤導致,改完之後,panels也一起好了,真的是。。。。。
先觀察幾天,還有一個小問題,這樣會不會以後views or drupal 更新,我還會痛一次?雖然我的update.php都跑不完(跑一整天網頁都沒完成),目前還在學習drupal中,先謝過各位先進。
Re: 無法修改views的資料會出現An error occurred at ...
其實改完之後,發現有些地方仍然有錯誤產生,後來把後台改成Garland,就都解了,但上面的修正還是需要的。
Re: 無法修改views的資料會出現An error occurred at ...
改回Garland之後,把修正改回來也不行?