Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PIO log] 路徑組合錯誤 #31

Closed
scribetw opened this issue Jan 28, 2015 · 1 comment
Closed

[PIO log] 路徑組合錯誤 #31

scribetw opened this issue Jan 28, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@scribetw
Copy link
Member

<?php
define("ROOTPATH", dirname(__FILE__).DIRECTORY_SEPARATOR); // 主程式根目錄
define("STORAGE_PATH", ROOTPATH); // 圖檔、快取儲存目錄 (需具有讀寫權限 777)
define("CONNECTION_STRING", 'log://'.STORAGE_PATH.'img.log:'.STORAGE_PATH.'tree.log/'); // PIO 連線字串 (Log)

$PIOEnv = array( // PIO 環境常數
    'BOARD' => ROOTPATH,
);

$this->logfile = $this->ENV['BOARD'].$linkinfos[1]; // 投稿文字記錄檔檔名
$this->treefile = $this->ENV['BOARD'].$linkinfos[2]; // 樹狀結構記錄檔檔名
$this->porderfile = $this->ENV['BOARD'].$this->ENV['LUTCACHE']; // LUT索引查找表暫存檔案

$this->ENV['BOARD'] = ROOTPATH = /wwwroot/
$linkinfos[1] = STORAGE_PATH.'img.log = /wwwroot/img.log
$this->logfile = /wwwroot//wwwroot/img.log

@scribetw scribetw added the bug label Jan 28, 2015
@scribetw
Copy link
Member Author

這個問題應該是 8th.Release 多出 STORAGE_PATH 時沒有改好導致的。

迴避方案:

define("CONNECTION_STRING", 'log://img.log:tree.log/');

可暫時迴避,但若程式根目錄無寫入權限會有問題 (ex: RedHat OpenShift)。

預計 8th.Release.4 修正,釋出時程未定,大概是 2 月底。
因目前研發中的主幹 9th.Release 已經拿掉 PIO log 了,因此不會受影響。

@scribetw scribetw added this to the 8th.Release.4 milestone Jan 28, 2015
@scribetw scribetw self-assigned this Jan 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant