Closed tomkhlin closed 10 years ago
修改後的設定以及程式的錯誤敘述, 可不可以說明清楚一點?
我的設定檔就像這樣:
<?php
$config = [
'blog' => [
'name' => '~kobayashi();亂玩電腦全紀錄',
'slogan' => '盡情的玩電腦是我最大的樂趣',
'footer' => 'Powerd By Pointless',
'description' => '',
'keywords' => '',
'lang' => 'zh-tw', // en | zh-tw | zh-cn | other
'dn' => 'localhost',
'base' => '/',
'author' => '~kobayashi();',
'email' => '3011850@gmail.com',
'disqus_shortname' => null, // Disqus Shortname
'google_analytics' => null, // Google Analytics - UA-xxxxxxxx-x
],
'theme' => 'Classic',
'extension' => [
'Atom',
'Sitemap'
],
'feed_quantity' => 5,
'article_quantity' => 5,
// :year, :month, :day
// :hour, :minute, :second, :timestamp
// :title, :url
'article_url' => ':year/:month/:day/:url',
// Reference: http://php.net/manual/en/timezones.php
'timezone' => 'Asia/Taipei',
'github' => [
'account' => null,
'repo' => null,
'branch' => null,
'cname' => false
],
// Reference: http://php.net/manual/en/function.iconv.php
// Big5 | GBK | other => UTF-8
'encoding' => 'UTF-8',
'editor' => 'vim'
];
我新增一篇文章的過程就像這樣: Enter Title: -> test Enter Custom Url: -> test Enter Tag: -> test Enter Category: -> test PHP Fatal error: Call to undefined function Pointless\iconv() in phar:///usr/local/bin/poi/src/Command/Pointless/AddCommand.php on line 53
這到底是出了什麼問題?
由此錯誤訊息可知,你的PHP還要再安裝iconv extension。
問題已解決~!! 感謝~!! 是說能不能把說明文件放上來呢?
說明文件還在規劃中。
我改config裡的編碼的類型,但我今天在新增一篇文章和刪除之前事發的文章時,pointless沒有辦法刪掉ㄝ.....程式也中斷掉了....QAQ