無法新增模版: Create template requires type [MovableType 4.01]

新增模版時遭遇訊息:「An error occurred: Create template requires type」(新增的模版需要類型)


問題解決:

由於新增的模版名稱與其他模版名稱重複,需要更改名稱。

== English ==
When I tried to add a new template in MT 4.01, I met the message "Create template requires type." It's because the duplicate templates' name.

further reading:
Movable Type 4 Documentation | Movable Type Docs

留言

  1. 您好,我有一個不太一樣的問題想要請教一下。我的主機是國外代管,今年我沒時間去管,昨天上去一看發現變成這樣:

    Error in fetchObject(): Table 'silents2_wiki.page' doesn't exist

    Backtrace:

    * GlobalFunctions.php line 602 calls wfBacktrace()
    * Database.php line 596 calls wfDebugDieBacktrace()
    * MessageCache.php line 246 calls Database::fetchObject()
    * MessageCache.php line 174 calls MessageCache::loadFromDB()
    * MessageCache.php line 357 calls MessageCache::load()
    * GlobalFunctions.php line 449 calls MessageCache::get()
    * GlobalFunctions.php line 408 calls wfMsgGetKey()
    * GlobalFunctions.php line 319 calls wfMsgReal()
    * OutputPage.php line 177 calls wfMsg()
    * OutputPage.php line 776 calls OutputPage::setPageTitle()
    * Database.php line 476 calls OutputPage::databaseError()
    * Database.php line 419 calls Database::reportQueryError()
    * BagOStuff.php line 390 calls Database::query()
    * BagOStuff.php line 281 calls MediaWikiBagOStuff::_doquery()
    * BagOStuff.php line 228 calls SqlBagOStuff::_query()
    * MessageCache.php line 142 calls SqlBagOStuff::get()
    * MessageCache.php line 357 calls MessageCache::load()
    * GlobalFunctions.php line 449 calls MessageCache::get()
    * GlobalFunctions.php line 408 calls wfMsgGetKey()
    * GlobalFunctions.php line 361 calls wfMsgReal()
    * Wiki.php line 74 calls wfMsgForContent()
    * index.php line 105 calls MediaWiki::checkInitialQueries()

    查詢資料庫也發現很多table不見了,請問一下這種狀況我可以以回復之前wiki資料庫的方式找回以前的資料嗎?問題很大,希望你能給個建議,謝謝!

    回覆刪除
  2. 不知道你使用的wiki軟體是哪一套? 通常虛擬主機廠商「應該」會有較舊的備份,寫信問看看能否要到,然後再到本機復原看看?

    回覆刪除
  3. 我是用mediawiki,看來是主機商那邊把我的資料庫統統弄壞了。我又沒有自己的備份,唉,這下慘了。謝謝你的建議!

    回覆刪除
  4. mediawiki的問題,還可以丟到幾個技術支援的地方詢問。

    回覆刪除

張貼留言