主題: Plog使用上的問題
作者: cute0185 於 五月 16, 2005, 05:08:24 下午
我的Plog已經安裝完畢了 平常都好好的,沒問題 不過有時候會出現以下的問題
Exception message: fopen(./tmp/1\42886aaf72dd8): failed to open stream: Permission denied Error code: 2 -- Backtrace -- d:\appserv\www\plog\class\template\smarty\core\core.write_file.php(30): fopen d:\appserv\www\plog\class\template\smarty\core\core.write_cache_file.php(66): smarty_core_write_file d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1297): smarty_core_write_cache_file d:\appserv\www\plog\class\template\cachedtemplate.class.php(48): smarty.fetch d:\appserv\www\plog\class\view\smartyview.class.php(190): cachedtemplate.fetch d:\appserv\www\plog\class\view\blogview.class.php(212): smartyview.render d:\appserv\www\plog\class\view\defaultview.class.php(82): blogview.render d:\appserv\www\plog\class\controller\controller.class.php(325): defaultview.render d:\appserv\www\plog\index.php(41): blogcontroller.process
Exception message: Smarty error: problem writing temporary file './tmp/1\42886aaf72dd8' Error code: 512 -- Backtrace -- d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1108): trigger_error d:\appserv\www\plog\class\template\smarty\core\core.write_file.php(31): cachedtemplate.trigger_error d:\appserv\www\plog\class\template\smarty\core\core.write_cache_file.php(66): smarty_core_write_file d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1297): smarty_core_write_cache_file d:\appserv\www\plog\class\template\cachedtemplate.class.php(48): smarty.fetch d:\appserv\www\plog\class\view\smartyview.class.php(190): cachedtemplate.fetch d:\appserv\www\plog\class\view\blogview.class.php(212): smartyview.render d:\appserv\www\plog\class\view\defaultview.class.php(82): blogview.render d:\appserv\www\plog\class\controller\controller.class.php(325): defaultview.render d:\appserv\www\plog\index.php(41): blogcontroller.process
Exception message: fopen(./tmp/1\42886aaf71cbd): failed to open stream: Permission denied Error code: 2 -- Backtrace -- d:\appserv\www\plog\class\template\smarty\core\core.write_file.php(30): fopen d:\appserv\www\plog\class\template\smarty\core\core.write_compiled_resource.php(30): smarty_core_write_file d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1450): smarty_core_write_compiled_resource d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1279): cachedtemplate._compile_resource d:\appserv\www\plog\class\template\cachedtemplate.class.php(48): smarty.fetch d:\appserv\www\plog\class\view\smartyview.class.php(190): cachedtemplate.fetch d:\appserv\www\plog\class\view\blogview.class.php(212): smartyview.render d:\appserv\www\plog\class\view\defaultview.class.php(82): blogview.render d:\appserv\www\plog\class\controller\controller.class.php(325): defaultview.render d:\appserv\www\plog\index.php(41): blogcontroller.process
Exception message: Smarty error: problem writing temporary file './tmp/1\42886aaf71cbd' Error code: 512 -- Backtrace -- d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1108): trigger_error d:\appserv\www\plog\class\template\smarty\core\core.write_file.php(31): cachedtemplate.trigger_error d:\appserv\www\plog\class\template\smarty\core\core.write_compiled_resource.php(30): smarty_core_write_file d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1450): smarty_core_write_compiled_resource d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1279): cachedtemplate._compile_resource d:\appserv\www\plog\class\template\cachedtemplate.class.php(48): smarty.fetch d:\appserv\www\plog\class\view\smartyview.class.php(190): cachedtemplate.fetch d:\appserv\www\plog\class\view\blogview.class.php(212): smartyview.render d:\appserv\www\plog\class\view\defaultview.class.php(82): blogview.render d:\appserv\www\plog\class\controller\controller.class.php(325): defaultview.render d:\appserv\www\plog\index.php(41): blogcontroller.process
Exception message: fetch(./tmp/1\%%108^%%1080801351^main.template.php): failed to open stream: Permission denied Error code: 2 -- Backtrace -- d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1281): fetch d:\appserv\www\plog\class\template\cachedtemplate.class.php(48): smarty.fetch d:\appserv\www\plog\class\view\smartyview.class.php(190): cachedtemplate.fetch d:\appserv\www\plog\class\view\blogview.class.php(212): smartyview.render d:\appserv\www\plog\class\view\defaultview.class.php(82): blogview.render d:\appserv\www\plog\class\controller\controller.class.php(325): defaultview.render d:\appserv\www\plog\index.php(41): blogcontroller.process
Exception message: fetch(./tmp/1\%%108^%%1080801351^main.template.php): failed to open stream: Permission denied Error code: 2 -- Backtrace -- d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1281): fetch d:\appserv\www\plog\class\template\cachedtemplate.class.php(48): smarty.fetch d:\appserv\www\plog\class\view\smartyview.class.php(190): cachedtemplate.fetch d:\appserv\www\plog\class\view\blogview.class.php(212): smartyview.render d:\appserv\www\plog\class\view\defaultview.class.php(82): blogview.render d:\appserv\www\plog\class\controller\controller.class.php(325): defaultview.render d:\appserv\www\plog\index.php(41): blogcontroller.process
Exception message: fetch(): Failed opening './tmp/1\%%108^%%1080801351^main.template.php' for inclusion (include_path='.;c:\php4\pear') Error code: 2 -- Backtrace -- d:\appserv\www\plog\class\template\smarty\Smarty.class.php(1281): fetch d:\appserv\www\plog\class\template\cachedtemplate.class.php(48): smarty.fetch d:\appserv\www\plog\class\view\smartyview.class.php(190): cachedtemplate.fetch d:\appserv\www\plog\class\view\blogview.class.php(212): smartyview.render d:\appserv\www\plog\class\view\defaultview.class.php(82): blogview.render d:\appserv\www\plog\class\controller\controller.class.php(325): defaultview.render d:\appserv\www\plog\index.php(41): blogcontroller.process
不知道是學校的網路掛了,還是怎樣>"<
主題: Plog使用上的問題
作者: markwu 於 五月 17, 2005, 12:05:39 下午
不是,這是說 smarty 沒有權限寫入 tmp 的某個目錄!
不確定為什麼會發生這個問題 :-( 你有安裝任何的 plugin 嗎?如 Flickr, Authimage 或是 del.icio.us?
Mark
主題: Plog使用上的問題
作者: cute0185 於 五月 17, 2005, 06:23:56 下午
我沒有安裝任何的plug-in 那問題出現的時機為 當我執行以下程式時 有時候會出現的 那,或許是程式的問題吧? package test;
import java.util.StringTokenizer; import java.util.Vector; import java.util.Hashtable; import org.apache.xmlrpc.*;
public class JavaClient {
private final static String server_url = "http://127.0.0.1/plog/xmlrpc.php"; private static String Appkey = ""; static final String Username = "cute0185"; static final String Password = "aa0654"; static final String Blogid = "1"; static final Hashtable Content = new Hashtable(); static final boolean Publish = true; public static void main (String [] args) { try { // Create an object to represent our server. represent=表示;代表 XmlRpcClient server = new XmlRpcClient(server_url);
// Build our parameter list. Vector params = new Vector(); //params.addElement(Appkey); Content.put("title","Title3"); Content.put("description","Pamela is cute!!"); Content.put("categories","ha ha"); System.out.println(Content.toString()); params.addElement(Blogid); params.addElement(Username); params.addElement(Password); Vector categories = new Vector(); String category = null; if (category != null) { StringTokenizer tok = new StringTokenizer(category, ","); while (tok.hasMoreTokens()) { categories.add(tok.nextToken().trim()); } } Content.put("categories", categories);
params.addElement(Content); params.addElement(Boolean.TRUE); // Call the server, and get our result. Hashtable result = (Hashtable) server.execute("metaWeblog.newPost",params); System.out.println(result);
} catch (XmlRpcException exception) { System.err.println("JavaClient: XML-RPC Fault #" + Integer.toString(exception.code) + ": " + exception.toString()); } catch (Exception exception) { System.err.println("JavaClient: " + exception.toString()); } } }
主題: Plog使用上的問題
作者: markwu 於 五月 17, 2005, 10:51:35 下午
你用的是哪一版的 pLog? 1.0 嗎?
能用 SVN 下載 1.0.1 來測試嗎?因為我們 fix 了一些 XMLRPC 的 bug, 我不確定是不是有 fix 這個問題,請你試試看。
Mark
主題: Plog使用上的問題
作者: cute0185 於 五月 18, 2005, 01:38:28 下午
嗯嗯~~ 我去下載來試試看摟 那~~~我要去哪裡下載勒 有帳號、密碼的限制嗎?
主題: Plog使用上的問題
作者: markwu 於 五月 19, 2005, 01:50:58 下午
嗯嗯~~ 我去下載來試試看摟 那~~~我要去哪裡下載勒 有帳號、密碼的限制嗎? 你參考一下這一篇 (http://blog.lifetype.org.tw/post/1/8)來下載,SVN 的 repository 是 http://devel.lifetype.net/svn/plog/plog/branches/plog-1.0.1 。 Mark
|