Posts

Showing posts from 2012

drupal ckeditor missing toolbar 的問題

最近更新了 ckeditor 的版本 因為看到官網出到 4 有 inline editor 功能 整個很心動,但試裝過不相容 所以又換回 3.x 最新版 3.6.5 toolbar 還是消失了 這個問題之前就遇過 每次 ckeditor toolbar 不見我就弄很久 這次就做一下筆記吧! 1. 請先確定 ckeditor.js 路徑是否正確(直接檢視編輯頁面的原始檔) /admin/settings/ckeditor/editg Path to CKEditor 我是設定成 %l/ckeditor  2. 然後一定要 rebuild permission(admin/content/node-settings/rebuild) 跟清 cache 如果上述做過還一樣 那再加入下面步驟看看 如果原本 ckeditor 只開放給一個 role 那請隨便再加入一個 role 就是到 admin/user/permissions 將你要加入的 role 勾選 access ckeditor 的權限 然後到 admin/settings/ckeditor/edit/Default 將  Roles allowed to use this profile 對應的 role 打勾 然後重複上面的步驟 2 如果 ckeditor toolbar 有出現再把剛加入的 role 移除即可 環境: Drupal 6.26 CKEditor 6.x-1.12

Druapl 中 CKeditor 的惱人錯誤訊息

這個問題其實存在很久了 每次在 admin/reports/status 都會出現這樣的錯誤訊息 You are using a feature that requires manual integration in the config.php file. Please read the "Installing CKFinder" section in the README.txt file carefully and add a require_once ... statement to the sites/www.funquest.com.tw.vote/modules/ckeditor/ckfinder/config.php file. 雖然出現這錯誤訊息並不會影響到操作 但有錯誤實在是一件很討厭的事 Reference 有詳細安裝 CKeditor 跟 CKfinder 的過程 這邊僅列出已正常安裝的情況下需要做的設定 開啟 sites\all\modules\ckeditor\ckfinder\config.php 找到 $baseDir = resolveUrl($baseUrl); 在下面加上這行即可 require_once '../../../../includes/filemanager.config.php'; 環境: Drupal 6.26 CKeditor 3.6.5 CKfinder 2.0.2 Reference: Drupal6下面安装ckeditor和ckfinder

升級 mysql 5.1 to 5.5 後遇到的問題

Image
從原本的 mysql 5.1.56 升級到 mariadb 5.5.28a 除了匯出時有個 db 的 views 有問題以外,其他都一切正常 轉換到新的資料庫後重新編譯 php, 重開 apache 後就可正常連線了 不過 function 的部份似乎出了點問題 原本想要開啟 navicat 將 function 重匯 不過卻出現下面的錯誤 1548 - Cannot load from mysql.proc. The Table is probably corrupted 上網查了一下解決方式蠻簡單的 只要下指令修復即可 /usr/local/mysql/bin/mysql_upgrade -u root -p 升級過程: dump all databases /usr/local/mysql/bin/mysqldump -u root -p --all-databases > /home/all.sql backup user privileges shutdown mysql, change my.ini settings start mysql restore all databases /usr/local/mysql/bin/mysql -u root -p --socket=/tmp/mysql.sock < /home/all.sql restore user privileges stop apache recompile php start apache 環境: CentOS x86_64 5.8 Apache 2.2.22 / PHP 5.3.19 Reference: Fix: Cannot load from mysql.proc. The table is probably corrupted

libmemcache 1.0.11 & 1.0.12 have problem !

我在 CentOS 5.8 x86_64 上面將 php 5.2 升級到 5.3 去 先升級 memcache 到 1.4.15, libmemcached 到 1.0.12(原本是 0.x) 到 php 5.3 要用 pecl 安裝 memcached 會出現下面問題 # /usr/local/php5/bin/pecl install memcached WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading memcached-2.1.0.tgz ... Starting to download memcached-2.1.0.tgz (39,095 bytes) ..........done: 39,095 bytes 11 source files, building WARNING: php_bin /usr/local/php5/bin/php appears to have a suffix 5/bin/php, but config variable php_suffix does not match running: phpize Configuring for: PHP Api Version:         20090626 Zend Module Api No:      20090626 Zend Extension Api No:   220090626 building in /tmp/pear/temp/pear-build-rootSXEpVq/memcached-2.1.0 running: /tmp/pear/temp/memcached/configure checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for C compiler default output file name... a.out checking whether th

【試用】德國DRULA朵拉潔膚皂

Image
DRULA complexion soap helps to have a soft, fresh, and pure complexion 首先要感謝Janet提供這個試用的機會 讓我第一次使用到這 有歷史 的肥皂 品名: Drula 朵拉潔膚皂 用途:臉部或身體清潔(拿來洗身體似乎太浪費了,手沾濕搓著兩三次就夠了) 成分:棕櫚油酸鈉、椰油酸鈉、水、甘油、丙三醇、鉍化物、羊毛脂、香料、醋酸鹽維他命E、氯化鈉、羥乙磷酸四鈉、酸性橙7、二氧化鈦 重量:75g(2.6oz) 進口商:綠寶國際企業有限公司 粧廣字號: 北衛粧廣字第10103147號 官網的資料 有提到下面幾點 When to recommend DRULA COMPLEXION SOAP? for cleansing of sensitive skin(適合敏感型肌膚) DRULA COMPLEXION SOAP supports the treatment of skin impurities like pimples, blackheads and eczemas(對於粉刺、黑頭有明顯的改善) to support the treatment with the other DRULA products 雖然說才 75g 但我用到現在有三個月了 一天洗個兩次,感覺好像沒有變小 這塊洗個半年應該是沒問題 (代理商看到這邊應該是哭了 -v-) 很多 for man 的洗面乳洗完整個超乾澀 但洗完這個,臉會變得緊繃,但不會乾喔! 洗了快三個月,粉刺有明顯的變少耶! 不是我自己這樣說,我妹前天也是這麼說 長期使用下來除了粉刺變少外,毛孔也變小了 這真的是件很神奇的事! 這邊特別標註了製造日期及有限期限 基本上香皂在乾燥的環境下應該是不會壞掉 細心的代理商在包裝旁邊特別印製了 QRcode 可以使用智慧型手機掃描看看呦! 他們的 線上賣場 裡面還有賣很多德國進口的東西 都是些潔身的產品,很多都是標榜天然的成份 之前用過一款男用洗髮乳,裡頭就沒添加 起泡劑 或 矽磷 等物質 洗後很舒服明顯感覺頭髮有洗乾淨,還帶有淡淡的香味 另外還有一款也是很神奇 之前給我阿母用 德國 Drula 朵拉

libmemcached 從 0.47 升級到 1.0.10

之前 libmemcached 0.47 好一陣子沒更新 最近因為 php 升級到 5.3 的關係 原本使用 pecl 安裝 memcached 的方式會有問題 所以才想說將 memcached 跟 libmemcached 都升級一下 1.0.x 跟 0.4x 的版本安裝有些不同 下面紅色的部份是需要新安裝的套件及環境設定 安裝所需套件 # yum install libevent-devel gcc gcc-c++ # yum install gcc44 gcc44-c++ libstdc++44-devel (for libmemcached 1.0) # yum install boost-devel (for libmemcached 1.0) 環境設定 # export CC=/usr/bin/gcc44 or export CC=/usr/bin/gcc # export CXX=/usr/bin/g++44 下載安裝 libmemcached # wget http://download.tangent.org/libmemcached-1.0.10.tar.gz ./configure --with-memcached # make && make install 環境: CentOS 5.8 x64 memcached 1.4.15 參考文件: [1]  libmemcached - A C and C++ client library for memcached [2]  CentOS 编译安装 Nginx 1.2 + PHP 5.3.14 + APC 3.1.9 + php-memcached + php-redis + php

裝了 Drupal6 就無法開啟 server-status & server-info 的問題

這個問題存在很久了 以前如果遇到 apache 有問題就會到 server-info & server-status 看一下 但自從使用 Druapl 後就沒看過 前幾天突然想到這應該跟 .htaccess 有關 查了一下資料只要在 drupal 下的 .htaccess 做一下修改 就可以正常看到囉! 找到 < IfModule mod_rewrite.c > 確認 RewriteEngine on (如果是 off 的話 druapl 的 clean url 會失效,所以正常都是 on 的) 在下面加入這兩段 RewriteCond %{REQUEST_URI} !=/server-status RewriteCond %{REQUEST_URI} !=/server-info 如果您的 server-info 及 server-status 還是看不到 請確認是否有開啟 apache 的 mod_status 及 mod_info mod_status 可以觀察到什麼 The number of children serving requests The number of idle children The status of each child, the number of requests that child has performed and the total number of bytes served by child A total number of accesses and byte count served The time the server was started/restarted and the time it has been running for Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request The current percentage CPU used by each child and in total by A

解決 simplenews 模組寄出的信寄件者為 unknown sender 的問題

自從更新 simplenews 到 6.x-2.0-alpha4 後 使用 gmail 收信寄件者都會是 (unknown sernder) 這個問題是因為 sender 的部份被沒有被正確的 encoding 導致 gmail 會辨識成 unknown sernder 如果在 hotmail 下,from name 的部份會被 double quote 框住 正常來說 double quote 是不會顯示出來的 將程式跟舊版比對一下 發現 includes/simplenews.mail.inc 第 714 行的 $formatted_address = drupal_substr(PHP_OS, 0, 3) == 'WIN' ? $address : '"' . $name . '" <' . $address . '>'; 改成下列即可 $formatted_address = drupal_substr(PHP_OS, 0, 3) == 'WIN' ? $address : '"' . mime_header_encode ($name) . '" <' . $address . '>'; 實行環境: Drupal 6.26 Simplenews  6.x-2.0-alpha4 紀錄時間為 2012-06-19 PM 6:56