LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: brainylife.com 於 六月 30, 2005, 04:17:27 下午



主題: 第一次點入出現的錯誤訊息
作者: brainylife.com六月 30, 2005, 04:17:27 下午
+o( 問題是這樣的
plog先前運作正常
最近點入個別blog都會出現以下錯誤訊息:

程式碼:
Exception message: chmod() has been disabled for security reasons
Error code: 2
-- Backtrace --
/home/crescent/public_html/plog/class/file/file.class.php(308): chmod
/home/crescent/public_html/plog/class/template/templateservice.class.php(295): file.createdir
/home/crescent/public_html/plog/class/template/templateservice.class.php(90): templateservice._configuretemplatesettings
/home/crescent/public_html/plog/class/view/smartyview.class.php(78): templateservice.template
/home/crescent/public_html/plog/class/view/blogview.class.php(39): viewarticleview.smartyview
/home/crescent/public_html/plog/class/view/viewarticleview.class.php(24): viewarticleview.blogview
/home/crescent/public_html/plog/class/action/viewarticleaction.class.php(112): viewarticleview.viewarticleview
/home/crescent/public_html/plog/class/controller/controller.class.php(305): viewarticleaction.perform
/home/crescent/public_html/plog/index.php(44): blogcontroller.process
/home/crescent/public_html/plog/post(21): include_once

Exception message: chmod() has been disabled for security reasons
Error code: 2
-- Backtrace --
/home/crescent/public_html/plog/class/file/file.class.php(308): chmod
/home/crescent/public_html/plog/plugins/authimage/pluginauthimage.class.php(58): file.createdir
/home/crescent/public_html/plog/class/plugin/pluginmanager.class.php(267): pluginauthimage.register
/home/crescent/public_html/plog/class/view/blogview.class.php(205): pluginmanager.getplugins
/home/crescent/public_html/plog/class/view/viewarticleview.class.php(73): blogview.render
/home/crescent/public_html/plog/class/controller/controller.class.php(325): viewarticleview.render
/home/crescent/public_html/plog/index.php(44): blogcontroller.process
/home/crescent/public_html/plog/post(21): include_once

Exception message: chmod() has been disabled for security reasons
Error code: 2
-- Backtrace --
/home/crescent/public_html/plog/class/file/file.class.php(308): chmod
/home/crescent/public_html/plog/plugins/flickr/pluginflickr.class.php(71): file.createdir
/home/crescent/public_html/plog/class/plugin/pluginmanager.class.php(267): pluginflickr.register
/home/crescent/public_html/plog/class/view/blogview.class.php(205): pluginmanager.getplugins
/home/crescent/public_html/plog/class/view/viewarticleview.class.php(73): blogview.render
/home/crescent/public_html/plog/class/controller/controller.class.php(325): viewarticleview.render
/home/crescent/public_html/plog/index.php(44): blogcontroller.process
/home/crescent/public_html/plog/post(21): include_once

Exception message: Cannot modify header information - headers already sent by (output started at /home/crescent/public_html/plog/class/object/exception.class.php:37)
Error code: 2
-- Backtrace --
/home/crescent/public_html/plog/class/view/view.class.php(172): header
/home/crescent/public_html/plog/class/view/view.class.php(309): viewarticleview.sendcontenttype
/home/crescent/public_html/plog/class/view/smartyview.class.php(163): view.render
/home/crescent/public_html/plog/class/view/blogview.class.php(224): smartyview.render
/home/crescent/public_html/plog/class/view/viewarticleview.class.php(73): blogview.render
/home/crescent/public_html/plog/class/controller/controller.class.php(325): viewarticleview.render
/home/crescent/public_html/plog/index.php(44): blogcontroller.process
/home/crescent/public_html/plog/post(21): include_once

Exception message: chmod() has been disabled for security reasons
Error code: 2
-- Backtrace --
/home/crescent/public_html/plog/class/template/smarty/core/core.write_file.php(44): chmod
/home/crescent/public_html/plog/class/template/smarty/core/core.write_compiled_resource.php(30): smarty_core_write_file
/home/crescent/public_html/plog/class/template/smarty/Smarty.class.php(1450): smarty_core_write_compiled_resource
/home/crescent/public_html/plog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/crescent/public_html/plog/class/template/template.class.php(120): smarty.fetch
/home/crescent/public_html/plog/class/view/smartyview.class.php(190): template.fetch
/home/crescent/public_html/plog/class/view/blogview.class.php(224): smartyview.render
/home/crescent/public_html/plog/class/view/viewarticleview.class.php(73): blogview.render
/home/crescent/public_html/plog/class/controller/controller.class.php(325): viewarticleview.render
/home/crescent/public_html/plog/index.php(44): blogcontroller.process
/home/crescent/public_html/plog/post(21): include_once

Exception message: chmod() has been disabled for security reasons
Error code: 2
-- Backtrace --
/home/crescent/public_html/plog/class/template/smarty/core/core.write_file.php(44): chmod
/home/crescent/public_html/plog/class/template/smarty/core/core.write_compiled_resource.php(30): smarty_core_write_file
/home/crescent/public_html/plog/class/template/smarty/Smarty.class.php(1450): smarty_core_write_compiled_resource
/home/crescent/public_html/plog/class/template/smarty/Smarty.class.php(1922): template._compile_resource
/home/crescent/public_html/plog/tmp/79/%%740^%%74056136^postandcomments.template.php(4): template._smarty_include
/home/crescent/public_html/plog/class/template/smarty/Smarty.class.php(1281): include
/home/crescent/public_html/plog/class/template/template.class.php(120): smarty.fetch
/home/crescent/public_html/plog/class/view/smartyview.class.php(190): template.fetch
/home/crescent/public_html/plog/class/view/blogview.class.php(224): smartyview.render
/home/crescent/public_html/plog/class/view/viewarticleview.class.php(73): blogview.render
/home/crescent/public_html/plog/class/controller/controller.class.php(325): viewarticleview.render
/home/crescent/public_html/plog/index.php(44): blogcontroller.process
/home/crescent/public_html/plog/post(21): include_once


而且
通常錯誤訊息只會出現在第一次點入
只要更新過一次就會消失
雖然不至於影響功能
不過每次都出現很討厭
麻煩高手解疑
謝謝

安裝的主機資訊如下↓
Apache 版本:1.3.33 (Unix)
MySQL 版本 :4.0.22-standard
PHP 版本:4.3.10


主題: 第一次點入出現的錯誤訊息
作者: markwu七月 08, 2005, 12:08:08 下午
看樣子你的虛擬主機廠商把 chmod 放到 php 的 disable_function 中,你可能要請他打開才行。

Mark


主題: 第一次點入出現的錯誤訊息
作者: brainylife.com七月 08, 2005, 01:19:32 下午
感謝回覆
之前與主機聯繫時
對方表示並沒有disable
不過錯誤訊息維持約一週左右就自動消失
目前已恢復正常


主題: 第一次點入出現的錯誤訊息
作者: markwu七月 08, 2005, 02:25:27 下午
引用自: brainylife.com
感謝回覆
之前與主機聯繫時
對方表示並沒有disable
不過錯誤訊息維持約一週左右就自動消失
目前已恢復正常


瞭解!有可能他們正在升級吧,我知前遇到類似狀況都是主機廠商正在升級或是維修。

另外,你的 Blog 真的是不錯,這是個給小說家的 blog 嗎?你們預備怎麼經營呢?

Mark


主題: 第一次點入出現的錯誤訊息
作者: brainylife.com七月 08, 2005, 05:19:35 下午
對,我們的blog服務對象是針對線上小說作家,
過去我們曾用過phpnuke,phpbb2跟phparticle這些程式來做發文平台,
不過好像都不夠個人化,文章的互動性也不夠,
這個站的經營模式是提供免費的創作空間當作作家養成的園地,
由於我們有多家出版社作為線上作家的作品出口,
因此出書是我們與使用者在從事blogging的共同目標。