[php] GeSHi v1.0.8.4 Compilation failed error on line 2132

最近WordpressプラグインであるiG:Syntax HiliterのGeSHiを最新のv1.0.8.4にバージョンアップしたんです。
その後しばらくしてサーバーのエラーログ見たらご覧の有様だよ!

これはひどい。

で、ちょっとぐぐってみたら記事を書いている方が居ました。

Not knowing exactly where to start in diagnosing this crazy expression, I simply disabled those “script delimiters” in the geshi/php.php file. The sections I commented out are lines 1080-1101. Now the script delimiters like <?php don’t get highlighted nicely, but I feel that’s a small price to pay for eliminating these errors. Another solution for the WP-Syntax users seems to be to downgrade to 0.9.4. Hopefully in the near future an update to Geshi will come out which fixes this issue once and for all.

つまりこのエラーを止めるには、

  1. geshi/php.phpの1080-1101行をコメントアウトする
  2. GeSHiをver0.9.4にダウングレードする

以上2つの手になると。
sourceforgeにはv1.0.0以上しか見つからなかったから1の方法にしといた。
そしたらHTMLが変換されなくなってたからしかたなくver3.5に入ってるやつに戻した 🙁

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください