<?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-15T08:44:58+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>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 のキャッシュをクリア？</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>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>
    <entry>
        <title>upgrade2</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=232" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=232</id>
        <published>2017-10-24T17:45:29+09:00</published>
        <updated>2019-10-17T19:16:51+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">まず既存の環境でサイトを閉鎖、ついでにデバッグモードをPHPデバッグにしておくファイルのバックアップを取って、DBもダンプ以下からダウンロードhttps://github.com/XoopsX/legacy/archive/stable.z...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>まず既存の環境でサイトを閉鎖、ついでにデバッグモードをPHPデバッグにしておく<br />ファイルのバックアップを取って、DBもダンプ<br /><br />以下からダウンロード<br /><a href="https://github.com/XoopsX/legacy/archive/stable.zip" rel="external">https://github.com/XoopsX/legacy/archive/stable.zip</a><br />展開して以下のファイルを削除<br /><pre class="blogCode"><code>
rm mainfile.php
rm favicon.ico
</code></pre><br /><br />// copy upgrade22<br /><br /><pre class="blogCode"><code>
rm -f xoopt_trust_path/cache/*
rm -f xoopt_trust_path/templates_c/*
chmod 777 xoopt_trust_path/cache
chmod 777 xoopt_trust_path/templates_c
</code></pre><br /><br />サイトにログインして管理ページから<br /><br />モジュールの管理で、互換モジュールなどをアップデート<br /><pre class="blogCode"><code>
互換モジュール  2.00 =&gt; 2.03
ユーザモジュール  2.00 =&gt; 2.03
互換レンダーシステム  2.00 =&gt; 2.03
標準キャッシュモジュール  2.00 =&gt; 2.03
プロフィール  2.00 =&gt; 2.03
Protector 3.41 =&gt; 3.51
ALTSYS 0.71a =&gt; 0.82
</code></pre><br /><br />モジュールインストールから x-update をインストール<br /><pre class="blogCode"><code>
x-update 0.72
</code></pre><br />x-update 圧縮展開フォルダのパーミッション設定<br /><pre class="blogCode"><code>
chmod 777 xoops_trust_path/uploads/xupdate
</code></pre><br /><br />x-update からアップデート<br /><pre class="blogCode"><code>
xupdate 0.72 =&gt; 0.72.1
protector 3.51 =&gt; 3.52.2
multiMenu 1.20 =&gt; 1.24.1
pico 1.82 =&gt; 1.87.11
bulletin 2.22 =&gt; 3.02.4
</code></pre><br /><br />multiMenu のアップデートでトラブル<br />html/preload/multiMenuPreload.class.php<br />html/modules/multiMenu/class/getMultiMenu.class.php<br />の o+r がない？<br /><br />なんだかほかにもいろいろ o+r や o+x がない！<br /><br />require_once permission denied<br />がいっぱい出る！<br /><br />すべて chmod o+r や chmod o+x などする<br /><br /><br /><br />protector で定義していた black IP list が消えた (+_+)<br />と思ったら勘違い<br />元のデータを書き戻してなかったんだっけ...<br /><br /><br /><br />トラブルシューティング<br />xupdate で ftp 配置する場合、<br />html や xoops_trust_path の所有者が<br />ftp でのユーザと異なる場合、上書きがキャンセルされて アップデートが行えない<br />基本的には、ファイルを配置した場合と同じユーザアカウントで ftp 配置する必要がある<br /><br /><br />OK module<br />logcounterx<br />sitemap<br /><br />NG module<br />pico<br />d3blog<br />news<br />multimenu (block)</div>]]>
       </content>
    </entry>
    <entry>
        <title>重い腰を上げて XOOPS X へアップグレード</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=230" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=230</id>
        <published>2017-10-21T23:10:00+09:00</published>
        <updated>2019-10-17T19:15:16+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">coreserver がサーバをマイグレーションするとのことでPHP5.3 を PHP7へ上げる必要が出たPHP7に対応するには XOOPS X にアップグレードするのが手っ取り早そうなのでやってみる参考ページ http://x...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>coreserver がサーバをマイグレーションするとのことで<br />PHP5.3 を PHP7へ上げる必要が出た<br /><br />PHP7に対応するには XOOPS X にアップグレードするのが手っ取り早そうなので<br />やってみる<br /><br />参考ページ <a href="http://xoopscube.jp/modules/doc/?Distributions%2FXoopsX" rel="external">http://xoopscube.jp/modules/doc/?Distributions%2FXoopsX</a><br /><br />まずは mainfile.php をどこかに取っておく<br />続いて、xoops のインストールパスに cd して、以下のコマンドを実行<br />T には TRUST_PATH のパスを設定する<br /><pre class="blogCode"><code>
T=&quot;../xoops_trust_path&quot;;curl -kL github.com/XoopsX/installer/raw/master/install.sh|sed &quot;s#&lt;T&gt;#$T#&quot;|sh
</code></pre><br /><br />これで元々の URLにアクセスするとインストーラ画面になるので、取っておいた mainfile.php を見ながら、記入して実行していく<br />最後に<br /><pre class="blogCode"><code>
XOOPS2のテーブルがデータベースに既に存在します
</code></pre><br />とエラーになるが、気にせず再度アクセス<br /><br />セカンドインストールで xupdate を導入すれば、一応完了！<br /><br /><br /><pre class="blogCode"><code>
Notice: A non well formed numeric value encountered in /.../install/class/settingmanager.php on line 65
</code></pre><br /><br /><pre class="blogCode"><code>
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
XCube_Root has a deprecated constructor in /.../core/XCube_Root.class.php on line 37
</code></pre><br /><br /><pre class="blogCode"><code>
Warning: mysql_set_charset() expects parameter 1 to be string, resource given in /.../install/language/ja_utf8/charset_mysql.php on line 12
</code></pre></div>]]>
       </content>
    </entry>
    <entry>
        <title>piCal の PHP5.3以降への対応</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=231" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=231</id>
        <published>2017-10-21T23:00:00+09:00</published>
        <updated>2019-10-17T19:08:03+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">ereg, eregi が deprecated になっているので preg_match で置き換える・eregiの場合
if ( eregi(&quot;...&quot;, $file) ) {
を
if ( preg_match(&quot;/.../i&quot;, $file) ) {
■modules/piCal/include/patTemplate.php465行
if      ( p...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>ereg, eregi が deprecated になっているので preg_match で置き換える<br /><br />・eregiの場合<br /><pre class="blogCode"><code>
if ( eregi(&quot;...&quot;, $file) ) {
</code></pre><br />を<br /><pre class="blogCode"><code>
if ( preg_match(&quot;/.../i&quot;, $file) ) {
</code></pre><br /><br />■modules/piCal/include/patTemplate.php<br />465行<br /><pre class="blogCode"><code>
if      ( preg_match( &quot;/&lt;patTemplate:([[:alnum:]]+)[[:space:]]*(.*)&gt;/i&quot;, $line, $regs ) )
</code></pre><br /><br />507行 は / が中で使われているので _ などで...<br /><pre class="blogCode"><code>
elseif  ( preg_match( &quot;_&lt;/patTemplate:([[:alnum:]]+)&gt;_i&quot;, $line, $regs ) )
</code></pre><br /><br />■modules/piCal/class/piCal.php <br />201,202行 は ereg<br /><pre class="blogCode"><code>
if( ! ( preg_match( &quot;&#039;^([0-9][0-9]+)[-./]?([0-1]?[0-9])[-./]?([0-3]?[0-9])$&#039;&quot; , $setdate , $regs ) &amp;&amp; checkdate( $regs[2] , $regs[3] , $regs[1] ) ) ) {
  preg_match( &quot;/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/&quot; , date( &#039;Y-m-d&#039; ) , $regs ) ;
</code></pre></div>]]>
       </content>
    </entry>
    <entry>
        <title>coreserver で xupdate できなくなっていた</title>
        <link rel="alternate" type="text/xhtml" href="https://xcl.masa-lab.net/modules/d3blog/details.php?bid=229" />
        <id>https://xcl.masa-lab.net/modules/d3blog/details.php?bid=229</id>
        <published>2016-01-22T23:50:00+09:00</published>
        <updated>2016-05-18T14:53:39+09:00</updated>
        <category term="作業メモ" label="作業メモ" />
        <author>
            <name>masa</name>
        </author>
        <summary type="html" xml:base="https://xcl.masa-lab.net/" xml:lang="ja">以前は出来ていたのに、coreserver で xupdate しようとすると「上書きのキャンセル」が多数表示され、アップデートできないデバッグ表示してみると
Connection refused (111)
とか出ていた色々試...</summary>
       <content type="html" xml:lang="ja" xml:base="https://xcl.masa-lab.net/">
<![CDATA[<div>以前は出来ていたのに、coreserver で xupdate しようとすると<br />「上書きのキャンセル」が多数表示され、アップデートできない<br /><br />デバッグ表示してみると<br /><br /><pre class="blogCode"><code>
Connection refused (111)
</code></pre><br />とか出ていた<br /><br />色々試したところ<br />ホストアドレスを<br />127.0.0.1 から 実際の IPアドレスに変えたら動作した</div>]]>
       </content>
    </entry>
</feed>