最近想將Vtigert 6.5升級至新版Vtiger7.x,不過升級過程非常不順,後來測試許久終於完成,在此註記一下:
1.前往下載Migration所需要的檔案 https://www.vtiger.com/open-source-crm/download-open-source/ [選擇Migration Software (6.5.0 to 7.0.1)]
2.將上述所下載的檔案放在Vtiger目錄下,並且解壓縮 sudo unzip xxx.zip
3.會解出檔案,請覆蓋原有檔案;另外會產生出 vtiger7.zip、migrate資料夾
4.打開瀏覽器輸入http://domain/Vtiger/migrate,就可以依據步驟進行升級.
5.重頭戲來了,我就是在這邊卡關,因為他需要輸入Vitger的管理者帳號、密碼,但是輸入後會變成空白頁,不知道為什麼,最後發現好像是因為那段程式有問題,所以我就乾脆忽略.
6.修改Extratc.php (在Vtiger目錄下 cd modules/Migration/actions)
7.將Extratc.php 第24、35、38註記,略過檢查帳密
if ($user->doLogin($password)) {
22 $zip = new ZipArchive();
23 $fileName = 'vtiger7.zip';
24 // if ($zip->open($fileName)) {
25 for ($i = 0; $i < $zip->numFiles; $i++) {
26 $log->fatal('Filename: '.$zip->getNameIndex($i).'<br />');
27 }
28 if ($zip->extractTo($root_directory)) {
29 $zip->close();
30
31 $userid = $user->retrieve_user_id($userName);
32 $_SESSION['authenticated_user_id'] = $userid;
33
34 header('Location: index.php?module=Migration&view=Index&mode=step1');
35 // } else {
36 $errorMessage = 'ERROR EXTRACTING MIGRATION ZIP FILE!';
37 header('Location: migrate/index.php?error='.$errorMessage);
38 // }
39 } else {
40 $errorMessage = 'ERROR READING MIGRATION ZIP FILE!';
41 header('Location: migrate/index.php?error='.$errorMessage);
42 }
43 } else {
44 $errorMessage = 'INVALID CREDENTIALS';
45 header('Location: migrate/index.php?error='.$errorMessage);
46 }
8.打開瀏覽器輸入http://domain/Vtiger/migrate,就可以依據步驟進行升級.