歡迎光臨, 訪客. 請先 登入註冊一個帳號.
九月 29, 2024, 05:11:44 上午
19595 文章 在 3865 主題 由 4579 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  RSS 有問題 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: RSS 有問題  (閱讀 13915 次)
haocheng
新手見習
*
文章: 8


檢視個人資料
« 於: 七月 13, 2005, 09:47:43 下午 »

Hi~~~

我用pLog架了一個站台,
到現在算是很滿意,
沒有什麼太大的問題,
但就是我的RSS一直搞不定,
我的網站在這裡:
http://www.planet2816.org/blog/index.php?blogId=1
點進去看RSS都會出現錯誤,
程式碼:

XML 分析錯誤: 文件元素後有垃圾
位址: http://www.planet2816.org/blog/rss.php?blogId=1&profile=rss090
行號 2, 第 1 個字:<b>Fatal error</b>:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in <b>/var/www/blog/class/template/smarty/Smarty_Compiler.class.php</b> on line <b>1580</b><br />
^

memory_limit的值我已經設定了,
可是還是一樣出現錯誤...

我的pLog是架在自己家裡的Server,
作業系統是Debian 3.1,
先謝謝各位的熱心回答囉  微笑

haocheng
已記錄

To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #1 於: 八月 09, 2005, 03:36:46 下午 »

你可以試一下搜尋嗎? sigh ...

http://forum.lifetype.org.tw/index.php?topic=42.0&highlight=memory

Mark
已記錄

haocheng
新手見習
*
文章: 8


檢視個人資料
« 回覆文章 #2 於: 八月 09, 2005, 04:25:36 下午 »

嗯,我知道memory的問題啊,
而且我已經加上去那個解決的語法了,
不過RSS還是一樣出現那個錯誤訊息,
所以我才很困惑到底為什麼會這樣  疑惑
已記錄

To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #3 於: 八月 09, 2005, 04:31:27 下午 »

那代表你沒加成功阿!

你看一下這一篇文章 http://forum.lifetype.org.tw/index.php?topic=42.0&highlight=memory+%E4%B8%8D%E5%A4%A0

1. 基本的改法是修改 php.ini 。這是一勞永逸的方式!

引用
memory_limit=16M


2. 如果機器不是你的,哪可能得要修改 .htaccess

引用
php_value memory_limit 16M


3. 如果 .htaccess 不允許你修改,那麼 要修改 index.php, summary.php, rss.php, admin.php 把這幾個程式全加上

引用
ini_set("upload_max_filesize", "10M");
ini_set("memory_limit", "16M");
ini_set("post_max_size", "12M");


4. 如果還是不行。ㄟ .... 真的沒辦法了。

希望這一次會成功!

Mark
已記錄

haocheng
新手見習
*
文章: 8


檢視個人資料
« 回覆文章 #4 於: 八月 09, 2005, 05:16:28 下午 »

我之前用的是第三種,
那我回去試試前兩種方式看看,
看結果如何晚上我再PO上來,
Mark,謝啦  微笑

還有,如果我改用第一種方式的話,
那第三種方式加上的那些程式碼要先拿掉嗎?
還是不管它放著就好?
已記錄

To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
haocheng
新手見習
*
文章: 8


檢視個人資料
« 回覆文章 #5 於: 八月 09, 2005, 10:21:55 下午 »

哈哈哈,可以了耶  開懷大笑

我用第一個方法就成功了,
感激不盡,Mark,
之前用第三個方法就有問題,真怪  疑惑
已記錄

To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #6 於: 八月 09, 2005, 10:31:29 下午 »

恭喜!我在猜沒辦法的原因是因為你只加到 index.php,這是不夠的。 rss.php, summary.php, admin.php 也都要加才行。

index.php --> 負責前台輸出
admin.php --> 負責後台輸出
rss.php --> 負責 rss 輸出
summary.php --> 負責彙整網頁輸出。

所以,都要加!

Mark
已記錄

haocheng
新手見習
*
文章: 8


檢視個人資料
« 回覆文章 #7 於: 八月 09, 2005, 10:59:38 下午 »

引用自: markwu
恭喜!我在猜沒辦法的原因是因為你只加到 index.php,這是不夠的。 rss.php, summary.php, admin.php 也都要加才行。

index.php --> 負責前台輸出
admin.php --> 負責後台輸出
rss.php --> 負責 rss 輸出
summary.php --> 負責彙整網頁輸出。

所以,都要加!
Mark


我也在想可能是這個原因,
因為我之前搜尋的時候,
有些只說要加在index.php和admin.php,
比較少提到rss.php和summary.php...

不過解決了就好,
還是很謝謝囉  開懷大笑
已記錄

To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  RSS 有問題 « 上篇主題 下篇主題 »
    前往: