<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE feed [
      <!ENTITY lt "&#38;#60;">
      <!ENTITY gt "&#62;">
      <!ENTITY amp "&#38;#38;">
      <!ENTITY apos "&#39;">
      <!ENTITY quot "&#34;">
      <!ENTITY nbsp "&#160;">
      <!ENTITY copy "&#169;">
]>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title type="text">ブログ</title>
    <subtitle type="text">XCL Labo-XCL の利用とカスタマイズに関する備忘録</subtitle>
    <updated>2026-04-21T17:18:20+09:00</updated>
    <id>https://xcl.masa-lab.net/modules/d3blog/index.php</id>
    <link rel="alternate" type="text/xhtml" hreflang="ja" href="https://xcl.masa-lab.net/" />
    <link rel="self" type="application/atom+xml" href="https://xcl.masa-lab.net/modules/d3blog/index.php?page=atom" />
    <rights>Copyright &copy; 2008-2018 by MASA Lab.</rights>
    <generator uri="https://xcl.masa-lab.net/">D3BLOG - XOOPS BLOG MODULE</generator>
    <entry>
        <title>20181220 で xupdate 管理画面が白紙に</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=246" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=246</id>
        <published>2019-04-05T22:00:00+09:00</published>
        <updated>2019-10-16T17:21:20+09:00</updated>
        <category term="その他" label="その他" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">ローカル環境で xupdate を使って core をアップデートした後で本番環境にDBやファイルをアップロードし本番環境の管理画面から xupdate を呼び出したらリロードが何度も走ったうえで白紙画...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>ローカル環境で xupdate を使って core をアップデートした後で<br />本番環境にDBやファイルをアップロードし<br />本番環境の管理画面から xupdate を呼び出したら<br />リロードが何度も走ったうえで白紙画面が表示されてしまった<br /><br /><pre class="blogCode"><code>
/modules/xupdate/admin/index.php?action=UserPassColumnLenFix&amp;xoops_redirect=....
</code></pre><br /><br />色々調査したところ以下のような問題であった<br /><br />20181220 へのアップデートによって？ mainfile.php に以下のコードが挿入される<br /><pre class="blogCode"><code>
    // Alrady fixed length of users table pass column of this DB (Auto inserts by X-update)
    define(&#039;XCUBE_CORE_USER_PASS_LEN_FIXED&#039;, true);
</code></pre><br /><br />この値がセットされていないと xupdate の管理画面を表示した際に、この更新を行うためのリロードが行われる模様<br /><br />mainfile.php は動作環境によって異なるので、すでにこの対処が行われたDBで、このコードが追加されていない mainfile.php を使用すると<br />この更新処理を実行しようとして、失敗してしまうものと思われる<br /><br />本番環境の mainfile.php に、上記のコードを追加してあげれば治る</div>]]>
       </content>
    </entry>
    <entry>
        <title>xupdate CorePack アップデートで画面が真っ白 2</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=245" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=245</id>
        <published>2018-12-26T18:27:04+09:00</published>
        <updated>2019-04-05T14:41:32+09:00</updated>
        <category term="不具合情報" label="不具合情報" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">xupdate で以下のアップデートをかけたら画面が真っ白にCorePack 20180208 → CorePack 20181220以下の二つのファイルのパーミッションを確認html/modules/user/preload/Primary/EncryptPassword.class.phpxoops_trust_path/...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>xupdate で以下のアップデートをかけたら画面が真っ白に<br />CorePack 20180208 → CorePack 20181220<br /><br /><br />以下の二つのファイルのパーミッションを確認<br />html/modules/user/preload/Primary/EncryptPassword.class.php<br />xoops_trust_path/modules/xupdate/admin/actions/UserPassColumnLenFixAction.class.php</div>]]>
       </content>
    </entry>
    <entry>
        <title>xupdate で 解凍用ディレクトリの作成または書き込みに失敗しました</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=244" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=244</id>
        <published>2018-12-09T22:30:00+09:00</published>
        <updated>2019-04-05T14:41:08+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">xupdate で モジュールの更新を行おうとしたら
解凍用ディレクトリの作成または書き込みに失敗しました
というエラーが出たどうやら ftp の mkdir に失敗している模様550 permission deniedVSFTPD ...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>xupdate で モジュールの更新を行おうとしたら<br /><pre class="blogCode"><code>
解凍用ディレクトリの作成または書き込みに失敗しました
</code></pre><br />というエラーが出た<br /><br />どうやら ftp の mkdir に失敗している模様<br />550 permission denied<br /><br />VSFTPD の設定に問題があったみたい<br />/etc/vsftpd.conf で write_enable=YES にして<br />service vsftpd restart<br />して、再度実行<br /><br /><pre class="blogCode"><code>
他のプロセスがアップデート中です。しばらく待ってから再度実行してください。
</code></pre><br />が出た場合は<br />xoops_trust_path/uploads/xupdate/xupdate.lock を削除して再実行</div>]]>
       </content>
    </entry>
    <entry>
        <title>xupdate CorePack アップデートで画面が真っ白</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=243" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=243</id>
        <published>2018-11-26T19:31:11+09:00</published>
        <updated>2019-01-10T20:24:23+09:00</updated>
        <category term="その他" label="その他" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">xupdate で以下のアップデートをかけたら画面が真っ白にCorePack 20170328 → CorePack 20180208エラーログを見るとhtml/preload/debugOnlyAdmin.class.phpが読み込めてない模様フォルダを確認すると -rw-r----- と...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>xupdate で以下のアップデートをかけたら画面が真っ白に<br />CorePack 20170328 → CorePack 20180208<br /><br />エラーログを見ると<br />html/preload/debugOnlyAdmin.class.php<br />が読み込めてない模様<br /><br />フォルダを確認すると -rw-r----- というパーミッション<br />chmod go+r してあげてブラウザをリロード<br />無事に表示されるようになった<br /><br />おそらく開発環境の PHPは mod_php で動いているため<br />パーミッションが足りないのだろう<br />サーバ環境なら fastCGI なので問題は起きないと思われるが<br />他のファイルに合わせて -rw-r--r-- にしておくのが吉？</div>]]>
       </content>
    </entry>
    <entry>
        <title>xupdate のキャッシュをクリア？</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=242" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=242</id>
        <published>2018-11-26T19:21:06+09:00</published>
        <updated>2018-11-26T19:31:30+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">サーバから持ち帰ってきたxoops でxupdate をかけようとすると「アップデートあり」や「すべて」に何も出てこなくなっていた仕方ないのでTRUST_PATH/uploads/xupdate/ フォルダ下の*.php を削除再度...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>サーバから持ち帰ってきたxoops で<br />xupdate をかけようとすると<br />「アップデートあり」や「すべて」に何も出てこなくなっていた<br /><br />仕方ないので<br />TRUST_PATH/uploads/xupdate/ フォルダ下の<br />*.php を削除<br />再度表示させると、正しく出てきた</div>]]>
       </content>
    </entry>
    <entry>
        <title>coreserver 移行での不具合</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=240" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=240</id>
        <published>2018-10-29T22:10:00+09:00</published>
        <updated>2019-04-05T14:43:58+09:00</updated>
        <category term="不具合情報" label="不具合情報" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">ssh オートログインを設定していたのだが以下のエラーが出た
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>ssh オートログインを設定していたのだが以下のエラーが出た<br /><br /><pre class="blogCode"><code>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
 Someone could be eavesdropping on you right now (man-in-the-middle attack)!
 It is also possible that a host key has just been changed.
...
</code></pre><br /><br />サーバが変わったからだが、<br />ssh-keygen -R "xxx.coreserver.jp"<br />としてから、再接続で再登録してもなぜか怒られる<br /><br /><pre class="blogCode"><code>
Warning: the ECDSA host key for &#039;xxxxxxxxx&#039; differs from the key for the IP address &#039;XXX.XXX.XXX.XXX&#039;
Offending key for IP in /home/hoge/.ssh/known_hosts:N
</code></pre><br /><br />IPアドレスでの登録 known_hosts にあったのか、該当の行を削除したら治った<br />もう一度 ssh-keygen -R で IPアドレスを指定して実行すればよかったのかも<br />という訳で、別のマシンから再度試してみた<br />やっぱり<br />ssh-keygen -R "XXX.XXX.XXX.XXX"<br />と IPアドレスを指定したら、問題は消えた</div>]]>
       </content>
    </entry>
    <entry>
        <title>WizIn in Php5.3?</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=237" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=237</id>
        <published>2017-10-27T13:34:04+09:00</published>
        <updated>2019-10-17T19:06:53+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">PHP5.3以上では以下のワーニングが出る
Assigning the return value of new by reference is deprecated
$TRUST/wizin/src/Wizin_StdClass.php を修正
} else if ($phpVersion &lt; 5.3) {
    require_once dirname(__FILE__) . &#039;/stdclass/P...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>PHP5.3以上では以下のワーニングが出る<br /><br /><pre class="blogCode"><code>
Assigning the return value of new by reference is deprecated
</code></pre><br /><br />$TRUST/wizin/src/Wizin_StdClass.php を修正<br /><br /><pre class="blogCode"><code>
} else if ($phpVersion &lt; 5.3) {
    require_once dirname(__FILE__) . &#039;/stdclass/Php52x.class.php&#039;;
} else {
    require_once dirname(__FILE__) . &#039;/stdclass/Php53x.class.php&#039;;
}
</code></pre><br /><br />/stdclass/Php53x.class.php を Php52x.class.php からコピーして<br />該当の部分を修正<br /><br /><br />(trust)/modules/wizxc/class/WizXc_Util.class.php line 99</div>]]>
       </content>
    </entry>
    <entry>
        <title>Xoops X update d3forum</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=236" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=236</id>
        <published>2017-10-26T11:58:18+09:00</published>
        <updated>2019-04-05T14:45:30+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">アップデートで白紙になったpreload/D3forumCommonCss.php の o+r がない</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>アップデートで白紙になった<br /><br />preload/D3forumCommonCss.php の o+r がない</div>]]>
       </content>
    </entry>
    <entry>
        <title>xoops ten</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=235" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=235</id>
        <published>2017-10-25T20:05:51+09:00</published>
        <updated>2019-10-17T19:19:46+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">
xoops_trust_path/modules/protector/configs/configcacheXXXXX): failed to open stream: 
   Permission denied in file (trust)/modules/protector/class/protector.php line 172
chmod 777 xoops_trust_path/modules/protector/configs/chmod 666 xoops_trust_pat...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div><pre class="blogCode"><code>
xoops_trust_path/modules/protector/configs/configcacheXXXXX): failed to open stream: 
   Permission denied in file (trust)/modules/protector/class/protector.php line 172
</code></pre><br /><br />chmod 777 xoops_trust_path/modules/protector/configs/<br />chmod 666 xoops_trust_path/modules/protector/configs/config*<br />開発用サーバは module版のため？<br />本番サーバでは 644 にすべき？</div>]]>
       </content>
    </entry>
    <entry>
        <title>ubuntu14.04 mysql5.7 upgrade</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=233" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=233</id>
        <published>2017-10-25T12:03:23+09:00</published>
        <updated>2019-10-17T19:18:00+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">mysql 5.5 -> 5.7https://dev.mysql.com/downloads/mysql/5.7.html#downloadsにアクセスOS=UbuntuVersion=14.04 x86,64bitを選択してInstall Using APT から download を押すと以下に遷移する直接以下にアクセスしてもOKhttps://dev.m...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>mysql 5.5 -> 5.7<br /><br /><a href="https://dev.mysql.com/downloads/mysql/5.7.html#downloads" rel="external">https://dev.mysql.com/downloads/mysql/5.7.html#downloads</a><br />にアクセス<br />OS=Ubuntu<br />Version=14.04 x86,64bit<br />を選択して<br />Install Using APT から download を押すと以下に遷移する<br />直接以下にアクセスしてもOK<br /><br /><a href="https://dev.mysql.com/downloads/repo/apt/" rel="external">https://dev.mysql.com/downloads/repo/apt/</a><br />最新版が mysql-apt-config_0.8.8-1_all.deb　だと確認<br /><br /><pre class="blogCode"><code>
wget https://dev.mysql.com/get/mysql-apt-config_0.8.8-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.8-1_all.deb
sudo apt updata
sudo /etc/init.d/apparmor stop
sudo apt install mysql-server libmysqlclient-dev
sudo /etc/init.d/apparmor start
</code></pre><br /><br />参考URL:<a href="http://d.hatena.ne.jp/tociyuki/20170502/1493696004" rel="external">http://d.hatena.ne.jp/tociyuki/20170502/1493696004</a><br />Ubuntu 14.04 への MySQL-5.7 インストール失敗回避バッドノウハウ</div>]]>
       </content>
    </entry>
</feed>