You are here部落格 / BATMAN's blog / 解決 Drupal 模組 language_sections-6.x-1.5 於 6.1x 版本不支援的錯誤!
解決 Drupal 模組 language_sections-6.x-1.5 於 6.1x 版本不支援的錯誤!
之前在更新 Drupal 時在模組管理後台無意間發現 language_sections 這個模組前面被打了個紅叉叉,錯誤訊息是說這個模組不被當前使用的這個版本支援,原以為是 6.14 的問題,後來仔細一瞧,才發現是 Drupal 開發小組在發出這個模組更新時就包含了這個小小的錯誤,官方似乎還沒有相應的補釘或更新發出,就在此寫出我的解決辦法!
登入你的 FTP (或本機)並在Drupal的安裝目錄下(通常是sites/all/modules/language_sections/)找到 "language_sections.info" 這個檔並用文字編輯工具開啟它。
找到這一段文字:
; --- Drupal 5.x ---
dependencies = filter locale
; --- Drupal 6.x ---
; dependencies[] = locale
; core = 6.x
把對應 Drupal 5.x 的註解掉,並把對應 Drupal 6.x 下面那兩行被註解掉的語法還原(刪除之前的分號";"即可),結果如下:
; --- Drupal 5.x ---
; dependencies = filter locale
; --- Drupal 6.x ---
dependencies[] = locale
core = 6.x
存檔並傳回 FTP,搞定!
回去後台模組管理頁面看看,錯誤訊息是不是消失了?