x

Main chapters

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Quick start guide
  3. LimeSurvey CE - Installation
  4. How to design a good survey (Guide)
  5. Getting started
  6. LimeSurvey configuration
  7. Introduction - Surveys
  8. View survey settings
  9. View survey menu
  10. View survey structure
  11. Introduction - Questions
  12. Introduction - Question Groups
  13. Introduction - Surveys - Management
  14. Survey toolbar options
  15. Multilingual survey
  16. Quick start guide - ExpressionScript
  17. Advanced features
  18. General FAQ
  19. Troubleshooting
  20. Workarounds
  21. License
  22. Version change log
  23. Plugins - Advanced
 Actions

從先前的版本升級

From LimeSurvey Manual

This page is a translated version of the page Upgrading from a previous version and the translation is 88% complete.
Outdated translations are marked like this.
附加頁:{toc}

開始之前...

....閱讀此內容,因為它非常重要:務必備份目前的安裝檔案和資料庫!

您可以使用資料庫管理工具例如 phpMyAdmin 和檔案管理器來執行此操作! 如果您不知道怎麼備份,請勿繼續下面的操作並尋找其他人的幫助。

建議使用 ComfortUpdate

最簡單/安全的升級方法就是使用我們的ComfortUpdate服務。

升級說明(從2.x或更高版本到任何之後的版本)

請按照以下說明操作:

  • 備份您的檔案和資料庫(我們之前有提過嗎?)。
  • 刪除所有舊文件/資料夾,除了以下檔案:
    • /application/config/security.php - 很重要!!這是 LimeSurvey(版本 4 及更高版本)中所有加密資料的金鑰
    • /application/config/config.php;
    • /upload 目錄
  1. Log out of the administration
  2. Backup your files and database
  3. Delete all the old files/folders except for:
    1. /application/config/security.php - Important!! This is the key to all encrypted data in LimeSurvey (version 4 and later)
    2. /application/config/config.php;
    3. /upload directory
  4. Copy the new files from the new LimeSurvey package to the existing location.
  5. Now clear your browser cache and cookies.
  6. Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin). If a database scheme upgrade is necessary you will be prompted to confirm it.
  7. Done!
Note: Between major versions (for example from version 3 to 4) the template/design themes change usually completely. Old survey design templates/themes will usually not work anymore.

使用 CLI 升級

您可以透過 PHP CLI 升級資料庫: php application/commands/console.php updatedb。 這允許您透過命令列自動升級系統(例如,在 crontab 中),但不建議這樣做。

手動更新資料庫升級失敗/ComfortUpdate

有時,即使您所做的一切正確,但在資料庫升級過程中總是會發生意外。 可能是因為不同的資料庫版本、意外的資料格式或內容、不尋常的配置或我們的測試中未出現的任何其他內容(是的,我們測試了很多!)

如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態,您希望返回到先前的版本。 這邊預設您仍然擁有資料庫和檔案備份,無論是來自常規備份還是由 Comfortupdate 建立的備份。

請執行以下步驟:

  • 備份現有的 LimeSurvey 目錄和資料庫(是的,再做一次 - 我們叫它第二個備份)
  • 從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)
  • 刪除目前的資料庫然後從(第一個備份)還原資料

就是這樣。一切都應該恢復正常。

關於報告此問題的說明:

如果您遇到這樣的問題,請務必在我們的錯誤追蹤網站裡回報此問題:https://bugs.limesurvey.org

未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報,您還可以透過在錯誤追蹤器中將其標記為「是的,此錯誤影響我」來幫助提高錯誤的優先順序。

常見問題

即使我有進行中的問卷,我也可以升級嗎?

是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷,以確定您設計的模板是否可以正常運作。

如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本?

安裝版本 1.50,匯入文件,並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。

Survey theme incompatibility

With certain major version updates any custom survey themes will not be compatible, anymore:

  • Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50
  • Update from LimeSurvey 5.x or lower to LimeSurvey 6.x

Error "Multiple primary key defined" when updating MySQL database

If you encounter this error, please check the setting sql_generate_invisible_primary_key in your MySQL server variables. This is most likely set to ON, but should be set to OFF. Then restore your database from the backup (as explained above) and try again.