商品検索画面のエラー 投稿する
投稿者:SPS
投稿日時:2026-03-19 00:51:45
お世話になります。
最新のSOY CMS/SOY Shopで下記のエラーが発生しています。
原因や対策をご教示いただけますでしょうか。
SOY CMS : 3.22.6
SOY Shop:2.13.9
Fatal error: Uncaught TypeError: Argument 1 passed to SearchItemLogic::setSearchCondition() must be of the type array, null given, called in /home/users/2/*******/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php on line 48 and defined in /home/users/2/*******/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php:77 Stack trace: #0 /home/users/2/*******/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php(48): SearchItemLogic->setSearchCondition(NULL) #1 /home/users/2/*******/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(4010): IndexPage->__construct(Array) #2 /home/users/2/*******/web/*****/cms/soyshop/webapp/src/base/SOYShopPageController.class.php(102): SOY2HTMLFactory::createInstance('IndexPage', Array) #3 /home/users/2/*******/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(241): SOYShopPageController->execute() #4 /home/users/2/lol in /home/users/2/*******/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php on line 77
別の枠内に以下のエラーが出ます。
array (
'type' =>1,
'message' =>'Uncaught TypeError: Argument 1 passed to SearchItemLogic::setSearchCondition() must be of the type array, null given, called in /home/users/2/********/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php on line 48 and defined in /home/users/2/********/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php:77
Stack trace:
#0 /home/users/2/********/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php(48): SearchItemLogic->setSearchCondition(NULL)
#1 /home/users/2/********/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(4010): IndexPage->__construct(Array)
#2 /home/users/2/********/web/*****/cms/soyshop/webapp/src/base/SOYShopPageController.class.php(102): SOY2HTMLFactory::createInstance(\'IndexPage\', Array)
#3 /home/users/2/********/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(241): SOYShopPageController->execute()
#4 /home/users/2/lol',
'file' =>'/home/users/2/********/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php',
'line' =>77,
)
最新のSOY CMS/SOY Shopで下記のエラーが発生しています。
原因や対策をご教示いただけますでしょうか。
SOY CMS : 3.22.6
SOY Shop:2.13.9
Fatal error: Uncaught TypeError: Argument 1 passed to SearchItemLogic::setSearchCondition() must be of the type array, null given, called in /home/users/2/*******/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php on line 48 and defined in /home/users/2/*******/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php:77 Stack trace: #0 /home/users/2/*******/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php(48): SearchItemLogic->setSearchCondition(NULL) #1 /home/users/2/*******/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(4010): IndexPage->__construct(Array) #2 /home/users/2/*******/web/*****/cms/soyshop/webapp/src/base/SOYShopPageController.class.php(102): SOY2HTMLFactory::createInstance('IndexPage', Array) #3 /home/users/2/*******/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(241): SOYShopPageController->execute() #4 /home/users/2/lol in /home/users/2/*******/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php on line 77
別の枠内に以下のエラーが出ます。
array (
'type' =>1,
'message' =>'Uncaught TypeError: Argument 1 passed to SearchItemLogic::setSearchCondition() must be of the type array, null given, called in /home/users/2/********/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php on line 48 and defined in /home/users/2/********/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php:77
Stack trace:
#0 /home/users/2/********/web/*****/cms/soyshop/webapp/pages/Item/Search/IndexPage.class.php(48): SearchItemLogic->setSearchCondition(NULL)
#1 /home/users/2/********/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(4010): IndexPage->__construct(Array)
#2 /home/users/2/********/web/*****/cms/soyshop/webapp/src/base/SOYShopPageController.class.php(102): SOY2HTMLFactory::createInstance(\'IndexPage\', Array)
#3 /home/users/2/********/web/*****/cms/soyshop/webapp/lib/soy2_build.min.php(241): SOYShopPageController->execute()
#4 /home/users/2/lol',
'file' =>'/home/users/2/********/web/*****/cms/soyshop/webapp/src/logic/shop/item/SearchItemLogic.class.php',
'line' =>77,
)
投稿者:SPS
投稿日時:2026-03-19 00:53:18
重要な点が抜けていました。
SOY Shop商品管理画面の、「商品検索」ボタンを押すと発生します。
SOY Shop商品管理画面の、「商品検索」ボタンを押すと発生します。
投稿者:齋藤毅
投稿日時:2026-03-19 09:25:18
エラー報告をありがとうございます。
修正は
今回の内容を修正したものは下記URLからダウンロードできるようにしています。
https://saitodev.co/soycms/soyshop/
修正は
の29行目にありますCMSインストールディレクトリ/soyshop/webapp/pages/Item/Search/IndexPage.class.php
if(isset($_GET["reset"]) || count($_GET) === 0) $searchItems = null;
を
if(isset($_GET["reset"]) || count($_GET) === 0) $searchItems = array();
に変更すれば良いです。
今回の内容を修正したものは下記URLからダウンロードできるようにしています。
https://saitodev.co/soycms/soyshop/
