すでにSmarty3-bata8に対応済み。
しかし最新のSmarty3.0.6へアップデートしたところ、エラーが発生。


  1. Argument 2 passed to smarty_function_original_func() must be an instance of Smarty, instance of Smarty_Internal_Template given

smarty_function_original_func( $data, Smarty $smarty)

と定義している関数で、エラー。

$smartyがClass Smartyじゃないって事だ。

なら、何が渡されているのか? Class Smarty_Internal_Template が渡されていた。

ソースをおってみたが、ちょっと何言ってるのかわからなかった。

仕方ないので第二引数のヒントを上記のクラスへ変更し、スクリプトを進めてみると、今度は、Undefined variableが。。

cakePHPにてSmartyを使っている。
Controller->pageTitleを使うと、titleを変更するだけなのに、デザイナーから連絡来るのが面倒。
なので、コンテンツのテンプレートで{original_func title='ほげほげ'}って関数で、smarty->assignにわたして、layout.tplにて、{$title}で展開している。

こうすればデザイナーさんが、自由にタイトルを編集できる。

が、その{$title}がlayoutで展開されていないようなのだ。

で、いろいろあったけど、はしょって説明すると、とりあえず

$smarty->

assingGlobal()

ってすれば大丈夫www

change logとか見るとちゃんと書いてあるけど、面倒だ。

前回のエントリー から、はや一年。
この時期になると、Redmine MylynConnectorにハマるようになっているんだろうか?


ワークスペース/.metadataに古い設定が残ってエラーが出るようになったので、Eclipse(ZendStudio8.0.0)の、新規インストールを開始した。

とはいっても、ダウンロードしてRedmineのコネクタをインストールするだけ、実質30分の作業のはずが、3時間もかかってしまった。


まず、MylynConnectorのupdate-site

  1. http://redmin-mylyncon.sourceforge.net/update-site/N/


ただ、前回のエントリーでも不足する、ここらへん のパッケージをインストール(pluginsへのコピー)していても、エラーになってしまう。


but it could not be found


3.6になって、pluginとかの管理がかわったのかな?

で、不足するpluginsのインストールは、

1. http://download.eclipse.org/releases/heliosをavaialble softwareに追加
2. install new softwareにて、追加したURLを選択(結構表示に時間がかかるかと思う。pendingをじっと待つ)

3. Web,XML,and Java EE Development以下の、「Apache MyFaces Trinidad Tag Support 」あたりをインストール。正直、どれなのかわからないwwww他にJava EE Developer Toolsあたりもうんストールした。

これで依存関係は問題解消するはずじゃw



Subversionのレポジトリを他のサーバーへ移動させなければいけなくなり作業を開始。

どちらもCentOS 5.5。

移動先は新規に立ち上げるサーバ。まだまっさらだ。

作業は、

  1. 新サーバへSubversionと、mod_dav_svnをインストール
  2. 新サーバへレポジトリをコピー
  3. /etc/httpd/conf.d/subversion.confを編集
  4. サービス開始

早速アクセスしてみると、Internalエラーが表示されてしまった。

/var/log/httpd/error_log

Internal error: Expected FS format '2'; found format '4'


たしかこれは、Subversionのバージョンの違いで出るエラーだ。
早速、コピー元のサーバーにて、

[root@origin ~]# rpm -qi subversion
Name : subversion Relocations: (not relocatable)
Version : 1.6.12 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release : 0.1.el5.rf Build Date: 2010年06月22日 18時55分11秒
Install Date: 2010年08月27日 02時58分50秒 Build Host: lisse.hasselt.wieers.com
Group : Development/Tools Source RPM: subversion-1.6.12-0.1.el5.rf.src.rpm
Size : 21247326 License: BSD
Signature : DSA/SHA1, 2010年06月22日 22時46分18秒, Key ID a20e52146b8d79e6
Packager : Dag Wieers <dag@wieers.com>
URL : http://subversion.tigris.org/
Summary : Modern Version Control System designed to replace CVS
Description :
Subversion is a concurrent version control system which enables one
or more users to collaborate in developing and maintaining a
hierarchy of files and directories while keeping a history of all
changes. Subversion only stores the differences between versions,
instead of every complete file. Subversion is intended to be a
compelling replacement for CVS.

コピー元は1.6、新サーバは1.4なので、どうやらバージョンの違いでエラーが出ているので、間違いなさそうだ。

新サーバへ、dag.repoを作成


[dag]
name=Dag RPM Repository for Fedora Core
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
enabled=0
gpgcheck=1


新サーバにて、yum --enablerepo=dag update しても、subversionが見つからない。
こんな時は、直接見てみるのもイイ

http://ftp.riken.jp/Linux/dag/redhat/el5/en/i386/dag

もちろんsubversionは、存在しない。

さて困ったなと、何の気なしに上へ移動(ParentDirectoryのリンク)。
すると、extrasなるフォルダが。
さっそく中に入ると、Subversion関連のパッケージが。。

なので、


[dagextras]
name=Dag Extras RPM Repository for Fedora Core
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/extras
enabled=0
gpgcheck=1

こんな感じに書き換えることで、Subversion1.6と、mod_dav_svnのインストールが完了。

Subversionを移動させたのかな?
前回は多分、単純にdagからインストールしたんだと思うんだけどな。
ずいぶん前のことで忘れてしまった。