バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > 管理機能 > 商品マスターからCSVをダウンロードしようとするとシステムエラーが発生

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
SSBABE
投稿日時: 2020/3/2 13:15
対応状況: −−−
新米
登録日: 2020/3/2
居住地:
投稿: 1
商品マスターからCSVをダウンロードしようとするとシステムエラーが発生
▼テンプレート
[EC-CUBE] 2.17、新規インストール
[レンタルサーバ] エックスサーバー
[OS] Win10
[PHP] 使用しているPHPのバージョン
[データベース] 使用しているDB名、バージョン
[WEBサーバ] 7.3.12
[導入プラグインの有無] 無し

[現象] 商品マスターからCSVをダウンロードしようとすると
システムエラーが発生します。
エラーログは下記となります。(長いですがすべて貼り付けます)

Fatal error(E_USER_ERROR): DB処理でエラーが発生しました。
SQL: [SELECT product_id, product_class_id, parent_classcategory_id, classcategory_id, parent_classcategory_name, classcategory_name, maker_id, (SELECT name as maker_name FROM dtb_maker WHERE prdcls.maker_id = dtb_maker.maker_id) as maker_name, name, status, comment1, comment2, comment3, note, main_list_comment, main_list_image, main_comment, main_image, main_large_image, sub_title1, sub_comment1, sub_image1, sub_large_image1, sub_title2, sub_comment2, sub_image2, sub_large_image2, sub_title3, sub_comment3, sub_image3, sub_large_image3, sub_title4, sub_comment4, sub_image4, sub_large_image4, deliv_date_id, del_flg, product_type_id, stock, stock_unlimited, sale_limit, price01, price02, deliv_fee, point_rate, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 0) AS recommend_product_id1, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 0) AS recommend_comment1, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 1) AS recommend_product_id2, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 1) AS recommend_comment2, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 2) AS recommend_product_id3, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 2) AS recommend_comment3, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 3) AS recommend_product_id4, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 3) AS recommend_comment4, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 4) AS recommend_product_id5, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 4) AS recommend_comment5, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 5) AS recommend_product_id6, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 5) AS recommend_comment6, (SELECT GROUP_CONCAT(product_status_id SEPARATOR ',') FROM dtb_product_status WHERE dtb_product_status.product_id = prdcls.product_id and del_flg = 0 ORDER BY dtb_product_status.product_status_id) as product_statuses, (SELECT GROUP_CONCAT(name SEPARATOR ',') FROM dtb_product_status LEFT JOIN mtb_status ON dtb_product_status.product_status_id = mtb_status.id WHERE dtb_product_status.product_id = prdcls.product_id and del_flg = 0 ORDER BY dtb_product_status.product_status_id) as product_status_names, (SELECT GROUP_CONCAT(category_id SEPARATOR ',') FROM dtb_product_categories WHERE dtb_product_categories.product_id = prdcls.product_id ORDER BY dtb_product_categories.``RANK``) as category_ids, (SELECT GROUP_CONCAT(category_name SEPARATOR ',') FROM dtb_product_categories LEFT JOIN dtb_category ON dtb_product_categories.category_id = dtb_category.category_id WHERE dtb_product_categories.product_id = prdcls.product_id ORDER BY dtb_product_categories.``RANK``) as category_names FROM ( SELECT dtb_products.*, dtb_products_class.product_class_id, dtb_products_class.product_type_id, dtb_products_class.product_code, dtb_products_class.stock, dtb_products_class.stock_unlimited, dtb_products_class.sale_limit, dtb_products_class.price01, dtb_products_class.price02, dtb_products_class.deliv_fee, dtb_products_class.point_rate, dtb_products_class.down_filename, dtb_products_class.down_realfilename, dtb_products_class.classcategory_id1 AS classcategory_id, /* 削除 */ dtb_products_class.classcategory_id1, dtb_products_class.classcategory_id2 AS parent_classcategory_id, /* 削除 */ dtb_products_class.classcategory_id2, Tcc1.class_id as class_id, Tcc1.name as classcategory_name, Tcc2.class_id as parent_class_id, Tcc2.name as parent_classcategory_name FROM dtb_products LEFT JOIN dtb_products_class ON dtb_products.product_id = dtb_products_class.product_id LEFT JOIN dtb_classcategory as Tcc1 ON dtb_products_class.classcategory_id1 = Tcc1.classcategory_id LEFT JOIN dtb_classcategory as Tcc2 ON dtb_products_class.classcategory_id2 = Tcc2.classcategory_id WHERE dtb_products_class.del_flg = 0 ) as prdcls WHERE del_flg = 0 AND update_date >= ? ORDER BY update_date DESC ]
MDB2 Error: syntax error
_doQuery: [Error message: Could not execute statement]
[Last executed query: PREPARE mdb2_statement_mysqli_65993417efc956983a8bd0dfca67cebf98139e489 FROM 'SELECT product_id, product_class_id, parent_classcategory_id, classcategory_id, parent_classcategory_name, classcategory_name, maker_id, (SELECT name as maker_name FROM dtb_maker WHERE prdcls.maker_id = dtb_maker.maker_id) as maker_name, name, status, comment1, comment2, comment3, note, main_list_comment, main_list_image, main_comment, main_image, main_large_image, sub_title1, sub_comment1, sub_image1, sub_large_image1, sub_title2, sub_comment2, sub_image2, sub_large_image2, sub_title3, sub_comment3, sub_image3, sub_large_image3, sub_title4, sub_comment4, sub_image4, sub_large_image4, deliv_date_id, del_flg, product_type_id, stock, stock_unlimited, sale_limit, price01, price02, deliv_fee, point_rate, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 0) AS recommend_product_id1, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 0) AS recommend_comment1, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 1) AS recommend_product_id2, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 1) AS recommend_comment2, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 2) AS recommend_product_id3, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 2) AS recommend_comment3, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 3) AS recommend_product_id4, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 3) AS recommend_comment4, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 4) AS recommend_product_id5, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 4) AS recommend_comment5, (SELECT recommend_product_id FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 5) AS recommend_product_id6, (SELECT comment FROM dtb_recommend_products WHERE prdcls.product_id = dtb_recommend_products.product_id ORDER BY ``RANK`` DESC, recommend_product_id DESC limit 1 offset 5) AS recommend_comment6, (SELECT GROUP_CONCAT(product_status_id SEPARATOR \',\') FROM dtb_product_status WHERE dtb_product_status.product_id = prdcls.product_id and del_flg = 0 ORDER BY dtb_product_status.product_status_id) as product_statuses, (SELECT GROUP_CONCAT(name SEPARATOR \',\') FROM dtb_product_status LEFT JOIN mtb_status ON dtb_product_status.product_status_id = mtb_status.id WHERE dtb_product_status.product_id = prdcls.product_id and del_flg = 0 ORDER BY dtb_product_status.product_status_id) as product_status_names, (SELECT GROUP_CONCAT(category_id SEPARATOR \',\') FROM dtb_product_categories WHERE dtb_product_categories.product_id = prdcls.product_id ORDER BY dtb_product_categories.``RANK``) as category_ids, (SELECT GROUP_CONCAT(category_name SEPARATOR \',\') FROM dtb_product_categories LEFT JOIN dtb_category ON dtb_product_categories.category_id = dtb_category.category_id WHERE dtb_product_categories.product_id = prdcls.product_id ORDER BY dtb_product_categories.``RANK``) as category_names FROM ( SELECT dtb_products.*, dtb_products_class.product_class_id, dtb_products_class.product_type_id, dtb_products_class.product_code, dtb_products_class.stock, dtb_products_class.stock_unlimited, dtb_products_class.sale_limit, dtb_products_class.price01, dtb_products_class.price02, dtb_products_class.deliv_fee, dtb_products_class.point_rate, dtb_products_class.down_filename, dtb_products_class.down_realfilename, dtb_products_class.classcategory_id1 AS classcategory_id, /* 削除 */ dtb_products_class.classcategory_id1, dtb_products_class.classcategory_id2 AS parent_classcategory_id, /* 削除 */ dtb_products_class.classcategory_id2, Tcc1.class_id as class_id, Tcc1.name as classcategory_name, Tcc2.class_id as parent_class_id, Tcc2.name as parent_classcategory_name FROM dtb_products LEFT JOIN dtb_products_class ON dtb_products.product_id = dtb_products_class.product_id LEFT JOIN dtb_classcategory as Tcc1 ON dtb_products_class.classcategory_id1 = Tcc1.classcategory_id LEFT JOIN dtb_classcategory as Tcc2 ON dtb_products_class.classcategory_id2 = Tcc2.classcategory_id WHERE dtb_products_class.del_flg = 0 ) as prdcls WHERE del_flg = 0 AND update_date >= ? ORDER BY update_date DESC ']
[Native code: 1064]
[Native message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'RANK`` DESC, recommend_product_id DESC limit 1 offset 0) AS recommend_product_id' at line 1]
on [/home/babegel/sunshinebabe.co.jp/data/class/SC_Query.php(1103)] from 153.142.107.130
login_id = GGCO(0)[6bdaa7e9e5d1c16fb413f28cf9ced904]
/home/babegel/sunshinebabe.co.jp/public_html/html/sunshinebabe/products/index.php(29): LC_Page_Admin_Products_Ex->process
/home/babegel/sunshinebabe.co.jp/data/class_extends/page_extends/admin/products/LC_Page_Admin_Products_Ex.php(54): LC_Page_Admin_Products->process
/home/babegel/sunshinebabe.co.jp/data/class/pages/admin/products/LC_Page_Admin_Products.php(78): LC_Page_Admin_Products->action
/home/babegel/sunshinebabe.co.jp/data/class/pages/admin/products/LC_Page_Admin_Products.php(139): SC_Helper_CSV->sfDownloadCsv
/home/babegel/sunshinebabe.co.jp/data/class/helper/SC_Helper_CSV.php(102): SC_Helper_CSV->sfDownloadCsvFromSql
/home/babegel/sunshinebabe.co.jp/data/class/helper/SC_Helper_CSV.php(257): SC_Query->doCallbackAll
/home/babegel/sunshinebabe.co.jp/data/class/SC_Query.php(279): SC_Query->prepare
/home/babegel/sunshinebabe.co.jp/data/class/SC_Query.php(1032): SC_Query->error
/home/babegel/sunshinebabe.co.jp/data/class/SC_Query.php(1103): trigger_error
red
投稿日時: 2020/3/2 14:55
対応状況: −−−
登録日: 2010/2/15
居住地: 東京都
投稿: 1407
Re: 商品マスターからCSVをダウンロードしようとするとシステムエラーが発生
不具合確認したので取り急ぎチケット起票しておきました
https://github.com/EC-CUBE/ec-cube2/issues/376


----------------
EC-CUBEのカスタマイズ、トラブル解決承ります
お気軽にお問い合わせ下さい
https://www.ec-cube.net/integrate/partner/partner.php?partner_id=690

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


 



ログイン


EC-CUBEペイメント

公式ストアEC-CUBE4系デザインテンプレート続々リリース中

統計情報

総メンバー数は63,734名です
総投稿数は96,861件です

投稿数ランキング

1
seasoft
7332
2
AMUAMU
2712
3
468
2446
4
nanasess
2078
5
yuh
1612
6
umebius
1601
7
red
1407
8
h_tanaka
1022
9
fukap
907
10
tsuji
863
11
shutta
835
12
tao_s
792
13 ramrun 789
14 karin 657
15 sumida 641
16
homan
633
17 DELIGHT 571
18
patapata
502
19
flealog
485
20 tonton 437


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.