質問 > フロント機能 > 商品のタグ検索について |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
tarou123 |
投稿日時: 2022/12/27 12:03
対応状況: 確認中
|
半人前 ![]() ![]() 登録日: 2022/12/12 居住地: 投稿: 14 |
商品のタグ検索について EC-CUBE 4.2.0です
https://techmemo.biz/ec-cube/tag-product-list/ こちらのサイトを参考にしながたタグ検索ができないか試したのですが、SearchProductTypeExtension.phpの部分でエラーが出てうまくいかなかったです。 バージョンによって書き方などが変わってくるのでしょうか?詳しい方教えて頂きたいです。 |
mcontact |
投稿日時: 2022/12/27 12:16
対応状況: −−−
|
仙人 ![]() ![]() 登録日: 2022/1/22 居住地: 投稿: 893 |
Re: 商品のタグ検索について EC-CUBEのログは確認できますか?
どのようなエラーが出ますでしょうか? var/log/prod/site-yyyy-mm-dd.log に「システムエラーが発生しました」といった行がありましたらご提示ください。 |
tarou123 |
投稿日時: 2022/12/27 13:08
対応状況: −−−
|
半人前 ![]() ![]() 登録日: 2022/12/12 居住地: 投稿: 14 |
Re: 商品のタグ検索について Fatal error: Class Customize\Form\Extension\SearchProductTypeExtension contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Form\FormTypeExtensionInterface::getExtendedTypes) in /home/〇〇〇/public_html/ec-cube/app/Customize/Form/Extension/SearchProductTypeExtension.php on line 0 こちらです。 |
mcontact |
投稿日時: 2022/12/27 17:14
対応状況: −−−
|
仙人 ![]() ![]() 登録日: 2022/1/22 居住地: 投稿: 893 |
Re: 商品のタグ検索について > バージョンによって書き方などが変わってくるのでしょうか?詳しい方教えて頂きたいです。
Symfonyのバージョンが異なりますので、書き方が変わる場合もあります。 |
tarou123 |
投稿日時: 2022/12/27 19:05
対応状況: −−−
|
半人前 ![]() ![]() 登録日: 2022/12/12 居住地: 投稿: 14 |
Re: 商品のタグ検索について >var/log/prod/site-yyyy-mm-dd.log に「システムエラーが発生しました」といった行がありましたらご提示ください。
どこから見ればいいのか分からなかったのですが、先ほどみつけました。 ただ量が多くどこを見たらいいのか分からないのです。 どこを注目してみたらいいでしょうか。 |
mcontact |
投稿日時: 2022/12/28 10:51
対応状況: −−−
|
仙人 ![]() ![]() 登録日: 2022/1/22 居住地: 投稿: 893 |
Re: 商品のタグ検索について > ただ量が多くどこを見たらいいのか分からないのです。
> どこを注目してみたらいいでしょうか。 エラーが発生した画面にアクセスした際のエラーログのみだと思いますので、「システムエラーが発生しました」と記載されている1行のみです。 ●例 [Eccube\Log\Logger:log:64] - システムエラーが発生しました。 ["Failed to start the session because headers have already been sent by \"/home/test/www/eccube-4.2.0-beta2/src/Eccube/Service/CsvExportService.php\" at line 387.","/home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php",145,"#0 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(352): Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage->start()\n#1 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-foundation/Session/Session.php(261): Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage->getBag('attributes')\n#2 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-foundation/Session/Session.php(283): Symfony\\Component\\HttpFoundation\\Session\\Session->getBag('attributes')\n#3 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-foundation/Session/Session.php(77): Symfony\\Component\\HttpFoundation\\Session\\Session->getAttributeBag()\n#4 /home/test/www/eccube-4.2.0-beta2/src/Eccube/Service/CsvExportService.php(460): Symfony\\Component\\HttpFoundation\\Session\\Session->get('eccube.admin.pr...', Array)\n#5 /home/test/www/eccube-4.2.0-beta2/src/Eccube/Controller/Admin/Product/ProductController.php(972): Eccube\\Service\\CsvExportService->getProductQueryBuilder(Object(Symfony\\Component\\HttpFoundation\\Request))\n#6 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-foundation/StreamedResponse.php(109): Eccube\\Controller\\Admin\\Product\\ProductController->Eccube\\Controller\\Admin\\Product\\{closure}()\n#7 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-foundation/Response.php(394): Symfony\\Component\\HttpFoundation\\StreamedResponse->sendContent()\n#8 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-kernel/EventListener/StreamedResponseListener.php(41): Symfony\\Component\\HttpFoundation\\Response->send()\n#9 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/event-dispatcher/EventDispatcher.php(270): Symfony\\Component\\HttpKernel\\EventListener\\StreamedResponseListener->onKernelResponse(Object(Symfony\\Component\\HttpKernel\\Event\\ResponseEvent), 'kernel.response', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\n#10 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Symfony\\Component\\EventDispatcher\\EventDispatcher::Symfony\\Component\\EventDispatcher\\{closure}(Object(Symfony\\Component\\HttpKernel\\Event\\ResponseEvent), 'kernel.response', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\n#11 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners(Array, 'kernel.response', Object(Symfony\\Component\\HttpKernel\\Event\\ResponseEvent))\n#12 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-kernel/HttpKernel.php(186): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch(Object(Symfony\\Component\\HttpKernel\\Event\\ResponseEvent), 'kernel.response')\n#13 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-kernel/HttpKernel.php(174): Symfony\\Component\\HttpKernel\\HttpKernel->filterResponse(Object(Symfony\\Component\\HttpFoundation\\StreamedResponse), Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#14 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#15 /home/test/www/eccube-4.2.0-beta2/vendor/symfony/http-kernel/Kernel.php(202): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#16 /home/test/www/eccube-4.2.0-beta2/index.php(83): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#17 {main}"] |
tsuji |
投稿日時: 2022/12/29 17:34
対応状況: −−−
|
仙人 ![]() ![]() 登録日: 2013/11/19 居住地: 投稿: 957 |
Re: 商品のタグ検索について tarou123 様
横から失礼します。 getExtendedTypesの書きもれで↓のエラーがでるかは調査しきってはないのですが、 Fatal error: Class Customize\Form\Extension\SearchProductTypeExtension contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Form\FormTypeExtensionInterface::getExtendedTypes) in /home/〇〇〇/public_html/ec-cube/app/Customize/Form/Extension/SearchProductTypeExtension.php on line 0 おそらく以下の対応が https://doc4.ec-cube.net/update-40-41#formextension ↓のファイルでできていないので、エラーになっているかと思います 「Customize\Form\Extension\SearchProductTypeExtension」
|
tarou123 |
投稿日時: 2023/1/5 10:26
対応状況: −−−
|
半人前 ![]() ![]() 登録日: 2022/12/12 居住地: 投稿: 14 |
Re: 商品のタグ検索について ありがとうございます!
リンク先の情報を参考にしながらコードを変更したらできました! ただ、新商品のタグに設定している、list?tag_id=1に飛ぶのですが新商品のタグが表示されず全商品が表示されてしまします。 多分1番上のリンク先のコードの問題なのかと思うのですが、見てもわからないです。 どこが問題なのか分かりましたら教えて頂きたいです。 |
tarou123 |
投稿日時: 2023/1/5 17:28
対応状況: −−−
|
半人前 ![]() ![]() 登録日: 2022/12/12 居住地: 投稿: 14 |
Re: 商品のタグ検索について .
|
tarou123 |
投稿日時: 2023/1/7 18:22
対応状況: −−−
|
半人前 ![]() ![]() 登録日: 2022/12/12 居住地: 投稿: 14 |
Re: 商品のタグ検索について .
|
(1) 2 » |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |