歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 24, 2024, 12:08:00 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  測試  |  LifeType 1.1 測試  |  lifetype 1.1 b2 无法添加目录问题 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: lifetype 1.1 b2 无法添加目录问题  (閱讀 9351 次)
slobber
新手見習
*
文章: 8


檢視個人資料
« 於: 八月 31, 2006, 11:38:57 上午 »

安装时就无法添加 general 目录,报一个 Fatal error: setNumPublishedArticles,具体的忘了,就是由于没有Category对象,所以这个 method 无法使用之类的。
手工从 phpmyadmin 中加了 general 的 Artical Category,之后发现无法在 admin 中修改,或者添加。
看了sql_error.log,这句话:UPDATE `articles_categories` SET `name`='general', `url`='', `blog_id`='1', `parent_id`='', `description`='fdsfsdfddsf', `in_main_page`='1', `last_modification`='2006-08-31 12:01:13', `properties`='a:0:{}', `num_articles`='0', `num_published_articles`='0', `mangled_name`='general' WHERE id = '1'generated the following error message = Out of range value adjusted for column 'parent_id' at row 1

主要是parent_id 为空了,
修改了lifetype\class\dao\articlecategory.class.php下 270行getParentId如下:
      function getParentId()
      {
         return $this->_parentId ? $this->_parentId : '0';
      }

问题解决。
已記錄

windows 2003 + apache 2.2.3 + php 5 + mysql 5

lifetype 1.1 zh_utf8

测试中....
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #1 於: 八月 31, 2006, 04:10:23 下午 »

這個 bug 好像已經修復了,可以下載每日程式的 snapshot 來用,或是從 svn checkout 最新程式碼來用也行。

lss
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
頁: [1]
LifeType 中文開發論壇  |  測試  |  LifeType 1.1 測試  |  lifetype 1.1 b2 无法添加目录问题 « 上篇主題 下篇主題 »
    前往: