Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/theme.php on line 623

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/custom_posts/custom_posts.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 46

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 67

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 75

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 92

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiRender.php on line 70

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 181

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 538

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 695

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 1087

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112
おれせか

おれせか

なんかそれっぽいのをうにうに。

 -hogehoge
 --fugafuga
 -aaaaaa

↑なふうにpukiwiki記法でリストのネストを書いた時、
本来の出力されるhtmlは以下のようになるはずなんじゃけど、

<ul>
    <li>hogehoge
        <ul>
            <li>fugafuga</li>
        </ul>
    </li>
    <li>aaaaaa</li>
</ul>

なぜか、以下のように妙なとこで</p>タグが出力されてしまう。

<ul>
    <li>hogehoge</p>
        <ul>
            <li>fugafuga</li>
        </ul>
    </li>
    <li>aaaaaa</li>
</ul>

調べてみたらpukiwiki側じゃなくてWordPress側の問題で、どうもhtml直書きでdivなんかをネストしても起こる問題らしい。
牛庵ブログ - WordPressにネスト構造を書くときの挙動がおかしい

とりあえず、しばらくはhtml直書きでネスト作ることも無さそうなので、無理やりにリストのネストの時のみ対応。

  • %inst-dir%/wp-includes/formatting.php のfunction wpautop(~){~}内。
/* ▼08/11/02 ichi 変更▼
 *************************************************/
//$pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "<p>$1</p>\n", $pee); // make paragraphs, including one at the end
if(!preg_match('/\n?<li>(.+?)(?:\n\s*\n|\z)/s', $pee)){
    $pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "<p>$1</p>\n", $pee); // make paragraphs, including one at the end
}
/*************************************************/ 

だいぶムリヤリなので、また変な問題起こるかもしれんけど、それはその時にまた考える。

PAGETOP

あっれー?こっちじゃなくてwikiのほうが認証が変になってんぞ・・・。てゆーか通らねぇ。

PHP による HTTP 認証のフックは、 Apache モジュールとして実行した時のみ 有効で、CGI 版では利用できません。

んがぐぐ。

とりあえずの対処。
pukiwiki CGIの編集認証 - それはそれ。これはこれ。

んでも毎回edit.phpにアクセスすんのもイヤなので、私的メモな部分は別にwikiつくってディレクトリまるごと認証かけることにした。

PAGETOP

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/plugin/notice.inc.php on line 14

lolipopがPHP5に対応したよーなので使えるようにしてみたら、なんかエラーが出るように。

Catchable fatal error: Object of class PukiWikiRender could not be converted to string in ~~~

なんぞわからんなりにいじくりまわしたらなんとか治った。

  • %inst-dir%/wp-content/plugins/modPukiWiki/class/PukiWikiRender.php
class PukiWikiRender {
    var $_body;
    var $_settings;
    var $_linerules;
    var $_pattern;
    var $_replace;
    var $_source;
    var $_md5hash;
/* ▼08/10/27 ichi 追加▼
 *************************************************/
    static $_count = 0;
/*************************************************/
    /**
     * @desc        PukiWikiRenderクラスのコンストラクタ
     *
     * @param        $config        使用するconfigファイルのファイル名
     * @return
     *
     * @author
     */
    function PukiWikiRender($config='') {
/* ▼08/10/27 ichi 追加▼
 *************************************************/
        $this->_id = PukiWikiRender::$_count++;
/*************************************************/
        //デフォルトの設定ファイル読込
        require (MOD_PUKI_DEFAULT);
        PukiWikiConfig::initParams();
        foreach($_settings as $key=>$value) {
            PukiWikiConfig::setParam($key,$value);
        }
        PukiWikiConfig::initRules();
        PukiWikiConfig::addRuleArray($_rules);
        PukiWikiConfig::initInterWiki();
        $this->_body = &new PukiWikiBody($this,1);
        //コンストラクタのパラメータで$configが指定されている場合は、読み込む。
        if ($config and file_exists(MOD_PUKI_CONFIG_DIR.$config.".php")) {
            include (MOD_PUKI_CONFIG_DIR.$config.".php");
        } else if ($config and file_exists(MOD_PUKI_CONFIG_DIR.$config.".dist.php")){
            include (MOD_PUKI_CONFIG_DIR.$config.".dist.php");
        }
    }
/* ▼08/10/27 ichi 追加▼
 *************************************************/
    function __toString(){
        return strval($this->_id);
    }
/*************************************************/ 

とりあえずエラー出なきゃいいやくらいの感覚。困ったらまたその時に考える。


あと、magic_quote_gpcがoffにならねっぽ?

この度、全svサーバーのメンテナンスにより順次php5をリリースいたしておりますが、php5環境では弊社サーバの仕様によりphp環境変数の変更が行えません。

例 ).htaccessの場合 … php_value mbstring.internal_encoding EUC-JP
例 )ini_setの場合 … ini_set(mbstring.internal_encoding, EUC-JP);

現在、当該事項の対応・検証を行っております。今しばらくお待ち頂けます様よろしくお願いいたします。

php5をご利用中、またはphp4から移行される皆様へ

うんこ!うんこ!

なんかやり方あんじゃろか。

追記。

ユーザーページからできるようになったらし。

PHP5の php.ini の設定をユーザー専用ページから行うことができます。

ロリポップ!レンタルサーバー - php.iniの設定

PAGETOP

Search