用你熟悉的文字編輯器(如 nano)修改兩個檔案
/var/www/html/admin/common/script.js.php
/var/www/html/modules/pbxadmin/js/script.js.php
找到:
"The secret must contain at least two numbers and two letters."
在這一行上面,增加:
return false;
存檔後再新增/修改 Extensions 就可以了
本BLOG主要以自我學習備忘用,歡迎指教..^^
return false;
更新 2.30版
if (!file_exists($path) || !is_file($path)) {
Header('HTTP/1.1 404 Not Found');
die("404 4 "._tr("no_file")." ");
}
替換成
if (!file_exists($path) || !is_file($path)) {
// modified by alang
// check the format mp3
$mp3file = str_replace(".wav",".mp3",$file);
$mp3path = $path_record.$mp3file;
if (!is_file($mp3path)) {
die("404 40 ".$arrLang["no_file"]." ");
}else{
$file = $mp3file;
$path = $mp3path;
}
}
PS.如果在Elastix / monitoring 顯示 404 40
則要手動修改/var/www/html/modules/monitoring/configs/default.conf.php
#$arrConfModule['records_dir'] = '/var/spool/asterisk/monitor/';
改為你所指定的錄音檔存放路徑.
tools/ directory to your $PATH (問題1 )
使用Google自訂搜尋功能,遇到了css styles的問題
會在自訂顯示區,顯示一條空白的長條型,經檢查後是原來的Css Style中,.gsc-control-cse有設定border-width
=13及 padding=1;
Google Search:
本文節錄自:happyleading.sg1004.myweb.hinet.net
|
|||||
|
|||||
|
bundle install 提示缺少json 1.7.0
安裝 json
gem install json -v '1.7.0'
發生錯誤
"""$ gem install json Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. c:/Ruby193/bin/ruby.exe extconf.rb creating Makefile make generating parser-i386-mingw32.def compiling parser.c cc1.exe: error: unrecognized command line option "-Wno-missing-field-initializers" make: *** [parser.o] Error 1 Gem files will remain installed in c:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7.0 for inspection. Results logged to c:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7.0/ext/json/ext/parser/gem_make.out"""
檢查錯誤 出在 cc1.exe, 先拜Google
查出問題在於 Ruby - DevKit 版本 我安裝錯誤!! 裝到舊版本的DevKit了 XD
DevKit-3.4.5 available at our archive downloads page. For RubyInstaller versions 1.8.7, 1.9.2, and 1.9.3 use the DevKit 4.5.2 from our main downloads page.C:\DevKit. NOTE: the SFX is really a 7-Zip archive with a bit of embedded magic. If you already have 7-Zip
installed, you can simply right-click it and extract its contents as
you would a normal 7z archive. In the instructions that follow, the
directory that you selected is identified as .cd from Step 3 above.ruby dk.rb init to generate the config.yml
file to be used later in this Step. Your installed Rubies will be listed
there (only those installed by a RubyInstaller package are detected at
present).config.yml file to include installed Rubies not automagically discovered or remove Rubies you do not want to use the DevKit with.ruby dk.rb review to review the list of Rubies to be enhanced to use the DevKit and verify the changes you made to it are correct.ruby dk.rb install to DevKit enhance your installed Rubies. This step installs (or updates) an operating_system.rb file into the relevant directory needed to implement a RubyGems pre_install hook and a devkit.rb helper library file into \lib\ruby\site_ruby . NOTE: you may need to use the --force option to update (with backup of the originals) the above mentioned files as discussed at the SFX DevKit upgrade FAQ entry.gem install rdiscount --platform=ruby. RDiscount should install correctly and you should see Temporarily enhancing PATH to include DevKit... in the screen messages. Next run ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html" to confirm that the rdiscount gem is working.gem install rdiscount --platform=ruby 第二步驟..省略C:\DevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
C:\DevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.
C:/Ruby193
C:\DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby193'
[INFO] Installing 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb'
C:\DevKit>gem install rdiscount --platform=ruby
Fetching: rdiscount-1.6.8.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
1 gem installed
Installing ri documentation for rdiscount-1.6.8...
Installing RDoc documentation for rdiscount-1.6.8...
再回到發生錯誤的地方 # bundle install 應該就能跳過 cc1.exe的錯誤了^^萬歲