質問 > 管理機能 > 関連商品プラグインでエラーが起こり商品登録ができない。 |
管理機能
スレッド表示 | 古いものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
umebius |
投稿日時: 2020/10/7 9:49
対応状況: −−−
|
神 登録日: 2016/7/22 居住地: 投稿: 2085 |
Re: 関連商品プラグインでエラーが起こり商品登録ができない。 ProductTypeExtension.php 88で存在しない変数$appを使用しているというNoticeですね。
(このNoticeはデバッグモードのみの可能性があるので商品登録できない問題とは別かもしれません) ProductMetaというプラグインの事は存じ上げないので何とも言えないですが、 デバッグモードを使うには該当部分を直すかプラグインを無効化するしかないかと思います。
|
babyland |
投稿日時: 2020/10/7 9:38
対応状況: −−−
|
新米 登録日: 2020/10/6 居住地: 投稿: 2 |
Re: 関連商品プラグインでエラーが起こり商品登録ができない。 ありがとうございます。
デバッグモードを試した所以下のようなエラー内容でした。 これはどうすればよいのでしょうか? ーーー ContextErrorException in ProductTypeExtension.php line 88: Notice: Undefined variable: app in ProductTypeExtension.php line 88 at ErrorHandler->handleError('8', 'Undefined variable: app', '/data/eccube3014/app/Plugin/ProductMeta/Form/Extension/Admin/ProductTypeExtension.php', '88', array('builder' => object(FormBuilder), 'options' => array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'error_mapping' => array(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'help' => null, 'freeze' => false, 'freeze_display_text' => true, 'attr' => array(), 'data' => object(Product), 'data_class' => 'Eccube\Entity\Product', 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'validation_groups' => null, 'constraints' => array()))) in ProductTypeExtension.php line 88 at ProductTypeExtension->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'error_mapping' => array(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'help' => null, 'freeze' => false, 'freeze_display_text' => true, 'attr' => array(), 'data' => object(Product), 'data_class' => 'Eccube\Entity\Product', 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'validation_groups' => null, 'constraints' => array())) in ResolvedFormType.php line 138 at ResolvedFormType->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'error_mapping' => array(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'help' => null, 'freeze' => false, 'freeze_display_text' => true, 'attr' => array(), 'data' => object(Product), 'data_class' => 'Eccube\Entity\Product', 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'validation_groups' => null, 'constraints' => array())) in ResolvedTypeDataCollectorProxy.php line 102 at ResolvedTypeDataCollectorProxy->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'error_mapping' => array(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'help' => null, 'freeze' => false, 'freeze_display_text' => true, 'attr' => array(), 'data' => object(Product), 'data_class' => 'Eccube\Entity\Product', 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'validation_groups' => null, 'constraints' => array())) in FormFactory.php line 91 at FormFactory->createNamedBuilder('admin_product', 'admin_product', object(Product), array()) in FormFactory.php line 67 at FormFactory->createBuilder('admin_product', object(Product)) in ProductController.php line 263 at ProductController->edit(object(Application), object(Request), '7626') at call_user_func_array(array(object(ProductController), 'edit'), array(object(Application), object(Request), '7626')) in HttpKernel.php line 144 at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 64 at HttpKernel->handle(object(Request), '1', true) in Application.php line 586 at Application->handle(object(Request)) in Application.php line 563 at Application->run() in index_dev.php line 107 ーーー ProductTypeExtension.php 88 ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) use ($app) |
umebius |
投稿日時: 2020/10/6 21:50
対応状況: −−−
|
神 登録日: 2016/7/22 居住地: 投稿: 2085 |
Re: 関連商品プラグインでエラーが起こり商品登録ができない。 関連商品プラグイン絡みで商品登録できなくなるというと、この問題が思い浮かびます。
https://umebius.com/eccube/integrity-constraint-violation-1062-duplicate-entry-32767-key-primary/ plg_related_product のidがsmallint型で上限に達していないでしょうか?
|
babyland |
投稿日時: 2020/10/6 8:44
対応状況: −−−
|
新米 登録日: 2020/10/6 居住地: 投稿: 2 |
関連商品プラグインでエラーが起こり商品登録ができない。 ▼テンプレート
[EC-CUBE] 3.0.14 [レンタルサーバ] aws [OS] Linux ip-172-31-25-58 [PHP] 5.6.31 [データベース] MySQL 5.7.16-log [WEBサーバ] Apache/2.4.27 (Amazon) [ブラウザ] Chrome [導入プラグインの有無] 有 [カスタマイズの有無] 無 [現象] 関連商品プラグインでエラーが起こり商品登録ができない。 関連商品プラグイン https://www.ec-cube.net/products/detail.php?product_id=962 商品マスター > 商品登録 > 関連商品に商品を追加する > 商品を登録をクリックすると システムエラーが発生しました。 大変お手数ですが、サイト管理者までご連絡ください。 と表示されてしまい、商品登録ができません。 関連商品に商品を追加しないと商品登録ができるような状況です。 これはどうすれば解決できるのでしょうか?! お手数ですが同じような現象が起きているまたは、解決策が分かる方教えていただければ幸いです。 |
スレッド表示 | 古いものから | 前のトピック | 次のトピック | トップ |