<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>エラー &#8211; ねこねこネットワーク</title>
	<atom:link href="https://neko-neko.sai-net.work/category/%e3%82%a8%e3%83%a9%e3%83%bc/feed/" rel="self" type="application/rss+xml" />
	<link>https://neko-neko.sai-net.work</link>
	<description></description>
	<lastBuildDate>Thu, 03 Oct 2024 12:21:11 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>【EC-CUBE】【Playlight】E2Eテストを実行</title>
		<link>https://neko-neko.sai-net.work/587/</link>
					<comments>https://neko-neko.sai-net.work/587/#respond</comments>
		
		<dc:creator><![CDATA[nekoneko_admin]]></dc:creator>
		<pubDate>Tue, 24 Sep 2024 05:28:41 +0000</pubDate>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[エラー]]></category>
		<category><![CDATA[環境構築]]></category>
		<guid isPermaLink="false">https://neko-neko.sai-net.work/?p=587</guid>

					<description><![CDATA[前提 実行手順 2. playwrite [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">前提</h2>



<ul class="wp-block-list">
<li>EC-CUBE Enterprise版 がローカルに保存されている</li>
</ul>



<p></p>



<h2 class="wp-block-heading">実行手順</h2>



<ol class="wp-block-list">
<li> EC-CUBE Enterprise版 コンテナ を起動</li>
</ol>



<pre class="wp-block-code"><code>docker compose -f docker-compose.yml -f docker-compose.pgsql.yml -f docker-compose.dev.yml up -d</code></pre>



<p>  2. playwriteを起動</p>



<pre class="wp-block-code"><code>全体テスト
dev/run_docker_playwright.sh

特定テスト
dev/run_docker_playwright.sh -g テスト名</code></pre>



<p>  3. 実行結果を確認<br>　確認場所：./output/playwright-report/index.html</p>



<pre class="wp-block-code"><code>php -S 127.0.0.1:8081 -t ./output/playwright-report</code></pre>



<p>=> ブラウザで127.0.0.1:8081にアクセスすれば出力レポートが見えるよ！！</p>



<p>見れない場合&#8230; </p>



<p>ポートが空いておらずアクセスできない可能性があるため、</p>



<pre class="wp-block-code"><code>127.0.0.1:8081 -> 127.0.0.1:8082</code></pre>



<p>に変更し、再度コマンド実行</p>
]]></content:encoded>
					
					<wfw:commentRss>https://neko-neko.sai-net.work/587/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【EC-CUBE】【PHPUnit】単体テスト実行手順</title>
		<link>https://neko-neko.sai-net.work/566/</link>
					<comments>https://neko-neko.sai-net.work/566/#respond</comments>
		
		<dc:creator><![CDATA[nekoneko_admin]]></dc:creator>
		<pubDate>Fri, 20 Sep 2024 13:07:52 +0000</pubDate>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[エラー]]></category>
		<category><![CDATA[環境構築]]></category>
		<guid isPermaLink="false">https://neko-neko.sai-net.work/?p=566</guid>

					<description><![CDATA[前提条件 概要 今回は、標準EC-CUB [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">前提条件</h2>



<ul class="wp-block-list">
<li>EC-CUBE(今回は4)プロジェクト がローカル環境に保存されている事</li>



<li>Docker でEC-CUBEを立ち上げている状態</li>



<li>OS：Ubuntu</li>
</ul>



<h2 class="wp-block-heading">概要</h2>



<p>今回は、標準EC-CUBEの単体テストをするために<br>・標準EC-CUBEの(Front)新規会員登録画面に新規入力項目を追加<br>・testファイルの書換え<br>・PHPUnit の実行 <br>という手順を踏んだ。</p>



<h2 class="wp-block-heading">実行手順</h2>



<h4 class="wp-block-heading">新規会員登録画面に新規入力項目を追加</h4>



<ol class="wp-block-list">
<li>関連テーブルに新規カラム追加<br>対象テーブル：dtb_customer<br>カラム名：hobby<br>※company_nameを参考にしながら実行</li>



<li>CustomerEntity にメンバ変数 + geter + seterを追加</li>



<li>EntryType クラス に hobbyバリデーション設定を追加</li>



<li>Twigに新規項目を追加</li>



<li>テストファイルに、新規追加項目のテスト内容を記述</li>
</ol>



<p>プロキシ―ファイルの罠話を追加<br>EntryController.php で $form = $builder->getForm(); が実行されたタイミングで<br>下記エラーが出力される。それはなぜ？<br>Can&#8217;t get a way to read the property &#8220;hobby&#8221; in class &#8220;Eccube\Entity\Customer&#8221;.<br><br>想定できる原因<br>1.（2）の設定が出来ていないのでは？<br>2.（1）でdtb_customer にカラム追加ができていないのでは？<br>=> どちらもOKだった。<br><br>customerプロキシ―ファイルをec-cubeが見ていたから。</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://neko-neko.sai-net.work/566/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【エラー】EC-CUBEでE2E (codeception) テストで出たエラー</title>
		<link>https://neko-neko.sai-net.work/515/</link>
					<comments>https://neko-neko.sai-net.work/515/#respond</comments>
		
		<dc:creator><![CDATA[nekoneko_admin]]></dc:creator>
		<pubDate>Fri, 20 Sep 2024 11:57:29 +0000</pubDate>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[エラー]]></category>
		<category><![CDATA[環境構築]]></category>
		<guid isPermaLink="false">https://neko-neko.sai-net.work/?p=515</guid>

					<description><![CDATA[前提条件 エラー内容 1. .shファイ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">前提条件</h2>



<ul class="wp-block-list">
<li>Ubuntu に EC-CUBEプロジェクトが存在する事</li>



<li>「EC-CUBEで E2Eテスト(cedeception) を実行」ブログを確認している事</li>
</ul>



<figure class="wp-block-embed is-type-wp-embed">
<blockquote class="wp-embedded-content" data-secret="b5fkF9uplX"><a href="https://neko-neko.sai-net.work/511/">EC-CUBEで E2Eテスト(cedeception) を実行</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;EC-CUBEで E2Eテスト(cedeception) を実行&#8221; &#8212; ねこねこネットワーク" src="https://neko-neko.sai-net.work/511/embed/#?secret=liLWSo7uWI#?secret=b5fkF9uplX" data-secret="b5fkF9uplX" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</figure>



<h2 class="wp-block-heading">エラー内容</h2>



<h4 class="wp-block-heading">1. .shファイル の アクセス権限ない問題</h4>



<p>対象ファイル：Docker ~/usr/local/bin/docker-codeception-entrypoint. sh</p>



<p><strong>エラー詳細</strong></p>



<pre class="wp-block-code"><code>failed to create shim task: OCi runtime create failed: run create failed: unable to start container process: <strong>exec:/us/local/bin/docker-codeception-entrypoint. sh": permission denied: unknown</strong></code></pre>



<p><strong>意味</strong><br>docker-codeception-entrypoint.sh のアクセス権限がない事で起こる</p>



<p><strong>出力タイミング</strong><br>codeception コンテナを作成すべく docker compose を実行した時</p>



<p><strong>解決方法</strong><br>下記コマンドで権限の付与を実行</p>



<p>場所：Ubuntu ~\dockerbuild\codeception\ココ</p>



<pre class="wp-block-code"><code>sudo chmod -x docker-codeception-entrypoint.sh
sudo chmod -R 777 docker-codeception-entrypoint.sh</code></pre>



<p></p>



<h4 class="wp-block-heading">２. .env not found</h4>



<p>対象ファイル：Docker ~/var/www/html/.env</p>



<p><strong>エラー詳細</strong></p>



<pre class="wp-block-code"><code>in ParamsLoader.php
Params file /var/www/html/.env not found</code></pre>



<p><strong>意味</strong><br>ParamsLoader.phpで参照としている&#8221;.env&#8221; が &#8220;/var/www/html/&#8221; がない事で起こるエラー</p>



<h6 class="wp-block-heading">出力タイミング</h6>



<p>1.のエラーがなくなり、再度 docker compose コマンドを実行したタイミング</p>



<p><strong>解決方法</strong><br>.env.dist ファイルをコピペし、名前を.env に変更し保存</p>



<h1 class="wp-block-heading">参考サイト</h1>



<p></p>



<p></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://neko-neko.sai-net.work/515/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【EC-CUBE】E2Eテスト(cedeception) を実行しエラーで死んだ話</title>
		<link>https://neko-neko.sai-net.work/511/</link>
					<comments>https://neko-neko.sai-net.work/511/#respond</comments>
		
		<dc:creator><![CDATA[nekoneko_admin]]></dc:creator>
		<pubDate>Fri, 20 Sep 2024 11:49:33 +0000</pubDate>
				<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[エラー]]></category>
		<category><![CDATA[環境構築]]></category>
		<guid isPermaLink="false">https://neko-neko.sai-net.work/?p=511</guid>

					<description><![CDATA[１.①のファイルとディレクトリを②に移動 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">１.①のファイルとディレクトリを②に移動</h2>



<h4 class="wp-block-heading">① enterprise 版 プロジェクト</h4>



<p>(1) ~\docker-compose.codeception.yml<br>(2) ~\dockerbuild\codeception</p>



<h4 class="wp-block-heading">② ローカルのECCUBE4プロジェクト</h4>



<p>(3) ~\(1)を配置<br>(4) ~\dockerbuild\(2)を配置</p>



<p></p>



<h2 class="wp-block-heading">２.ymlファイルに権限の付与</h2>



<h4 class="wp-block-heading">対象ファイル</h4>



<p>~\dockerbuild\codeception\docker-codeception-entrypoint.sh</p>



<p>※実行理由は「参考サイト -&gt; エラー詳細-&gt;.shファイル の アクセス権限ない問題」をご確認ください。</p>



<h4 class="wp-block-heading">実行コマンド</h4>



<pre class="wp-block-code has-medium-font-size" style="border-style:none;border-width:0px"><code>sudo chmod -x docker-codeception-entrypoint.sh 
sudo chmod -R 777 docker-codeception-entrypoint.sh</code></pre>



<p></p>



<h2 class="wp-block-heading"> 3.下記コマンドを実行</h2>



<pre class="wp-block-code"><code>docker compose -f docker-compose.yml -f docker-compose.pgsql.yml -f docker-compose.codeception.yml up --abort-on-container-exit --attach codeception --build</code></pre>



<p>※コマンドの意味については、「参考サイト -&gt;コマンド詳細-&gt;Dockerコマンド」をご確認ください。</p>



<h2 class="wp-block-heading">参考サイト</h2>



<h4 class="wp-block-heading">エラー詳細</h4>



<figure class="wp-block-embed is-type-wp-embed">
<blockquote class="wp-embedded-content" data-secret="enpcqzR1x1"><a href="https://neko-neko.sai-net.work/515/">EC-CUBEでE2Eテストをしようと思ったらエラーが出ま死にかけた話</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;EC-CUBEでE2Eテストをしようと思ったらエラーが出ま死にかけた話&#8221; &#8212; ねこねこネットワーク" src="https://neko-neko.sai-net.work/515/embed/#?secret=qRTXr8yICN#?secret=enpcqzR1x1" data-secret="enpcqzR1x1" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</figure>



<h4 class="wp-block-heading">コマンド</h4>



<figure class="wp-block-embed is-type-wp-embed">
<blockquote class="wp-embedded-content" data-secret="mPQXrW9BeP"><a href="https://neko-neko.sai-net.work/548/">よく使うコマンド集</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;よく使うコマンド集&#8221; &#8212; ねこねこネットワーク" src="https://neko-neko.sai-net.work/548/embed/#?secret=pDH3ixiA9e#?secret=mPQXrW9BeP" data-secret="mPQXrW9BeP" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</figure>



<h2 class="wp-block-heading"></h2>



<h2 class="wp-block-heading">その他方法</h2>



<figure class="wp-block-embed">https://qiita.com/angelbell/items/79eee737ced8bad0bfc2#php%E3%82%B5%E3%83%BC%E3%83%90%E3%82%92%E7%AB%8B%E3%81%A6%E3%82%8B</figure>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://neko-neko.sai-net.work/511/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
