歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 29, 2024, 10:29:34 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  最近升级至lifetype1.0.2版本, 结果出现这个错误,怎么办? « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 最近升级至lifetype1.0.2版本, 结果出现这个错误,怎么办?  (閱讀 18598 次)
xinyuan
新手見習
*
文章: 38


檢視個人資料
« 於: 一月 23, 2006, 03:25:51 上午 »

http://xinyuan.us/blog/index.php?blogId=3


834815294^footer.template.php on line 33的语句好像是下面这段。

   <a class="nodecoration" href="{$url->categoryRssLink($articleCategory)}"><img src="{$url->getUrl("/imgs/rss_logo_small.gif")}" style="border:0px;" alt="RSS 0.90" /></a><br/>


我是升级以后, 然后用新版本的文件包把原来的全部覆盖, 当然config的除外。 结果就出现有的博客可以打开, 有的打不开。

然后我在后台发表新主题时, 在最后没有提交发送的按钮, 晕。 请帮助!
已記錄
xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #1 於: 一月 23, 2006, 03:48:07 上午 »

Fatal error: Call to a member function on a non-object in /hsphere/local/home/madhfor/xinyuan.us/blog/class/dao/sitestatistics.class.php on line 20

这是另外一个错误, 就是我在admin.php?op=adminSettings 时, 无法进入管理中心进行全局操作。 不知什么原因?

谢谢。
已記錄
xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #2 於: 一月 23, 2006, 02:47:09 下午 »

pls help me  傷心
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #3 於: 一月 23, 2006, 10:15:11 下午 »

hi xinyuan:

根據今早發佈的 1.0.3 的說明裡, 1.0.2 有一個跟文章分類有關的 bug ,應該是說「如果某個文章分類裡的文章全砍光了,會發生錯誤」我個人沒遇到過,不知道你是不是遇到這個問題。若是,請升級到 1.0.3 版,應該就可以解決了。

lss
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #4 於: 一月 24, 2006, 07:12:49 上午 »

确实, 分类已经不存在了。 我把1。0。3的升级包全部上传覆盖。 还是出现类似问题。


我怀疑是不同的模板造成的原因, 会在寻找tmp/里面的文件时寻找不到.

可是即使那些可以正常显示的博客, 在后台发贴, 仍然没有提交的图标。 只有发贴框, 然后下面就什么都没有了。

有的模板会出现寻找不到http address 的错误提示。 请指教
已記錄
xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #5 於: 一月 24, 2006, 07:13:59 上午 »

这个文章分类的bug具体应该修改哪一个文件?

可以找到这文章的联接吗?
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #6 於: 一月 24, 2006, 11:11:42 上午 »

确实, 分类已经不存在了。 我把1。0。3的升级包全部上传覆盖。 还是出现类似问题。
你是指 blog 裡面已經一個分類都不剩嗎?當你申請/建立一個blog之後,一定要至少有一個文章分類才能正常運作,試試建立至少一個文章分類後再看看。
升級包上傳覆蓋後,建議把 ./tmp 裡的 smarty cache 完全刪除,讓升級能立即生效。
我怀疑是不同的模板造成的原因, 会在寻找tmp/里面的文件时寻找不到.
請問你是否試過不同的模版?能列出你試過的模版中,那些正常,那些會出錯嗎?有具體的資訊才有辦法幫忙。
这个文章分类的bug具体应该修改哪一个文件?

可以找到这文章的联接吗?
很抱歉,這部份我沒注意到,我是在翻譯 1.0.3 發佈文章時看到的,也譯出來了,就只說修正了這個錯誤而已 吐舌頭

lss
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #7 於: 一月 24, 2006, 11:17:47 上午 »

http://xinyuan.us/blog/index.php?blogId=3
834815294^footer.template.php on line 33的语句好像是下面这段。

   <a class="nodecoration" href="{$url->categoryRssLink($articleCategory)}"><img src="{$url->getUrl("/imgs/rss_logo_small.gif")}" style="border:0px;" alt="RSS 0.90" /></a><br/>

1. 你找錯檔案了,是 ./tmp/834815294^footer.template.php 這個檔案的 33 行,請把前後5 行都 post 出來。
2. 另外你是用那個模版?
3. /hsphere/local/home/madhfor/xinyuan.us/blog/class/dao/sitestatistics.class.php on line 20 在你現在的版本中,是什麼?

 Mark

已記錄

xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #8 於: 一月 24, 2006, 11:37:51 上午 »



            return $row["total"];    Is the line 20

I think I have used the new version 1.0.3 and try to replace all old files except some config files.

In the following is parts of the  files for your reference

<?php

   /**
     * This class provides some statistics about the site.
    *
    * \ingroup DAO
     */
   class SiteStatistics extends Model
   {

       function SiteStatistics()
        {
           $this->Model();
        }

        function getTotalFromQuery( $query )
        {
            $result = $this->Execute( $query );

            $row = $result->FetchRow();

            return $row["total"];
        }

        function getNumberOfBlogs()
已記錄
xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #9 於: 一月 24, 2006, 11:44:24 上午 »

lss, you mean delete all files under /tmp folder? I am not sure it is template problems, since same template appied to different blog can produce different result.

I am thinking of try to use the whole new set files of 1.0.3. while correct config files to fit database setting, will that be helpful?

Thanks.

I have use lots of different template, so not really sure the template problem, or the way it has been treated.


Thank you, anyway.
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #10 於: 一月 24, 2006, 11:56:06 上午 »

1. Take a look at the questions I asked very carefully ...., you did not answer the 1,2 question...
2. About the questions 3, are you sure return $row["total"] is the line 20, it seems $row = $result->FetchRow(); is the line 20. Add a new line print_r($result) in line 19 ... and let me know the results ...

Mark
已記錄

xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #11 於: 一月 24, 2006, 12:18:04 下午 »

Parse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/madhfor/xinyuan.us/blog/class/dao/sitestatistics.class.php on line 20


The above is the result after I add the sentence in line 19.

已記錄
xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #12 於: 一月 24, 2006, 12:40:58 下午 »

1. Take a look at the questions I asked very carefully ...., you did not answer the 1,2 question...
2. About the questions 3, are you sure return $row["total"] is the line 20, it seems $row = $result->FetchRow(); is the line 20. Add a new line print_r($result) in line 19 ... and let me know the results ...

Mark

  </div>
  <p>
   <?php if (count($_from = (array)$this->_tpl_vars['archives'])):
    foreach ($_from as $this->_tpl_vars['month']):
?>
  <a href="<?php echo $this->_tpl_vars['month']->getUrl(); ?>
"><?php echo $this->_tpl_vars['month']->getName(); ?>
</a><br/>
   <?php endforeach; unset($_from); endif; ?>
  </p>
  <div class="Sidetitle">


This is part taken from that file and the red line is No. 33. I am  sorry to miss this part before.

I have also tried to use all fresh 1.0.3 files. still same problem , no matter in line 22 in admin setting, or line 33 in this file. Thank you

 
« 最後編輯時間: 一月 24, 2006, 12:44:44 下午 由 xinyuan » 已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #13 於: 一月 24, 2006, 03:06:20 下午 »

1. You have to add ";" after print_r($result).
2. It seems your upload does not success, your FTP corupt some upload files, I'll suggest you upload again, and make sure all file upload successfully.

Mark
« 最後編輯時間: 一月 24, 2006, 04:25:31 下午 由 markwu » 已記錄

xinyuan
新手見習
*
文章: 38


檢視個人資料
« 回覆文章 #14 於: 一月 25, 2006, 02:00:40 下午 »

http://forums.lifetype.net/viewtopic.php?t=4081

I think I have upload them well. And the category_id table is missing. But I still don't know how to solve it, please see the above link, and give me more detailed way to deal with it. thanks.
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  最近升级至lifetype1.0.2版本, 结果出现这个错误,怎么办? « 上篇主題 下篇主題 »
    前往: