우선 스티커 모듈은
스티커를 모두 업로드하고 등록을 누르면 등록이 되지 않습니다.
Nginx 로그를 확인해 보니
아래와 같은 로그를 뱉어 냅니다.
2024/12/03 08:41:10 [error] 149695#149695: *530 FastCGI sent in stderr: "PHP message: PHP Exception: TypeError #0 "fclose(): Argument #1 ($stream) must be of type resource, null given" in modules/sticker/lib/imagecraft/coldume/imc-stream/src/ImcStream.php on line 346
#0 /var/www/html/rhymix/modules/sticker/lib/imagecraft/coldume/imc-stream/src/ImcStream.php(346): fclose()
#1 unknown(0): ImcStream\ImcStream->stream_close()
#2 /var/www/html/rhymix/modules/sticker/lib/imagecraft/coldume/imagecraft/src/Engine/PhpGd/Extension/Core/EventListener/ImageAwareLayerListener.php(170): fclose()
#3 unknown(0): Imagecraft\Engine\PhpGd\Extension\Core\EventListener\ImageAwareLayerListener->termFilePointer()
#4 /var/www/html/rhymix/modules/sticker/lib/imagecraft/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(164): call_user_func()
#5 /var/www/html/rhymix/modules/sticker/lib/imagecraft/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(53): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
#6 /var/www/html/rhymix/m" while reading response header from upstream, client: 45.67.97.55, server: 13.125.56.38, request: "POST / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "13.125.56.38", referrer: "http://13.125.56.38/index.php?mid=sticker&act=dispStickerWrite"
그리고 WEB GL Z 에서는 모듈을 설정하려고 클릭을 하면
서버 오류라고 표시 되면서 아래와 같은 로그를 뱉어냅니다.
이 오류들이 무엇을 의미 하는지 알 수 있을까요?
2024/12/03 08:36:05 [error] 149695#149695: *517 FastCGI sent in stderr: "PHP message: PHP Exception: TypeError #0 "count(): Argument #1 ($value) must be of type Countable|array, null given" in modules/webglz/tpl/adminlist_view.html on line 77
#0 /var/www/html/rhymix/common/framework/Template.php(471): include()
#1 /var/www/html/rhymix/common/framework/Template.php(375): Rhymix\Framework\Template->execute()
#2 /var/www/html/rhymix/classes/display/HTMLDisplayHandler.php(98): Rhymix\Framework\Template->compile()
#3 /var/www/html/rhymix/classes/display/DisplayHandler.class.php(67): HTMLDisplayHandler->toDoc()
#4 /var/www/html/rhymix/classes/module/ModuleHandler.class.php(1208): DisplayHandler->printContent()
#5 /var/www/html/rhymix/index.php(60): ModuleHandler->displayContent()" while reading response header from upstream, client: 45.67.97.58, server: 13.125.56.38, request: "GET /index.php?module=admin&act=dispWebglzAdminList HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "13.125.56.38", referrer: "http://13.125.56.38/index.php?module=admin&act=dispModuleAdminContent"
도움 주셔서 미리 감사드립니다.
cond="is_array($module_category) && count($module_category)": count($module_category)
부분으로 시작하는 select 구문을
<select cond="is_array($module_category) && count($module_category)" name="module_category_srl" title="{$lang->module_category}" style="margin-right:4px">
<option value="" selected="selected"|cond="!$module_category_srl">{$lang->all}</option>
<option value="0" selected="selected"|cond="$module_category_srl==='0'">{$lang->not_exists}</option>
<option value="{$key}" loop="$module_category => $key,$val" selected="selected"|cond="$module_category_srl==$key">{$val->title}</option>
</select>
이렇게 수정하였습니다. 그랬더니 잘 작동하네요.
그런데 아직 스티커 모듈은 해결책을 찾지 못했습니다 ㅎㅎ