SOY Galleryをバージョンアップ時のエラーについて 投稿する

投稿者:オフィスニコ  投稿日時:2026-10-18 21:06:42
SOY GALLERYをバージョンアップしましたところ、下記のエラーが発生いたしました。
SOYCMS、Soyinquiryも併せて最新版にしております。

SOYCMS 3.25.7 SQLite版
SOY Inquiry 2.11.1
PHP 8.3.33、Xserver

ダッシュボードのみでなく、公開側にもエラーが表示されています。

Fatal error : Uncaught TypeError: soygallery_sanitize_html(): Argument #1 ($html) must be of type string, null given, called in /***/app/webapp/gallery/pages/_common/NewImageListComponent.class.php on line 17 and defined in /***/app/webapp/gallery/src/func/common.php:142
Stack trace:
#0 /***/app/webapp/gallery/pages/_common/NewImageListComponent.class.php(17): soygallery_sanitize_html(NULL)
#1 /***/common/lib/soy2_build.min.php(5743): NewImageListComponent->populateItem(Object(SOYGallery_ImageView), 0, 1, 7)
#2 /***/common/lib/soy2_build.min.php(5721): HTMLList->populateItemImpl(Object(SOYGallery_ImageView), 0, 1, 7)
#3 /***/common/lib/soy2_build.min.php(4677): HTMLList->execute()
#4 /***/common/lib/soy2_build.min.php(4695): HTMLPage->add('image_list', Object(NewImageListComponent))
#5 /***/app/webapp/gallery/pages/IndexPage.class.php(28): HTMLPage->createAdd('image_list', '_common.NewImag...', Array)
#6 /***/common/lib/soy2_build.min.php(4010): IndexPage->__construct(Array)
#7 /***/app/webapp/gallery/admin.php(100): SOY2HTMLFactory::createInstance('IndexPage', Array)
#8 /***/app/base/CMSApplication.class.php(436): SOYGalleryApplication->main()
#9 /***/app/index.php(9): CMSApplication::run()
#10 {main}
thrown in /***/app/webapp/gallery/src/func/common.php on line 142

--------------------------------------------------
【レポート部分】

DETECT DATE: 2026-10-18T20:53:35+09:00
MESSAGE: Uncaught TypeError: soygallery_sanitize_html(): Argument #1 ($html) must be of type string, null given, called in /***/app/webapp/gallery/pages/_common/NewImageListComponent.class.php on line 17 and defined in /***/app/webapp/gallery/src/func/common.php:142
Stack trace:
#0 /***/app/webapp/gallery/pages/_common/NewImageListComponent.class.php(17): soygallery_sanitize_html(NULL)
#1 /***/common/lib/soy2_build.min.php(5743): NewImageListComponent->populateItem(Object(SOYGallery_ImageView), 0, 1, 7)
#2 /***/common/lib/soy2_build.min.php(5721): HTMLList->populateItemImpl(Object(SOYGallery_ImageView), 0, 1, 7)
#3 /***/common/lib/soy2_build.min.php(4677): HTMLList->execute()
#4 /***/common/lib/soy2_build.min.php(4695): HTMLPage->add('image_list', Object(NewImageListComponent))
#5 /***/app/webapp/gallery/pages/IndexPage.class.php(28): HTMLPage->createAdd('image_list', '_common.NewImag...', Array)
#6 /***/common/lib/soy2_build.min.php(4010): IndexPage->__construct(Array)
#7 /***/app/webapp/gallery/admin.php(100): SOY2HTMLFactory::createInstance('IndexPage', Array)
#8 /***/app/base/CMSApplication.class.php(436): SOYGalleryApplication->main()
#9 /***/app/index.php(9): CMSApplication::run()
#10 {main} thrown
EXCEPTION TYPE: ErrorException
LOCATION: /***/app/webapp/gallery/src/func/common.php (142)
SOY CMS Version: 3.25.7
SOY CMS Build Date: 2026-10-09T09:33:29+09:00
SOY CMS DB Type: sqlite
SOY2RootDir: /***/app/webapp/gallery/src/
SOY2_DOCUMENT_ROOT: undefined

STACK TRACE -----------------------
0:soycms_shutdown ()

Server Environment
PHP Version: 8.3.33
PHP SAPI NAME: fpm-fcgi
PHP SAFE MODE: No
SHORT_OPEN_TAG: Yes
MEMORY_LIMIT: 1G Bytes
Memory Usage: 590,832 Bytes 2,097,152 Bytes (Real) 621,560 Bytes (Peak) 2,097,152 Bytes (Peak, Real)
MAX_EXECUTION_TIME: 180 sec.
POST_MAX_SIZE: 1G Bytes
UPLOAD_MAX_FILESIZE: 1G Bytes
mb_string: Yes
PDO: Yes
PDO_SQLite: Yes
PDO_MySQL: Yes
Standard PHP Library: Yes
SimpleXML: Yes
JSON: Yes
Services_JSON: No
ZIP: Yes
ZipArchive: Yes
Archive_Zip: No
OpenSSL: Yes
HASH: Yes
GD: Yes
Module/CGI CGI Rewrite Unknown
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36
REQUEST_URI: /***/app/index.php/gallery?login
SCRIPT_NAME: /***/app/index.php
PATH_INFO: /gallery
QUERY_STRING: login
DOCUMENT_ROOT: /***/public_html
SCRIPT_FILENAME: /***/app/index.php

SOY CMS Options
SOYCMS_ALLOWED_EXTENSIONS: undefined
SOYCMS_ALLOW_PHP_SCRIPT:
SOYCMS_SKIP_MOBILE_RESIZE: 1
SOYCMS_BLOCK_LIST: EntryBlockComponent LabeledBlockComponent MultiLabelBlockComponent SiteLabeledBlockComponent PluginBlockComponent
SOYCMS_TARGET_DIRECTORY: /***/
SOYCMS_TARGET_URL: undefined
SOYCMS_ADMIN_ROOT: undefined
SOYCMS_LANGUAGE: ja


よろしくお願いいたします。
投稿者:齋藤毅  投稿日時:2026-10-19 09:29:10
ご連絡をありがとうございます。
お伝えいただきましたエラーを修正したバージョンを下記URLからダウンロードできるようにしました。
https://saitodev.co/soycms/soygallery/
投稿者:オフィスニコ  投稿日時:2026-10-19 11:42:18
ありがとうございます!
無事に動作いたしました。

迅速に対応いただき、ありがとうございます。
投稿者:オフィスニコ  投稿日時:2026-10-19 11:59:49
何度も申し訳ございません。
管理画面のエラーは解消されましたが、公開側のエラーが解消されておりません。。

Fatal error: Uncaught TypeError: soygallery_sanitize_html(): Argument #1 ($html) must be of type string, null given, called in /***/***/***/***/***/app/webapp/gallery/page.php on line 291 and defined in /***/***/***/***/***/app/webapp/gallery/src/func/common.php:142 Stack trace: #0 /***/***/***/***/***/app/webapp/gallery/page.php(291): soygallery_sanitize_html(NULL) #1 /***/***/***/***/***/common/lib/soy2_build.min.php(5743): GalleryComponent->populateItem(Object(SOYGallery_ImageView), 0, 1, 7) #2 /***/***/***/***/***/common/lib/soy2_build.min.php(5721): HTMLList->populateItemImpl(Object(SOYGallery_ImageView), 0, 1, 7) #3 /***/***/***/***/***/common/lib/soy2_build.min.php(5463): HTMLList->execute() #4 /***/***/***/***/***/app/webapp/gallery/page.php(97): SOYBodyComponentBase->execute() #5 /***/***/***/***/***/common/lib/soy2_build.min.php(4677): SOYGallery_ImageComponent->execute() #6 /***/***/***/***/***/common/lib/soy2_build.min.php(4695): HTMLPage->add('soygallery', Object(SOYGallery_ImageComponent)) #7 /***/***/***/***/***/app/webapp/gallery/page.php(52): HTMLPage->createAdd('soygallery', 'SOYGallery_Imag...', Array) #8 /***/***/***/***/***/app/base/CMSApplication.class.php(637): SOYGallery_PageApplication->main(Object(CMSApplicationPage)) #9 /***/***/***/***/***/common/site_include/CMSApplicationPage.class.php(58): CMSApplication::page(Object(CMSApplicationPage), Array) #10 /***/***/***/***/***/common/site_include/CMSPageController.class.php(155): CMSApplicationPage->main() #11 /***/***/***/***/***/common/lib/soy2_build.min.php(241): CMSPageController->execute() #12 /***/***/***/***/***/common/site_include/SOYCMSOutputContents.class.php(64): SOY2PageController::run() #13 /***/***/***/***/***/common/site_include/SOYCMSOutputContents.class.php(110): SOYCMSOutputContents::execute_normal() #14 /***/***/***/***/***/common/site.func.php(89): SOYCMSOutputContents->execute() #15 /home/xs576481/kabusan-daimonji.org/public_html/cont/index.php(12): execute_site() #16 /home/xs576481/kabusan-daimonji.org/public_html/index.php(3): include_once('/home/xs576481/...') #17 {main} thrown in /***/***/***/***/***/app/webapp/gallery/src/func/common.php on line 142

何卒よろしくお願いいたします。
投稿者:齋藤毅  投稿日時:2026-10-19 12:41:03
ご連絡をありがとうございます。
修正したものを下記URLからダウンロードできるようにしました。
https://saitodev.co/soycms/soygallery/
投稿者:オフィスニコ  投稿日時:2026-10-19 15:16:11
ありがとうございます。
無事、解消されました^
ログインして投稿する