*Strict Standards [#cd861597]
&size(16){&font(b){Strict Standards: Non-static method XoopsErrorHandler::getInstance() should not be called statically in [wwwServerURL]/xoops/class/errorhandler.php on line 202};};
*php5.4 [#mbd2f00b]
php5.4を使ってPukiWikiを構築するとindex.phpが真っ白になり、
エラーを出力する様にindex.phpを書き換えるとエラーの嵐になる(´・ω・`)
一応オフィシャルにパッチがあるのだが、自環境だと上手く適応出来なかったので手書き修正
~
php5.4を使用してxoopsを構築した際に発生。
php5.3の仕様とphp5.4の仕様では大きな違いがある為に発生する。(←インスタンスを“public static”にする必要がある為?)
一番楽なのはphp5.3を使用する事だが、それが出来ない場合には以下のxoopsソースの一部(具体的にはgetInstance()を使用する関数指定を変更)を書き換える事でエラーが出なくなる。

*参考ページ [#k4efcec6]
-[[kenmituoの日記>+http://d.hatena.ne.jp/kenmituo/20120522/1337674827]]
-[[たるすぴ日記>+http://imapsoopy.ddo.jp/tarusoopy/wordpress/2012/05/03/pukiwiki-for-php5-4-x/]]
-[[Projeto: Vermelho>+http://vermelho.jugem.jp/?eid=76]]
-[[martianの日記>+http://slashdot.jp/journal/548548/PHP5.4-%E3%81%A8-PukiWiki]]
-[[digape.com>+http://digape.com/201205/php-php5-4%E3%81%A7pukiwiki%E3%82%92%E5%8B%95%E3%81%8B%E3%81%99/]]
~

 # vi [XOOPS_ROOT_PATH]/class/errorhandler.php
-&size(16){&font(b){クラス名:XoopsErrorHandler};};
 -    function &getInstance()
 -    {
 -        static $instance = null;
 -        if (empty($instance)) {
 -            $instance = new XoopsErrorHandler;
 -        }
 -        return $instance;
 -    }
_/_/_/_/_/
 +    public static function &getInstance()
 +    {
 +        static $instance = null;
 +        if (empty($instance)) {
 +            $instance = new XoopsErrorHandler;
 +        }
 +        return $instance;
 +    }
*最初にやる事 [#bc079235]
+pukiwiki.ini.php
pukiwiki.ini.phpの内容を確認して、必要項目を書き換える
よく忘れるのが以下の項目
 // Specify PukiWiki URL (default: auto)
 $script = 'http://example.com/pukiwiki/';
~
 // Shorten $script: Cut its file name (default: not cut)
 $script_directory_index = 'index.php';
~
+php.ini
場合によっては、php.iniのinclude_pathを書き換える
prefix指定無しのmakeでphp5.4をインストールしたのならこんな感じになる筈
 include_path = ".:/usr/local/include/php:/usr/local/lib/php"
設定し終わったらapacheを再起動
~
+index.php
真っ白ページからphpのエラーが見える様にする必要がある為、
pukiwikiのindex.phpを書き換える
 //コメントアウト
 //error_reporting(E_ERROR | E_PARSE); // Avoid E_WARNING, E_NOTICE, etc
 
 //アンコメント
 error_reporting(E_ALL); // Debug purpose
~
+.htaccess
通常は弄る必要が無いのだが、apacheの設定でRewriteEngineをONにしている場合や、
上層ディレクトリで再帰的にONにしている場合はエラーが出るので、
pukiwikiのrootディレクトリにある.htaccessに以下を追記する
 DirectoryIndex index.php
 RewriteEngine off
そして、apache再起動
~

 # vi [XOOPS_ROOT_PATH]/class/database/database.php
-&size(16){&font(b){クラス名:Database};};
 -    function &getInstance()
 -    {
 -        $instance =& XoopsDatabaseFactory::getDatabaseConnection();
 -        return $instance;
 -    }
_/_/_/_/_/
 +    public static function &getInstance()
 +    {
 +        $instance =& XoopsDatabaseFactory::getDatabaseConnection();
 +        return $instance;
 +    }
*エラーの種類 [#u13db018]
上の項目をやった後にpukiwikiのindex.phpを開くと、何らかのエラーが出力されている
以後はエラーに合わせてソースを書き換える
-aaa
-bbbb