移轉 Joomla! 2.5 至 Joomla! 3 時的常見錯誤

From Joomla! Documentation

This page is a translated version of the page Joomla 2.5 to 3.x Common Migration Errors and the translation is 22% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎português do Brasil • ‎中文(台灣)‎

Joomla 2.5移轉到 Joomla 3時的常見錯誤大略可以分成兩類:

請重新回到你的擴充套件管理頁面。可能有一些東西你遺漏了,如果有需要,你可以請其他人幫你看看問題。有時候我們自己的眼睛騙了我們,偏要請別人看才可以看得出來,原來要更新 Joomla! 之前,可能必須先更新或移除一個擴充套件。

這份文件是動態增刪的,也就是說,你可以主動的增加錯誤及解決方案到這個頁面供其他使用者參考。如果你在 Joomla! 2.5 移轉到 3.x 的時候遇到了問題,你可以嘗試把錯誤貼到 Google 去搜尋看看。請記得,一些你的隱私資訊記得要刪除。

舉例,如果你得到一個錯誤訊息這麼說:

Fatal error: Call to a member function get() on a non-object in home/account/public_html/directory/administrator/components/com_installer/controller.php on line 39

請刪除錯誤訊息中出現的 home/account/public_html/directory 這個部分來確保你在搜尋錯誤的解決方案時能得到較好的搜尋結果。

一鍵更新在多數情況下可以良好的運作,但在某些較大型,或較為複雜的網站下可能就沒那麼適合。為了這樣子的複雜網站遷移,您可能需要遵循一些標準化的遷移過程,並暫時避免使用一鍵更新。您可以先參考以下文章:計畫從版本 1.5 到 3.x 的移轉一步步從 1.5 移轉到 3.x,只要將文章中的 1.5 換成 2.5 來操作即可。

Errors & Solutions

Add errors and solutions below. Note if you have never added a link to a document before, save your text before linking! Then once saved go back in and add the link.

空白頁

  1. Check the page source. If it looks like the complete HTML code is there, you may have a JavaScript error. If there is no code at all, it is a PHP error.
  2. Check logs/joomla_update.php to see if a proper update happened. Include this log with any post to the Joomla Forums so that people can help you. If the site is updated properly, you can use phpMyAdmin to disable third-party plugins that you may have overlooked before updating to Joomla! 3.x.
SELECT * FROM `#__extensions` where type = 'plugin' and extension_id > 700
Use your own prefix (#_)

Set the enabled column to 0 to disable the plugin.

You need to restore from a backup if logs/joomla_update.php is incomplete.

Alternative Ways to Get to the Database or Discover Tabs

Discover URL: index.php?option=com_installer&view=discover

Database URL: index.php?option=com_installer&view=database