我的php.ini裡是顯示如下的
;open_basedir =
open_basedir應該也是關起來的
也就是說我的safe mode與open_basedir都是關起來的
我將0.32的plog整個移到現在的半專屬主機之後,summary裡的「最新發表的文章」就無法再更新
但整個plog其他功能都是正確的
如果我刪去tmp這資料夾裡所有暫存的資料,若執行到summary.php或admin.php時
第一次執行時它就會出現像Blowfish 所說的
Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/plugins/compiler.cycle.php) is not within the allowed path(s): (/home/httpd/vhosts/我的帳號/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(34): is_readable
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.assemble_plugin_filepath.php(54): smarty_core_get_include_path
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1378): smarty_core_assemble_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(588): smarty_compiler._get_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(544): smarty_compiler._compile_compiler_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(298): smarty_compiler._compile_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1498): smarty_compiler._compile_file
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._compile_source
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1271): template._compile_resource
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/template.class.php(83): smarty.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(179): template.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/controller/controller.class.php(118): summaryview.render
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(190): controller.process
Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/plugins/block.cycle.php) is not within the allowed path(s): (/home/httpd/vhosts/我的帳號/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(34): is_readable
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.assemble_plugin_filepath.php(54): smarty_core_get_include_path
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1378): smarty_core_assemble_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(663): smarty_compiler._get_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(546): smarty_compiler._compile_block_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(298): smarty_compiler._compile_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1498): smarty_compiler._compile_file
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._compile_source
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1271): template._compile_resource
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/template.class.php(83): smarty.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(179): template.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/controller/controller.class.php(118): summaryview.render
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(190): controller.process
可是當我發表完一篇文章後,它自動在tmp裡又生出了檔案就好了,執行到summary.php不會再有問題,但在執行有些admin.php的功能時則會再出現上頭的那些錯誤訊息
而且那summary裡的「最新發表的文章」無法再更新
其實我原本是要升級到1.0的,而我也真的那麼做了三次
但沒有一次成功,至少我每次的問題都嘗試著去解決了
最後一次就是出現在這個tmp,以及使用者的模版執行錯誤(因為我預設都是用reic的,然後我也沒辦法請每個人都去改回grey)
呼~真的是要經歷好幾次失敗呢
於是我看到四月一日會有正式版出來,我就想說先恢復到0.32好了,等4/1之後再一次去解決會出現的問題
沒想到,我搬個主機,連0.32的summary裡的「最新發表的文章」都出了問題