バージョン選択

フォーラム

メニュー

オンライン状況

29 人のユーザが現在オンラインです。 (24 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 29
もっと...

PR

デザインテンプレート EC-CUBE3.0版が登場!
広告掲載について

サイト内検索

プラグイン > バグ報告・利用に関する質問 > クロネコヤマト カード・後払い一体型決済サービス(3系) プラグインとHTTPキャッシュ

バグ報告・利用に関する質問

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
riverain
投稿日時: 2017/3/10 16:43
対応状況: −−−
新米
登録日: 2017/2/19
居住地:
投稿: 6
クロネコヤマト カード・後払い一体型決済サービス(3系) プラグインとHTTPキャッシュ
[EC-CUBE] 3.0.11 新規インストール
[レンタルサーバ] さくらのVPS 2G
[OS] CentOS 7
[PHP] 7.0
[データベース] MySQL 5.7
[WEBサーバ] Apache/2.4
[ブラウザ] Firefox 52
[導入プラグインの有無] クロネコヤマト カード・後払い一体型決済サービス(3系)
[カスタマイズの有無] 無
[現象]
httpキャッシュを有効にすると、クロネコヤマト カード・後払い一体型決済サービス(3系)のクレジットカード決済ページ /shopping/yamato_payment で「ご注文完了ページへ」ボタンをクリックすると
/shopping_error へ移動し
「購入エラー 不正なページ移動です。」と表示されてしまい決済が正常に終了しません。
httpキャッシュを無効にした状態であれば正常に決済が終了します。
決済画面の部分はキャッシュ対象に含めていないにもかかわらずエラーが発生している状況です。

ヤマトフィナンシャルに問い合わせたところ以下のような回答でした。

> お問い合わせの件につきまして確認しましたところ
> ご連絡いただきました画面では、決済モジュールに関わるモノは含まれておりませんでした。
> 申し訳ございません。
>
> ただ、ヤマト決済プラグインを無効にした場合にも、同様のエラーが発生しましたので、
> プラグインの影響ではなく、ECCUBE本体の不具合と考えられます。
>
> 弊社にて原因を確認しましたところ、
>  「注文内容のご確認」画面に遷移する際に、受注情報をDBに
>  作成しているのですが(ShoppingService::createOrder)、
>  キャッシュを有効にするとこの受注情報がDBに作成されず、
>  それ以降の決済画面で「購入エラー」となるようです。
>
> 恐れ入りますが対処方法については開発コミュニティ等をご活用ください。

キャッシュを有効にして運用したいと思いますので対処方法をご教示ください。


/app/config/eccube/http_cache.yml

http_cache:
enabled: true
age: 0
# フロントでキャッシュを適用させる画面のrouteを設定
route:
- homepage
- product_list
- block_category
- block_news
- block_search_product
- help_about
- help_guide
- help_privacy
- help_tradelaw
- help_agreement


EC-CUBEログ
[2017-03-07 17:38:24] eccube.INFO: > GET /block/cart [] []
[2017-03-07 17:38:24] eccube.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2017-03-07 17:38:24] eccube.INFO: Matched route "block_cart". {"route_parameters":{"_controller":"\\Eccube\\Controller\\Block\\CartController::index","_route":"block_cart"},"request_uri":"https://shop.hogehoge.com/block/cart"} []
[2017-03-07 17:38:24] eccube.INFO: < 200 [] []
[2017-03-07 17:38:24] eccube.INFO: > GET /shopping/shopping_error [] []
[2017-03-07 17:38:24] eccube.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2017-03-07 17:38:24] eccube.INFO: Matched route "shopping_error". {"route_parameters":{"_controller":"\\Eccube\\Controller\\ShoppingController::shoppingError","_route":"shopping_error"},"request_uri":"https://shop.hogehoge.com/shopping/shopping_error"} []
[2017-03-07 17:38:23] eccube.INFO: < 302 https://shop.hogehoge.com/shopping/shopping_error [] []
[2017-03-07 17:38:23] eccube.INFO: > POST /shopping/yamato_payment [] []
[2017-03-07 17:38:23] eccube.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2017-03-07 17:38:23] eccube.INFO: Matched route "yamato_shopping_payment". {"route_parameters":{"_controller":"\\Plugin\\YamatoPayment\\Controller\\PaymentController::index","_route":"yamato_shopping_payment"},"request_uri":"https://shop.hogehoge.com/shopping/yamato_payment"} []
[2017-03-07 17:36:42] eccube.INFO: < 200 [] []
tao_s
投稿日時: 2017/3/10 18:08
対応状況: −−−
仙人
登録日: 2008/8/20
居住地: 東京
投稿: 646
Re: クロネコヤマト カード・後払い一体型決済サービス(3系) プラグインとHTTPキャッシュ
httpキャッシュはページ毎に有効無効の設定ができたはずです。
/shopping配下はキャッシュすると問題があるので、しない様にした方が良いと思います。


----------------
EC-CUBEカスタマイズ相談してください。
緊急のEC-CUBEの障害対応
EC-CUBE開発ブログ

riverain
投稿日時: 2017/3/10 18:43
対応状況: −−−
新米
登録日: 2017/2/19
居住地:
投稿: 6
Re: クロネコヤマト カード・後払い一体型決済サービス(3系) プラグインとHTTPキャッシュ
http://ec-cube.github.io/spec_config#httpcacheyml を参考に上記の様に設定し、/shopping 以下はフロントでキャッシュを適用させる画面のrouteに含めていないつもりですが違うのでしょうか。

# php /app/console router:debug
+-----------------------------------------+----------------------------------------------------------------------+---------+
| Name | Path | Pattern |
+-----------------------------------------+----------------------------------------------------------------------+---------+
| admin_dir_logout | /admin_dir/logout | GET |
| admin_dir_login_check | /admin_dir/login_check | |
| logout | /logout | GET |
| login_check | /login_check | |
| user_data | /user_data/{route} | ANY |
| homepage | / | ANY |
| top | / | ANY |
| index | / | ANY |
| cart | /cart | ANY |
| cart_add | /cart/add | POST |
| cart_up | /cart/up/{productClassId} | PUT |
| cart_down | /cart/down/{productClassId} | PUT |
| cart_set_quantity | /cart/setQuantity/{productClassId}/{quantity} | PUT |
| cart_remove | /cart/remove/{productClassId} | PUT |
| cart_buystep | /cart/buystep | ANY |
| contact | /contact | ANY |
| contact_complete | /contact/complete | ANY |
| entry | /entry | ANY |
| entry_complete | /entry/complete | ANY |
| entry_activate | /entry/activate/{secret_key} | ANY |
| forgot | /forgot | ANY |
| forgot_complete | /forgot/complete | ANY |
| forgot_reset | /forgot/reset/{reset_key} | ANY |
| block_category | /block/category | ANY |
| block_cart | /block/cart | ANY |
| block_search_product | /block/search_product | ANY |
| block_news | /block/news | ANY |
| block_login | /block/login | ANY |
| help_about | /help/about | ANY |
| help_guide | /help/guide | ANY |
| help_privacy | /help/privacy | ANY |
| help_tradelaw | /help/tradelaw | ANY |
| help_agreement | /help/agreement | ANY |
| mypage | /mypage | ANY |
| mypage_login | /mypage/login | ANY |
| mypage_change | /mypage/change | ANY |
| mypage_change_complete | /mypage/change_complete | ANY |
| mypage_delivery | /mypage/delivery | ANY |
| mypage_delivery_new | /mypage/delivery/new | ANY |
| mypage_delivery_edit | /mypage/delivery/{id}/edit | ANY |
| mypage_delivery_delete | /mypage/delivery/{id}/delete | DELETE |
| mypage_favorite | /mypage/favorite | ANY |
| mypage_favorite_delete | /mypage/favorite/{id}/delete | DELETE |
| mypage_history | /mypage/history/{id} | ANY |
| mypage_order | /mypage/order/{id} | PUT |
| mypage_withdraw | /mypage/withdraw | ANY |
| mypage_withdraw_complete | /mypage/withdraw_complete | ANY |
| product_list | /products/list | ANY |
| product_detail | /products/detail/{id} | ANY |
| shopping | /shopping | ANY |
| shopping_confirm | /shopping/confirm | ANY |
| shopping_delivery | /shopping/delivery | ANY |
| shopping_payment | /shopping/payment | ANY |
| shopping_shipping_change | /shopping/shipping_change/{id} | ANY |
| shopping_shipping | /shopping/shipping/{id} | ANY |
| shopping_shipping_edit_change | /shopping/shipping_edit_change/{id} | ANY |
| shopping_shipping_edit | /shopping/shipping_edit/{id} | ANY |
| shopping_complete | /shopping/complete | ANY |
| shopping_login | /shopping/login | ANY |
| shopping_nonmember | /shopping/nonmember | ANY |
| shopping_customer | /shopping/customer | ANY |
| shopping_error | /shopping/shopping_error | ANY |
| shopping_shipping_multiple_change | /shopping/shipping_multiple_change | ANY |
| shopping_shipping_multiple | /shopping/shipping_multiple | ANY |
| shopping_shipping_multiple_edit | /shopping/shipping_multiple_edit | ANY |
| admin_homepage | /admin_dir/ | ANY |
| admin_homepage_nonstock | /admin_dir/nonstock | POST |
| admin_login | /admin_dir/login | ANY |
| admin_change_password | /admin_dir/change_password | ANY |
| admin_product | /admin_dir/product | ANY |
| admin_product_export | /admin_dir/product/export | ANY |
| admin_product_page | /admin_dir/product/page/{page_no} | ANY |
| admin_product_product_new | /admin_dir/product/product/new | ANY |
| admin_product_product_edit | /admin_dir/product/product/{id}/edit | ANY |
| admin_product_product_class | /admin_dir/product/product/class/{id} | ANY |
| admin_product_product_display | /admin_dir/product/product/{id}/display | ANY |
| admin_product_product_delete | /admin_dir/product/product/{id}/delete | DELETE |
| admin_product_product_copy | /admin_dir/product/product/{id}/copy | POST |
| admin_product_product_class_edit | /admin_dir/product/product/class/edit/{id} | POST |
| admin_product_image_add | /admin_dir/product/product/image/add | POST |
| admin_product_category | /admin_dir/product/category | ANY |
| admin_product_category_export | /admin_dir/product/category/export | ANY |
| admin_product_category_show | /admin_dir/product/category/{parent_id} | ANY |
| admin_product_category_edit | /admin_dir/product/category/{id}/edit | ANY |
| admin_product_category_delete | /admin_dir/product/category/{id}/delete | DELETE |
| admin_product_category_rank_move | /admin_dir/product/category/rank/move | POST |
| admin_product_class_name | /admin_dir/product/class_name | ANY |
| admin_product_class_name_edit | /admin_dir/product/class_name/{id}/edit | ANY |
| admin_product_class_name_delete | /admin_dir/product/class_name/{id}/delete | DELETE |
| admin_product_class_name_rank_move | /admin_dir/product/class_name/rank/move | POST |
| admin_product_class_category | /admin_dir/product/class_category/{class_name_id} | ANY |
| admin_product_class_category_edit | /admin_dir/product/class_category/{class_name_id}/{id}/edit | ANY |
| admin_product_class_category_delete | /admin_dir/product/class_category/{class_name_id}/{id}/delete | DELETE |
| admin_product_class_category_rank_move | /admin_dir/product/class_category/rank/move | POST |
| admin_product_csv_import | /admin_dir/product/product_csv_upload | ANY |
| admin_product_category_csv_import | /admin_dir/product/category_csv_upload | ANY |
| admin_product_csv_template | /admin_dir/product/csv_template/{type} | ANY |
| admin_customer | /admin_dir/customer | ANY |
| admin_customer_page | /admin_dir/customer/page/{page_no} | ANY |
| admin_customer_export | /admin_dir/customer/export | ANY |
| admin_customer_new | /admin_dir/customer/new | ANY |
| admin_customer_edit | /admin_dir/customer/{id}/edit | ANY |
| admin_customer_delete | /admin_dir/customer/{id}/delete | DELETE |
| admin_customer_resend | /admin_dir/customer/{id}/resend | PUT |
| admin_order | /admin_dir/order | ANY |
| admin_order_page | /admin_dir/order/page/{page_no} | ANY |
| admin_order_new | /admin_dir/order/new | ANY |
| admin_order_edit | /admin_dir/order/{id}/edit | ANY |
| admin_order_delete | /admin_dir/order/{id}/delete | DELETE |
| admin_order_export_order | /admin_dir/order/export/order | ANY |
| admin_order_export_shipping | /admin_dir/order/export/shipping | ANY |
| admin_order_search_customer | /admin_dir/order/search/customer | POST |
| admin_order_search_customer_by_id | /admin_dir/order/search/customer/id | POST |
| admin_order_search_product | /admin_dir/order/search/product | POST |
| admin_order_search_product_by_id | /admin_dir/order/search/product/id | ANY |
| admin_order_mail | /admin_dir/order/{id}/mail | ANY |
| admin_order_mail_all | /admin_dir/order/mail/mail_all | ANY |
| admin_order_mail_complete | /admin_dir/order/mail_complete | ANY |
| admin_order_mail_view | /admin_dir/order/mail/view | ANY |
| admin_content | /admin_dir/content | ANY |
| admin_content_new | /admin_dir/content/new | ANY |
| admin_content_edit | /admin_dir/content/{id}/edit | ANY |
| admin_content_delete | /admin_dir/content/{id}/delete | DELETE |
| admin_content_up | /admin_dir/content/{id}/up | PUT |
| admin_content_down | /admin_dir/content/{id}/down | PUT |
| admin_content_news | /admin_dir/content/news | ANY |
| admin_content_news_new | /admin_dir/content/news/new | ANY |
| admin_content_news_edit | /admin_dir/content/news/{id}/edit | ANY |
| admin_content_news_delete | /admin_dir/content/news/{id}/delete | DELETE |
| admin_content_news_up | /admin_dir/content/news/{id}/up | PUT |
| admin_content_news_down | /admin_dir/content/news/{id}/down | PUT |
| admin_content_file | /admin_dir/content/file_manager | ANY |
| admin_content_file_view | /admin_dir/content/file_view | ANY |
| admin_content_file_download | /admin_dir/content/file_download | ANY |
| admin_content_file_delete | /admin_dir/content/file_delete | DELETE |
| admin_content_layout | /admin_dir/content/layout | ANY |
| admin_content_layout_edit | /admin_dir/content/layout/{id}/edit | ANY |
| admin_content_layout_preview | /admin_dir/content/layout/{id}/preview | ANY |
| admin_content_block | /admin_dir/content/block | ANY |
| admin_content_block_new | /admin_dir/content/block/new | ANY |
| admin_content_block_edit | /admin_dir/content/block/{id}/edit | ANY |
| admin_content_block_delete | /admin_dir/content/block/{id}/delete | DELETE |
| admin_content_page | /admin_dir/content/page | ANY |
| admin_content_page_new | /admin_dir/content/page/new | ANY |
| admin_content_page_edit | /admin_dir/content/page/{id}/edit | ANY |
| admin_content_page_delete | /admin_dir/content/page/{id}/delete | DELETE |
| admin_content_cache | /admin_dir/content/cache | ANY |
| admin_setting_shop | /admin_dir/setting/shop | ANY |
| admin_setting_shop_delivery | /admin_dir/setting/shop/delivery | ANY |
| admin_setting_shop_delivery_new | /admin_dir/setting/shop/delivery/new | ANY |
| admin_setting_shop_delivery_edit | /admin_dir/setting/shop/delivery/{id}/edit | ANY |
| admin_setting_shop_delivery_delete | /admin_dir/setting/shop/delivery/{id}/delete | DELETE |
| admin_setting_shop_delivery_rank_move | /admin_dir/setting/shop/delivery/rank/move | POST |
| admin_setting_shop_payment | /admin_dir/setting/shop/payment | ANY |
| admin_setting_shop_payment_new | /admin_dir/setting/shop/payment/new | ANY |
| admin_payment_image_add | /admin_dir/setting/shop/payment/image/add | ANY |
| admin_setting_shop_payment_edit | /admin_dir/setting/shop/payment/{id}/edit | ANY |
| admin_setting_shop_payment_delete | /admin_dir/setting/shop/payment/{id}/delete | DELETE |
| admin_setting_shop_payment_up | /admin_dir/setting/shop/payment/{id}/up | PUT |
| admin_setting_shop_payment_down | /admin_dir/setting/shop/payment/{id}/down | PUT |
| admin_setting_shop_tradelaw | /admin_dir/setting/shop/tradelaw | ANY |
| admin_setting_shop_tax | /admin_dir/setting/shop/tax | ANY |
| admin_setting_shop_tax_new | /admin_dir/setting/shop/tax/new | ANY |
| admin_setting_shop_tax_edit | /admin_dir/setting/shop/tax/{id}/edit | ANY |
| admin_setting_shop_tax_delete | /admin_dir/setting/shop/tax/{id}/delete | DELETE |
| admin_setting_shop_tax_edit_param | /admin_dir/setting/shop/tax/edit_param | ANY |
| admin_setting_shop_mail | /admin_dir/setting/shop/mail | ANY |
| admin_setting_shop_mail_edit | /admin_dir/setting/shop/mail/{id} | ANY |
| admin_setting_shop_customer_agreement | /admin_dir/setting/shop/customer_agreement | ANY |
| admin_setting_shop_csv | /admin_dir/setting/shop/csv/{id} | ANY |
| admin_setting_system_system | /admin_dir/setting/system/system | ANY |
| admin_setting_system_member | /admin_dir/setting/system/member | ANY |
| admin_setting_system_member_new | /admin_dir/setting/system/member/new | ANY |
| admin_setting_system_member_edit | /admin_dir/setting/system/member/{id}/edit | ANY |
| admin_setting_system_member_delete | /admin_dir/setting/system/member/{id}/delete | DELETE |
| admin_setting_system_member_up | /admin_dir/setting/system/member/{id}/up | PUT |
| admin_setting_system_member_down | /admin_dir/setting/system/member/{id}/down | PUT |
| admin_setting_system_authority | /admin_dir/setting/system/authority | ANY |
| admin_setting_system_security | /admin_dir/setting/system/security | ANY |
| admin_setting_system_log | /admin_dir/setting/system/log | ANY |
| admin_setting_system_masterdata | /admin_dir/setting/system/masterdata | ANY |
| admin_setting_system_masterdata_view | /admin_dir/setting/system/masterdata/{entity}/edit | ANY |
| admin_setting_system_masterdata_edit | /admin_dir/setting/system/masterdata/edit | ANY |
| admin_store_template | /admin_dir/store/template | ANY |
| admin_store_template_install | /admin_dir/store/template/install | ANY |
| admin_store_template_download | /admin_dir/store/template/{id}/download | ANY |
| admin_store_template_delete | /admin_dir/store/template/{id}/delete | DELETE |
| admin_store_plugin | /admin_dir/store/plugin | ANY |
| admin_store_plugin_owners_install | /admin_dir/store/plugin/owners_install | ANY |
| admin_store_plugin_install | /admin_dir/store/plugin/install | ANY |
| admin_store_plugin_upgrade | /admin_dir/store/plugin/upgrade/{action}/{id}/{version} | ANY |
| admin_store_plugin_handler | /admin_dir/store/plugin/handler | ANY |
| admin_store_plugin_manage | /admin_dir/store/plugin/manage | ANY |
| admin_store_plugin_enable | /admin_dir/store/plugin/{id}/enable | PUT |
| admin_store_plugin_disable | /admin_dir/store/plugin/{id}/disable | PUT |
| admin_store_plugin_update | /admin_dir/store/plugin/{id}/update | POST |
| admin_store_plugin_uninstall | /admin_dir/store/plugin/{id}/uninstall | DELETE |
| admin_store_plugin_handler_up | /admin_dir/store/plugin/handler_up/{handlerId} | ANY |
| admin_store_plugin_handler_down | /admin_dir/store/plugin/handler_down/{handlerId} | ANY |
| admin_store_authentication_setting | /admin_dir/store/plugin/authentication_setting | ANY |
| admin_setting_system_authority_download | /admin_dir/store/plugin/authentication_setting_download | PUT |
+-----------------------------------------+----------------------------------------------------------------------+---------+


tao_s
投稿日時: 2017/3/11 5:41
対応状況: −−−
仙人
登録日: 2008/8/20
居住地: 東京
投稿: 646
Re: クロネコヤマト カード・後払い一体型決済サービス(3系) プラグインとHTTPキャッシュ
あああ...すいません、読み落としてました。
/shoppingはキャッシュ対象にしていないんですね。

でも、そうするとおかしいですね...
httpキャッシュが効いてないハズなのに、httpキャッシュを有効にするとエラーとは。
ちょっと調べてみます


----------------
EC-CUBEカスタマイズ相談してください。
緊急のEC-CUBEの障害対応
EC-CUBE開発ブログ

スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ

 



ログイン


EC-CUBEガイドブック

統計情報

総メンバー数は19,518名です
総投稿数は81,798件です

投稿数ランキング

1
seasoft
7331
2
AMUAMU
2712
3
nanasess
1623
4
yuh
1346
5
red
1055
6
fukap
907
7
shutta
827
8 ramrun 789
9
tsuji
782
10
umebius
671
11
tao_s
646
12 sumida 638
13
homan
633
14 karin 609
15
468
572
16 DELIGHT 571
17
patapata
502
18
flealog
483
19 tonton 436
20
ecbg
387


ネットショップの壺

EC-CUBEガイドブック
Copyright© LOCKON CO.,LTD. All Rights Reserved.